1 #ifndef SkGLDevice_FBO_DEFINED 2 #define SkGLDevice_FBO_DEFINED 3 4 #include "SkGLDevice.h" 5 6 class SkGLDevice_FBO : public SkGLDevice { 7 public: 8 SkGLDevice_FBO(const SkBitmap& bitmap, bool offscreen); 9 virtual ~SkGLDevice_FBO(); 10 11 // overrides from SkGLDevice 12 virtual void gainFocus(SkCanvas*); 13 virtual TexOrientation bindDeviceAsTexture(); 14 15 private: 16 GLuint fFBO; 17 GLuint fTextureID; 18 19 typedef SkGLDevice INHERITED; 20 }; 21 22 #endif 23 24