Index: src/gpu/gl/GrGpuGL_program.cpp |
diff --git a/src/gpu/gl/GrGpuGL_program.cpp b/src/gpu/gl/GrGpuGL_program.cpp |
index b4fd46466239a14a8244eda0ddeb62815419a086..beaaa903b2be535637e6a9019b03cb56794bb0ea 100644 |
--- a/src/gpu/gl/GrGpuGL_program.cpp |
+++ b/src/gpu/gl/GrGpuGL_program.cpp |
@@ -199,6 +199,17 @@ |
//////////////////////////////////////////////////////////////////////////////// |
+void GrGpuGL::abandonResources(){ |
+ INHERITED::abandonResources(); |
+ fProgramCache->abandon(); |
+ fHWProgramID = 0; |
+ if (this->glCaps().pathRenderingSupport()) { |
+ fPathRendering->abandonGpuResources(); |
+ } |
+} |
+ |
+//////////////////////////////////////////////////////////////////////////////// |
+ |
#define GL_CALL(X) GR_GL_CALL(this->glInterface(), X) |
bool GrGpuGL::flushGraphicsState(DrawType type, const GrDeviceCoordTexture* dstCopy) { |