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

Unified Diff: sky/examples/raw/shadow.dart

Issue 1158883004: Add TransferMode to dart:sky, and use it instead of passing ints around. (Closed) Base URL: git@github.com:/domokit/mojo.git@master
Patch Set: rebase Created 5 years, 7 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/painting.sky ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/examples/raw/shadow.dart
diff --git a/sky/examples/raw/shadow.dart b/sky/examples/raw/shadow.dart
index a83602e88d4dc0fbbd7634f656a7c042805f135b..0b61437fffa862b20a8bb358107d712a0e046cb5 100644
--- a/sky/examples/raw/shadow.dart
+++ b/sky/examples/raw/shadow.dart
@@ -14,7 +14,9 @@ void beginFrame(double timeStamp) {
var builder = new LayerDrawLooperBuilder()
// Shadow layer.
..addLayerOnTop(
- new DrawLooperLayerInfo()..setOffset(5.0, 5.0)..setColorMode(5),
+ new DrawLooperLayerInfo()
+ ..setOffset(const Point(5.0, 5.0))
+ ..setColorMode(TransferMode.srcInMode),
(Paint layerPaint) {
layerPaint.setARGB(128, 55, 55, 55);
// TODO(mpcomplete): add blur filter
« no previous file with comments | « sky/examples/raw/painting.sky ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698