Index: src/gpu/gl/GrGLPathRange.cpp |
diff --git a/src/gpu/gl/GrGLPathRange.cpp b/src/gpu/gl/GrGLPathRange.cpp |
index cc660ed2bb28300b9c123fa0095eb5a296540aac..6ed7bcc425dfdc89b499a050ed245f9e4fa5fa69 100644 |
--- a/src/gpu/gl/GrGLPathRange.cpp |
+++ b/src/gpu/gl/GrGLPathRange.cpp |
@@ -16,7 +16,7 @@ GrGLPathRange::GrGLPathRange(GrGLGpu* gpu, PathGenerator* pathGenerator, const G |
fBasePathID(gpu->glPathRendering()->genPaths(this->getNumPaths())), |
fGpuMemorySize(0) { |
this->init(); |
- this->registerWithCache(); |
+ this->registerWithCache(SkBudgeted::kYes); |
} |
GrGLPathRange::GrGLPathRange(GrGLGpu* gpu, |
@@ -29,7 +29,7 @@ GrGLPathRange::GrGLPathRange(GrGLGpu* gpu, |
fBasePathID(basePathID), |
fGpuMemorySize(gpuMemorySize) { |
this->init(); |
- this->registerWithCache(); |
+ this->registerWithCache(SkBudgeted::kYes); |
} |
void GrGLPathRange::init() { |
@@ -101,7 +101,7 @@ void GrGLPathRange::onInitPath(int index, const SkPath& origSkPath) const { |
void GrGLPathRange::onRelease() { |
SkASSERT(this->getGpu()); |
- if (0 != fBasePathID && this->shouldFreeResources()) { |
+ if (0 != fBasePathID) { |
static_cast<GrGLGpu*>(this->getGpu())->glPathRendering()->deletePaths(fBasePathID, |
this->getNumPaths()); |
fBasePathID = 0; |