Index: src/gpu/gl/GrGLContext.h |
diff --git a/src/gpu/gl/GrGLContext.h b/src/gpu/gl/GrGLContext.h |
index 6016f6859a35e5cbfd9213dd043d6b85813e7f2d..50ee16d9166a3baf417cfb221a470a66fb7938bd 100644 |
--- a/src/gpu/gl/GrGLContext.h |
+++ b/src/gpu/gl/GrGLContext.h |
@@ -15,6 +15,9 @@ |
#include "GrGLUtil.h" |
struct GrContextOptions; |
+namespace SkSL { |
+ class Compiler; |
+} |
/** |
* Encapsulates information about an OpenGL context including the OpenGL |
@@ -64,7 +67,7 @@ protected: |
}; |
/** |
- * Extension of GrGLContextInfo that also provides access to GrGLInterface. |
+ * Extension of GrGLContextInfo that also provides access to GrGLInterface and SkSL::Compiler. |
*/ |
class GrGLContext : public GrGLContextInfo { |
public: |
@@ -76,8 +79,16 @@ public: |
const GrGLInterface* interface() const { return fInterface; } |
+ SkSL::Compiler* compiler(); |
+ |
private: |
- GrGLContext(const ConstructorArgs& args) : INHERITED(args) {} |
+ GrGLContext(const ConstructorArgs& args) |
+ : INHERITED(args) |
+ , fCompiler(nullptr) {} |
+ |
+ ~GrGLContext(); |
bsalomon
2016/09/12 13:48:57
Should we declare virtual ~GrGLContextInfo()?
ethannicholas
2016/09/12 14:53:26
Good catch, done.
|
+ |
+ SkSL::Compiler* fCompiler; |
bsalomon
2016/09/12 13:48:57
std::unique_ptr?
|
typedef GrGLContextInfo INHERITED; |
}; |