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

Unified Diff: include/core/SkMask.h

Issue 471473002: Optimize CSS box-shadow performance (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: backed blur mask with a bitmap Created 6 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
Index: include/core/SkMask.h
diff --git a/include/core/SkMask.h b/include/core/SkMask.h
index 5cfef970c5024fd91bd2b2767c4fd93f33d9cf8d..c70a9ce932ec3c9d76d604cae7853e4be4dd64a5 100644
--- a/include/core/SkMask.h
+++ b/include/core/SkMask.h
@@ -10,6 +10,7 @@
#ifndef SkMask_DEFINED
#define SkMask_DEFINED
+#include "SkBitmap.h"
#include "SkRect.h"
/** \class SkMask
@@ -34,6 +35,7 @@ struct SkMask {
SkIRect fBounds;
uint32_t fRowBytes;
Format fFormat;
+ SkBitmap fBitmap;
/** Returns true if the mask is empty: i.e. it has an empty bounds.
*/
« no previous file with comments | « gyp/core.gypi ('k') | src/core/SkBitmapCache.h » ('j') | src/core/SkBitmapCache.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698