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

Unified Diff: include/core/SkMask.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: 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: include/core/SkMask.h
diff --git a/include/core/SkMask.h b/include/core/SkMask.h
index 5cfef970c5024fd91bd2b2767c4fd93f33d9cf8d..77e0c817d1f7e3a16aa779141596f033397db6d4 100644
--- a/include/core/SkMask.h
+++ b/include/core/SkMask.h
@@ -10,6 +10,7 @@
#ifndef SkMask_DEFINED
#define SkMask_DEFINED
+#include "SkDiscardableMemory.h"
#include "SkRect.h"
/** \class SkMask
@@ -30,6 +31,8 @@ struct SkMask {
kCountMaskFormats = kLCD32_Format + 1
};
+ SkDiscardableMemory* fDiscardableMemory;
+ bool fUseDiscardableMemory;
uint8_t* fImage;
SkIRect fBounds;
uint32_t fRowBytes;

Powered by Google App Engine
This is Rietveld 408576698