Index: src/gpu/gl/GrGpuGL.h |
diff --git a/src/gpu/gl/GrGpuGL.h b/src/gpu/gl/GrGpuGL.h |
index 1d1cdc575ef1664aa9e37988b7370280dfa323e7..669f21c9be57707f45540acc4ed91707825fcaf3 100644 |
--- a/src/gpu/gl/GrGpuGL.h |
+++ b/src/gpu/gl/GrGpuGL.h |
@@ -31,6 +31,7 @@ public: |
virtual ~GrGpuGL(); |
const GrGLInterface* glInterface() const { return fGLContext.interface(); } |
+ const GrGLContextInfo& ctxInfo() const { return fGLContext.info(); } |
Chris Dalton
2013/09/05 05:29:24
We could avoid having to add this getter by sendin
|
GrGLBinding glBinding() const { return fGLContext.info().binding(); } |
GrGLVersion glVersion() const { return fGLContext.info().version(); } |
GrGLSLGeneration glslGeneration() const { return fGLContext.info().glslGeneration(); } |
@@ -171,7 +172,7 @@ private: |
class ProgramCache : public ::GrNoncopyable { |
public: |
- ProgramCache(const GrGLContext& gl); |
+ ProgramCache(GrGpuGL* gpu); |
~ProgramCache(); |
void abandon(); |
@@ -203,7 +204,7 @@ private: |
int fCount; |
unsigned int fCurrLRUStamp; |
- const GrGLContext& fGL; |
+ GrGpuGL* fGpu; |
#ifdef PROGRAM_CACHE_STATS |
int fTotalRequests; |
int fCacheMisses; |