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

Unified Diff: gm/pictureshader.cpp

Issue 1829303002: move setshader to sk_sp (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
Index: gm/pictureshader.cpp
diff --git a/gm/pictureshader.cpp b/gm/pictureshader.cpp
index 0916744c694c1f273088e57b39cbc1a7e036c932..5fc818acc8926c5eb2e32035cdf7199ec4094be1 100644
--- a/gm/pictureshader.cpp
+++ b/gm/pictureshader.cpp
@@ -204,7 +204,7 @@ DEF_SIMPLE_GM(tiled_picture_shader, canvas, 400, 400) {
canvas->clipRect(SkRect::MakeXYWH(0, 0, 400, 350));
p.setColor(sk_tool_utils::color_to_565(0xFFB6B6B6)); // gray
canvas->drawPaint(p);
- p.setShader(shader.get());
+ p.setShader(std::move(shader));
tomhudson 2016/03/25 14:28:07 Nit: could fold shader construction into this line
reed1 2016/03/25 15:04:31 Done.
canvas->drawPaint(p);
}
« no previous file with comments | « gm/perlinnoise.cpp ('k') | gm/samplerstress.cpp » ('j') | samplecode/SampleLighting.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698