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

Unified Diff: src/effects/SkBlurMask.h

Issue 471473002: Optimize CSS box-shadow performance (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: store SkMask and SkCachedData in cache Created 6 years, 2 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/effects/SkBlurMask.h
diff --git a/src/effects/SkBlurMask.h b/src/effects/SkBlurMask.h
index 71f60d91faabf5ab6642803f49660ca180119bd7..8147e4bf3203a34cbc9e13802115e97d6a835639 100644
--- a/src/effects/SkBlurMask.h
+++ b/src/effects/SkBlurMask.h
@@ -9,18 +9,19 @@
#define SkBlurMask_DEFINED
#include "SkBlurTypes.h"
+#include "SkCachedData.h"
#include "SkShader.h"
#include "SkMask.h"
#include "SkRRect.h"
class SkBlurMask {
public:
- static bool BlurRect(SkScalar sigma, SkMask *dst, const SkRect &src, SkBlurStyle,
- SkIPoint *margin = NULL,
+ static bool BlurRect(SkScalar sigma, SkMask *dst, SkCachedData** data, const SkRect &src,
+ SkBlurStyle, SkIPoint *margin = NULL,
SkMask::CreateMode createMode =
SkMask::kComputeBoundsAndRenderImage_CreateMode);
- static bool BlurRRect(SkScalar sigma, SkMask *dst, const SkRRect &src, SkBlurStyle,
- SkIPoint *margin = NULL,
+ static bool BlurRRect(SkScalar sigma, SkMask *dst, SkCachedData** data, const SkRRect &src,
+ SkBlurStyle, SkIPoint *margin = NULL,
SkMask::CreateMode createMode =
SkMask::kComputeBoundsAndRenderImage_CreateMode);
@@ -30,7 +31,7 @@ public:
// but also being able to predict precisely at what pixels the blurred profile of e.g. a
// rectangle will lie.
- static bool BoxBlur(SkMask* dst, const SkMask& src,
+ static bool BoxBlur(SkMask* dst, SkCachedData** data, const SkMask& src,
SkScalar sigma, SkBlurStyle style, SkBlurQuality quality,
SkIPoint* margin = NULL, bool force_quality=false);
@@ -76,8 +77,6 @@ public:
static void ComputeBlurredScanline(uint8_t* pixels, const uint8_t* profile,
unsigned int width, SkScalar sigma);
-
-
};
#endif

Powered by Google App Engine
This is Rietveld 408576698