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

Unified Diff: src/core/SkBitmapCache.h

Issue 471473002: Optimize CSS box-shadow performance (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: based on SkBitmapCache Created 6 years, 4 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/SkBitmapCache.h
diff --git a/src/core/SkBitmapCache.h b/src/core/SkBitmapCache.h
index ebade0ebd9b67fa277d6e9b2407cd2e691f20676..6b9f0881f1c741dcc2383c995877648c0f6eb1ae 100644
--- a/src/core/SkBitmapCache.h
+++ b/src/core/SkBitmapCache.h
@@ -8,6 +8,8 @@
#ifndef SkBitmapCache_DEFINED
#define SkBitmapCache_DEFINED
+#include "SkRect.h"
+#include "SkRRect.h"
#include "SkScaledImageCache.h"
class SkBitmapCache {
@@ -28,6 +30,16 @@ public:
static ID* FindAndLock(uint32_t genID, int width, int height, SkBitmap* result);
static ID* AddAndLock(uint32_t genID, int width, int height, const SkBitmap& result);
+
+ /* Input: blur_sigma+rrect */
+ static ID* FindAndLock(SkScalar sigma, const SkRRect rrect, SkBitmap* result);
+ static ID* AddAndLock(SkScalar sigma, const SkRRect rrect, const SkBitmap& bitmap);
+
+ /* Input: blur_sigma+rects_count+rects */
+ static ID* FindAndLock(SkScalar sigma, unsigned count, const SkRect rects[],
+ SkBitmap* result);
+ static ID* AddAndLock(SkScalar sigma, unsigned count, const SkRect rects[],
+ const SkBitmap& bitmap);
};
class SkMipMapCache {

Powered by Google App Engine
This is Rietveld 408576698