Move GrGpuGL::ProgramCache declaration to header
Review URL: http://codereview.appspot.com/6245083/
git-svn-id: http://skia.googlecode.com/svn/trunk@4113 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/src/gpu/gl/GrGpuGL.cpp b/src/gpu/gl/GrGpuGL.cpp
index 29c7900..8817068 100644
--- a/src/gpu/gl/GrGpuGL.cpp
+++ b/src/gpu/gl/GrGpuGL.cpp
@@ -207,7 +207,8 @@
this->initCaps();
- this->createProgramCache();
+ fProgramData = NULL;
+ fProgramCache = new ProgramCache(this->glContextInfo());
#if 0
this->programUnitTest();
@@ -225,7 +226,9 @@
GL_CALL(UseProgram(0));
}
- this->deleteProgramCache();
+ delete fProgramCache;
+ fProgramCache = NULL;
+ fProgramData = NULL;
// This must be called by before the GrDrawTarget destructor
this->releaseGeometry();