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

Unified Diff: src/core/SkPaint.cpp

Issue 1329853005: Make SkGraphics::Term a no-op, stop calling it. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: remove deprecation Created 5 years, 3 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/core/SkGraphics.cpp ('k') | tests/PathOpsSkpClipTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/core/SkPaint.cpp
diff --git a/src/core/SkPaint.cpp b/src/core/SkPaint.cpp
index c1097204c4d7ae40777793d4f51cf53321e3d807..e15c1a74dbb1b954f65ea91e547a59a733c28208 100644
--- a/src/core/SkPaint.cpp
+++ b/src/core/SkPaint.cpp
@@ -1525,18 +1525,6 @@ static const SkMaskGamma& cachedMaskGamma(SkScalar contrast, SkScalar paintGamma
return *gMaskGamma;
}
-/*static*/ void SkPaint::Term() {
- SkAutoMutexAcquire ama(gMaskGammaCacheMutex);
-
- SkSafeUnref(gLinearMaskGamma);
- gLinearMaskGamma = nullptr;
- SkSafeUnref(gMaskGamma);
- gMaskGamma = nullptr;
- SkDEBUGCODE(gContrast = SK_ScalarMin;)
- SkDEBUGCODE(gPaintGamma = SK_ScalarMin;)
- SkDEBUGCODE(gDeviceGamma = SK_ScalarMin;)
-}
-
/**
* We ensure that the rec is self-consistent and efficient (where possible)
*/
« no previous file with comments | « src/core/SkGraphics.cpp ('k') | tests/PathOpsSkpClipTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698