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

Unified Diff: bench/TileBench.cpp

Issue 1798133003: Revert of Finish conversion to sk_sp<SkShader> (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 9 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 | « bench/RepeatTileBench.cpp ('k') | example/HelloWorld.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: bench/TileBench.cpp
diff --git a/bench/TileBench.cpp b/bench/TileBench.cpp
index 47e79c78d4d7020d49ef64c771f9f64f51444873..6b91ada0c3c141a4f56f318eff281b8a9437121b 100644
--- a/bench/TileBench.cpp
+++ b/bench/TileBench.cpp
@@ -53,7 +53,8 @@
create_gradient(&bm);
- fPaint.setShader(SkShader::MakeBitmapShader(bm, xTile, yTile));
+ SkShader* s = SkShader::CreateBitmapShader(bm, xTile, yTile);
+ fPaint.setShader(s)->unref();
fName.printf("constXTile_");
« no previous file with comments | « bench/RepeatTileBench.cpp ('k') | example/HelloWorld.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698