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

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

Issue 1184523002: Fix bustage from my previous CL: "Color.fromARGB" becomes "new Color.fromARGB". (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/hello_world.dart ('k') | sky/examples/raw/spinning_arabic.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/examples/raw/paint_element_into_displaylist.sky
diff --git a/sky/examples/raw/paint_element_into_displaylist.sky b/sky/examples/raw/paint_element_into_displaylist.sky
index 1196436fb5c200880a76d957c67a48ad63e38463..31a1962d5370c5a759b2ec869d83e37e78491b62 100644
--- a/sky/examples/raw/paint_element_into_displaylist.sky
+++ b/sky/examples/raw/paint_element_into_displaylist.sky
@@ -11,7 +11,7 @@ void main() {
double width = window.innerWidth.toDouble();
double height = window.innerHeight.toDouble();
PictureRecorder recorder = new PictureRecorder(width, height);
- Paint paint = new Paint()..color = Color.fromARGB(255, 0, 255, 0);
+ Paint paint = new Paint()..color = const Color.fromARGB(255, 0, 255, 0);
recorder.drawCircle(50.0, 50.0, 50.0, paint);
recorder.translate(10.0, 10.0);
root.paint(recorder);
« no previous file with comments | « sky/examples/raw/hello_world.dart ('k') | sky/examples/raw/spinning_arabic.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698