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

Unified Diff: sky/examples/raw/draw_picture_into_canvas.sky

Issue 1182563002: Remove redundant Paint.setARGB in favor of assigning to Paint.color. (Closed) Base URL: git@github.com:/domokit/mojo.git@master
Patch Set: Created 5 years, 6 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 | « sky/examples/raw/custom_paint_without_element.sky ('k') | sky/examples/raw/hello_world.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/examples/raw/draw_picture_into_canvas.sky
diff --git a/sky/examples/raw/draw_picture_into_canvas.sky b/sky/examples/raw/draw_picture_into_canvas.sky
index 95f9ca19926fc98460a5aec85ef6d859a0a38820..6b8024d9ba13b9ca7f471a6a99618dd8aff30c37 100644
--- a/sky/examples/raw/draw_picture_into_canvas.sky
+++ b/sky/examples/raw/draw_picture_into_canvas.sky
@@ -15,7 +15,7 @@ void main() {
Picture stamp = stampRecorder.endRecording();
PictureRecorder recorder = new PictureRecorder(width, height);
- Paint paint = new Paint()..setARGB(255, 0, 255, 0);
+ Paint paint = new Paint()..color = Color.fromARGB(255, 0, 255, 0);
recorder.drawCircle(50.0, 50.0, 50.0, paint);
recorder.translate(10.0, 10.0);
recorder.drawPicture(stamp);
« no previous file with comments | « sky/examples/raw/custom_paint_without_element.sky ('k') | sky/examples/raw/hello_world.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698