mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-28 15:23:51 +00:00
Bug 1272877 - Allow access to derived Image classes; r=sotaro
MozReview-Commit-ID: 3fXjwaDN5KV --HG-- extra : rebase_source : 7da96726ab3f9664f3dc9efb9927e1cfc1337c40
This commit is contained in:
parent
b55bb2b76f
commit
66b4d655fb
@ -22,6 +22,10 @@ public:
|
||||
explicit GLImage(ImageFormat aFormat) : Image(nullptr, aFormat){}
|
||||
|
||||
virtual already_AddRefed<gfx::SourceSurface> GetAsSourceSurface() override;
|
||||
|
||||
GLImage* AsGLImage() override {
|
||||
return this;
|
||||
}
|
||||
};
|
||||
|
||||
class EGLImageImage : public GLImage {
|
||||
|
@ -163,6 +163,7 @@ protected:
|
||||
};
|
||||
|
||||
/* Forward declarations for Image derivatives. */
|
||||
class GLImage;
|
||||
class EGLImageImage;
|
||||
class SharedRGBImage;
|
||||
#ifdef MOZ_WIDGET_ANDROID
|
||||
@ -230,6 +231,7 @@ public:
|
||||
|
||||
/* Access to derived classes. */
|
||||
virtual EGLImageImage* AsEGLImageImage() { return nullptr; }
|
||||
virtual GLImage* AsGLImage() { return nullptr; }
|
||||
#ifdef MOZ_WIDGET_ANDROID
|
||||
virtual SurfaceTextureImage* AsSurfaceTextureImage() { return nullptr; }
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user