aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/utils
diff options
context:
space:
mode:
authorGravatar bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2011-08-19 17:22:05 +0000
committerGravatar bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2011-08-19 17:22:05 +0000
commit971d0c8049c6bfc7a58f0b41f8f59f9ec9ca077b (patch)
tree1ad234571b6f62cd6d0a0483807c845e965b7814 /include/utils
parent3008519e9f977cd60194841d558a4f45c28e9833 (diff)
Get rid of createRenderTargetFrom3DAPIState and associated glGets necessary to support it.
Review URL: http://codereview.appspot.com/4928041/ git-svn-id: http://skia.googlecode.com/svn/trunk@2144 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'include/utils')
-rw-r--r--include/utils/SkEGLContext.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/utils/SkEGLContext.h b/include/utils/SkEGLContext.h
index 9d3b7d12f2..7188ffb043 100644
--- a/include/utils/SkEGLContext.h
+++ b/include/utils/SkEGLContext.h
@@ -23,7 +23,7 @@
#endif
/**
- * Create an offscreen opengl context
+ * Create an offscreen opengl context with an RGBA8 / 8bit stencil FBO.
*/
class SkEGLContext {
public:
@@ -32,7 +32,10 @@ public:
bool init(const int width, const int height);
+ int getFBOID() const { return fFBO; }
+
private:
+ GLuint fFBO;
#if defined(SK_MESA)
OSMesaContext context;
GLfloat *image;