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

Unified Diff: src/core/SkMaskFilter.cpp

Issue 286273002: Optimize CSS box-shadow performance by caching the SkMask of the blur effect. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: add mutex for thread-safe and use SkDiscardableMemory Created 6 years, 7 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
Index: src/core/SkMaskFilter.cpp
diff --git a/src/core/SkMaskFilter.cpp b/src/core/SkMaskFilter.cpp
index 8b9792c2c4fbddf182acb3726586709a34a13693..b8e632d0a3b51563f78af98b252a52fd2334e1cb 100644
--- a/src/core/SkMaskFilter.cpp
+++ b/src/core/SkMaskFilter.cpp
@@ -223,7 +223,6 @@ bool SkMaskFilter::filterRRect(const SkRRect& devRRect, const SkMatrix& matrix,
}
draw_nine(patch.fMask, patch.fOuterRect, patch.fCenter, true, clip,
bounder, blitter);
- SkMask::FreeImage(patch.fMask.fImage);
tomhudson 2014/05/22 10:01:50 NinePatch doesn't inherit from BlurMaskRecord, so
Jun Jiang 2014/05/23 02:06:28 Currently NinePatch and BlurMaskRecord are two ind
return true;
}
@@ -248,7 +247,6 @@ bool SkMaskFilter::filterPath(const SkPath& devPath, const SkMatrix& matrix,
case kTrue_FilterReturn:
draw_nine(patch.fMask, patch.fOuterRect, patch.fCenter,
1 == rectCount, clip, bounder, blitter);
- SkMask::FreeImage(patch.fMask.fImage);
return true;
case kUnimplemented_FilterReturn:

Powered by Google App Engine
This is Rietveld 408576698