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

Unified Diff: bench/MagnifierBench.cpp

Issue 1864843002: Update MagnifierImageFilter to sk_sp (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 8 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 | fuzz/FilterFuzz.cpp » ('j') | fuzz/FilterFuzz.cpp » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: bench/MagnifierBench.cpp
diff --git a/bench/MagnifierBench.cpp b/bench/MagnifierBench.cpp
index 61850597fa03ae609c015c1e45a7bc22994eede9..98deade164f5f19339f058940bd9783c98b80e32 100644
--- a/bench/MagnifierBench.cpp
+++ b/bench/MagnifierBench.cpp
@@ -38,11 +38,11 @@ protected:
const int h = fIsSmall ? FILTER_HEIGHT_SMALL : FILTER_HEIGHT_LARGE;
SkPaint paint;
paint.setImageFilter(
- SkMagnifierImageFilter::Create(
+ SkMagnifierImageFilter::Make(
SkRect::MakeXYWH(SkIntToScalar(w / 4),
SkIntToScalar(h / 4),
SkIntToScalar(w / 2),
- SkIntToScalar(h / 2)), 100))->unref();
+ SkIntToScalar(h / 2)), 100, nullptr));
for (int i = 0; i < loops; i++) {
canvas->drawBitmap(fCheckerboard, 0, 0, &paint);
« no previous file with comments | « no previous file | fuzz/FilterFuzz.cpp » ('j') | fuzz/FilterFuzz.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698