Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(320)

Unified Diff: src/gpu/gl/GrGpuGL.h

Issue 23636011: Add a GrGpuGL reference for GrGLProgram/GrGLUniformManager (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/gpu/gl/GrGLUniformManager.cpp ('k') | src/gpu/gl/GrGpuGL.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « src/gpu/gl/GrGLUniformManager.cpp ('k') | src/gpu/gl/GrGpuGL.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698