aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/gpu/SkGLContext.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/gpu/SkGLContext.h')
-rw-r--r--include/gpu/SkGLContext.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/gpu/SkGLContext.h b/include/gpu/SkGLContext.h
index f92a7700c4..542d1bbc06 100644
--- a/include/gpu/SkGLContext.h
+++ b/include/gpu/SkGLContext.h
@@ -9,6 +9,7 @@
#define SkGLContext_DEFINED
#include "GrGLInterface.h"
+#include "SkString.h"
/**
* Create an offscreen opengl context with an RGBA8 / 8bit stencil FBO.
@@ -31,6 +32,8 @@ public:
virtual void makeCurrent() const = 0;
+ bool hasExtension(const char* extensionName) const;
+
protected:
/**
* Subclass implements this to make a GL context. The returned GrGLInterface
@@ -46,6 +49,7 @@ protected:
virtual void destroyGLContext() = 0;
private:
+ SkString fExtensionString;
GrGLuint fFBO;
const GrGLInterface* fGL;
};