Made function _getBits() protected.

This commit is contained in:
Tats
2014-10-16 18:28:20 +00:00
parent a5255c2824
commit 13ff156159
+10 -2
View File
@@ -138,7 +138,6 @@ public:
bitsChanged = false;
return _getBits();
}
virtual const uchar* _getBits() const = 0;
/// Returns true iff bits have changed since last call to getBits().
bool bitsHaveChanged() const { return bitsChanged; }
@@ -149,6 +148,9 @@ public:
}
virtual GLfloat getX() const { return x; }
virtual GLfloat getY() const { return y; }
protected:
virtual const uchar* _getBits() const = 0;
};
/**
@@ -181,6 +183,8 @@ public:
virtual int getWidth() const { return image.width(); }
virtual int getHeight() const { return image.height(); }
protected:
virtual const uchar* _getBits() const { return image.bits(); }
};
@@ -217,11 +221,15 @@ public:
}
virtual int getWidth() const;
virtual int getHeight() const;
virtual const uchar* _getBits() const;
/**
* Checks whether or not video is supported on this platform.
*/
static bool hasVideoSupport();
protected:
virtual const uchar* _getBits() const;
private:
/**
* Private implementation, so that GStreamer headers don't need