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

Unified Diff: bench/BlurOccludedRRectBench.cpp

Issue 2201133002: Implement GPU occluded blur mask filter (Closed) Base URL: https://skia.googlesource.com/skia.git@occluded-blur
Patch Set: update to ToT Created 4 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
« no previous file with comments | « no previous file | gm/occludedrrectblur.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: bench/BlurOccludedRRectBench.cpp
diff --git a/bench/BlurOccludedRRectBench.cpp b/bench/BlurOccludedRRectBench.cpp
index a2e8276776b11023a86aa1329102748fbd694a0d..a3c9e193ac81228baaa215ca1a7c217ac32937bb 100644
--- a/bench/BlurOccludedRRectBench.cpp
+++ b/bench/BlurOccludedRRectBench.cpp
@@ -35,7 +35,7 @@ public:
const SkRect r = SkRect::MakeWH(480, 230);
const SkRRect rr = SkRRect::MakeRectXY(r, 8, 8);
- //SkRect occRect = sk_tool_utils::compute_central_occluder(rr);
+ SkRect occRect = sk_tool_utils::compute_central_occluder(rr);
for (int i = 0; i < 2; ++i) {
canvas->save();
@@ -51,8 +51,8 @@ public:
firstBlur.setAntiAlias(true);
firstBlur.setColor(0x09000000);
firstBlur.setMaskFilter(SkBlurMaskFilter::Make(kNormal_SkBlurStyle,
- 2.5f));
- //, occRect));
+ 2.5f,
+ occRect));
canvas->drawRRect(rr, firstBlur);
@@ -63,8 +63,8 @@ public:
secondBlur.setAntiAlias(true);
secondBlur.setColor(0x30000000);
secondBlur.setMaskFilter(SkBlurMaskFilter::Make(kNormal_SkBlurStyle,
- 6.0f));
- //, occRect));
+ 6.0f,
+ occRect));
canvas->drawRRect(rr, secondBlur);
« no previous file with comments | « no previous file | gm/occludedrrectblur.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698