Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(262)

Unified Diff: src/gpu/GrDrawingManager.cpp

Issue 1416113006: Minor cleanup of clip mask manager (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/gpu/GrClipMaskManager.cpp ('k') | src/gpu/GrPathRendererChain.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/GrDrawingManager.cpp
diff --git a/src/gpu/GrDrawingManager.cpp b/src/gpu/GrDrawingManager.cpp
index 0a487daf4146fadb7f7869f8144454d702188ec5..4483a159346f0413f422e155470f0d709b5967e3 100644
--- a/src/gpu/GrDrawingManager.cpp
+++ b/src/gpu/GrDrawingManager.cpp
@@ -31,7 +31,8 @@ void GrDrawingManager::cleanup() {
fTextContexts[i][1] = nullptr;
}
- SkSafeSetNull(fPathRendererChain);
+ delete fPathRendererChain;
+ fPathRendererChain = nullptr;
SkSafeSetNull(fSoftwarePathRenderer);
}
@@ -46,7 +47,8 @@ void GrDrawingManager::abandon() {
void GrDrawingManager::freeGpuResources() {
// a path renderer may be holding onto resources
- SkSafeSetNull(fPathRendererChain);
+ delete fPathRendererChain;
+ fPathRendererChain = nullptr;
SkSafeSetNull(fSoftwarePathRenderer);
}
« no previous file with comments | « src/gpu/GrClipMaskManager.cpp ('k') | src/gpu/GrPathRendererChain.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698