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

Unified Diff: experimental/fiddle/draw.cpp

Issue 1834993003: experimental/fiddle: update to work again (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 | « no previous file | experimental/fiddle/fiddle_main.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: experimental/fiddle/draw.cpp
diff --git a/experimental/fiddle/draw.cpp b/experimental/fiddle/draw.cpp
index dfed793701a4ef10e5853a9f330473f03dff86da..78f428da2a6ad08853d34868500e5586185c571b 100644
--- a/experimental/fiddle/draw.cpp
+++ b/experimental/fiddle/draw.cpp
@@ -20,11 +20,9 @@ void draw(SkCanvas* canvas) {
SkMatrix matrix;
matrix.setScale(0.75f, 0.75f);
matrix.preRotate(30.0f);
- SkAutoTUnref<SkShader> shader(
- image->newShader(SkShader::kRepeat_TileMode,
- SkShader::kRepeat_TileMode,
- &matrix));
SkPaint paint;
- paint.setShader(shader);
+ paint.setShader(image->makeShader(SkShader::kRepeat_TileMode,
+ SkShader::kRepeat_TileMode,
+ &matrix));
canvas->drawPaint(paint);
}
« no previous file with comments | « no previous file | experimental/fiddle/fiddle_main.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698