Index: src/gpu/gl/GrGLPathRendering.cpp |
diff --git a/src/gpu/gl/GrGLPathRendering.cpp b/src/gpu/gl/GrGLPathRendering.cpp |
index 47274f9d6957d5dfb638f3f1dc8ca4285ac1c6a8..0ecf58a8e1f47c58cd60351e6f05d1a344d7c58f 100644 |
--- a/src/gpu/gl/GrGLPathRendering.cpp |
+++ b/src/gpu/gl/GrGLPathRendering.cpp |
@@ -91,7 +91,10 @@ GrGLPathRendering::~GrGLPathRendering() { |
} |
} |
-void GrGLPathRendering::abandonGpuResources() { |
+void GrGLPathRendering::disconnect(GrGpu::DisconnectType type) { |
+ if (GrGpu::DisconnectType::kCleanup == type) { |
+ this->deletePaths(fFirstPreallocatedPathID, fPreallocatedPathCount); |
+ }; |
fPreallocatedPathCount = 0; |
} |