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

Unified Diff: bench/TileImageFilterBench.cpp

Issue 1882113002: Update TileImageFilter to sk_sp (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: update to ToT 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') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: bench/TileImageFilterBench.cpp
diff --git a/bench/TileImageFilterBench.cpp b/bench/TileImageFilterBench.cpp
index 350b0ac21483be30df0507d4035733a3903a041d..b9b38edd3574110ca8cf3a6664d24d7cffa81bb4 100644
--- a/bench/TileImageFilterBench.cpp
+++ b/bench/TileImageFilterBench.cpp
@@ -37,11 +37,9 @@ protected:
void onDraw(int loops, SkCanvas* canvas) override {
SkPaint paint;
- SkAutoTUnref<SkImageFilter> tile(SkTileImageFilter::Create(
- SkRect::MakeWH(50, 50),
- SkRect::MakeWH(WIDTH, HEIGHT),
- nullptr));
- paint.setImageFilter(tile);
+ paint.setImageFilter(SkTileImageFilter::Make(SkRect::MakeWH(50, 50),
+ SkRect::MakeWH(WIDTH, HEIGHT),
+ nullptr));
for (int i = 0; i < loops; i++) {
if (fTileSize > 0) {
« no previous file with comments | « no previous file | fuzz/FilterFuzz.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698