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

Unified Diff: sky/examples/game/lib/sprite_node.dart

Issue 1163373007: Change the ColorFilter constructor to ColorFilter.Mode, in case we want to add (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/engine/core/painting/ColorFilter.idl ('k') | sky/examples/raw/painting.sky » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/examples/game/lib/sprite_node.dart
diff --git a/sky/examples/game/lib/sprite_node.dart b/sky/examples/game/lib/sprite_node.dart
index 406a3f4ab442a98a546e816a7af5dc5c21767e8f..327f5e028c63fe865b41cdc171580911012e2668 100644
--- a/sky/examples/game/lib/sprite_node.dart
+++ b/sky/examples/game/lib/sprite_node.dart
@@ -52,7 +52,7 @@ class SpriteNode extends TransformNode {
Paint paint = new Paint();
paint.setARGB((255.0*_opacity).toInt(), 255, 255, 255);
if (colorOverlay != null) {
- paint.setColorFilter(new ColorFilter(colorOverlay, TransferMode.srcATopMode));
+ paint.setColorFilter(new ColorFilter.Mode(colorOverlay, TransferMode.srcATopMode));
}
if (transferMode != null) {
paint.setTransferMode(transferMode);
@@ -68,4 +68,4 @@ class SpriteNode extends TransformNode {
}
}
-}
+}
« no previous file with comments | « sky/engine/core/painting/ColorFilter.idl ('k') | sky/examples/raw/painting.sky » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698