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

Unified Diff: include/core/SkMaskFilter.h

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: rebase with latest skia in git instead of svn trunk Created 6 years, 6 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: include/core/SkMaskFilter.h
diff --git a/include/core/SkMaskFilter.h b/include/core/SkMaskFilter.h
index 72f20af21fbb5698522f96d1883316e75c8d23ca..8797c5b2483dbf7a754f5e6ef40915ae6986a1c4 100644
--- a/include/core/SkMaskFilter.h
+++ b/include/core/SkMaskFilter.h
@@ -165,7 +165,7 @@ protected:
};
struct NinePatch {
- SkMask fMask; // fBounds must have [0,0] in its top-left
+ SkDiscardableMemoryMask fDiscardableMemoryMask; // fBounds must have [0,0] in its top-left
SkIRect fOuterRect; // width/height must be >= fMask.fBounds'
SkIPoint fCenter; // identifies center row/col for stretching
};

Powered by Google App Engine
This is Rietveld 408576698