diff options
author | robertphillips <robertphillips@google.com> | 2016-04-07 07:34:15 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-04-07 07:34:15 -0700 |
commit | 11171f3b66ba6aba561fcaafbc51eaa354b73353 (patch) | |
tree | 020973f14f0e9325ad763b4b1af4c9b99a09424d /gm/imagemagnifier.cpp | |
parent | 32f7782706fbf692c613457a74d080e18e27b15a (diff) |
Update MagnifierImageFilter to sk_sp
TBR=reed@google.com
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1864843002
Review URL: https://codereview.chromium.org/1864843002
Diffstat (limited to 'gm/imagemagnifier.cpp')
-rw-r--r-- | gm/imagemagnifier.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gm/imagemagnifier.cpp b/gm/imagemagnifier.cpp index 73639813a3..5697aa2480 100644 --- a/gm/imagemagnifier.cpp +++ b/gm/imagemagnifier.cpp @@ -15,11 +15,11 @@ DEF_SIMPLE_GM_BG(imagemagnifier, canvas, WIDTH, HEIGHT, SK_ColorBLACK) { SkPaint filterPaint; filterPaint.setImageFilter( - SkMagnifierImageFilter::Create( + SkMagnifierImageFilter::Make( SkRect::MakeXYWH(SkIntToScalar(100), SkIntToScalar(100), SkIntToScalar(WIDTH / 2), SkIntToScalar(HEIGHT / 2)), - 100))->unref(); + 100, nullptr)); canvas->saveLayer(nullptr, &filterPaint); const char* str = "The quick brown fox jumped over the lazy dog."; SkRandom rand; |