diff options
Diffstat (limited to 'src/gl/SkGLDevice_FBO.h')
-rw-r--r-- | src/gl/SkGLDevice_FBO.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/gl/SkGLDevice_FBO.h b/src/gl/SkGLDevice_FBO.h new file mode 100644 index 0000000..d695ff0 --- /dev/null +++ b/src/gl/SkGLDevice_FBO.h @@ -0,0 +1,23 @@ +#ifndef SkGLDevice_FBO_DEFINED +#define SkGLDevice_FBO_DEFINED + +#include "SkGLDevice.h" + +class SkGLDevice_FBO : public SkGLDevice { +public: + SkGLDevice_FBO(const SkBitmap& bitmap, bool offscreen); + virtual ~SkGLDevice_FBO(); + + // overrides from SkGLDevice + virtual void gainFocus(SkCanvas*); + virtual TexOrientation bindDeviceAsTexture(); + +private: + GLuint fFBO; + GLuint fTextureID; + + typedef SkGLDevice INHERITED; +}; + +#endif + |