aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/gl/GrGLPath.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gpu/gl/GrGLPath.cpp')
-rw-r--r--src/gpu/gl/GrGLPath.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gpu/gl/GrGLPath.cpp b/src/gpu/gl/GrGLPath.cpp
index 46006558b9..ed5a31d9d2 100644
--- a/src/gpu/gl/GrGLPath.cpp
+++ b/src/gpu/gl/GrGLPath.cpp
@@ -330,11 +330,11 @@ GrGLPath::GrGLPath(GrGLGpu* gpu, const SkPath& origSkPath, const GrStrokeInfo& o
}
}
- this->registerWithCache();
+ this->registerWithCache(SkBudgeted::kYes);
}
void GrGLPath::onRelease() {
- if (0 != fPathID && this->shouldFreeResources()) {
+ if (0 != fPathID) {
static_cast<GrGLGpu*>(this->getGpu())->glPathRendering()->deletePaths(fPathID, 1);
fPathID = 0;
}