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

Unified Diff: sky/engine/core/painting/DrawLooperLayerInfo.dart

Issue 1175403002: Expose and use constants for DrawLooperLayerInfo.setPaintBits to dart. (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/core.gni ('k') | sky/engine/core/painting/DrawLooperLayerInfo.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/core/painting/DrawLooperLayerInfo.dart
diff --git a/sky/engine/core/painting/DrawLooperLayerInfo.dart b/sky/engine/core/painting/DrawLooperLayerInfo.dart
new file mode 100644
index 0000000000000000000000000000000000000000..6f7647c1a87411687bf3b3cfb96cbf6fc8fa41ba
--- /dev/null
+++ b/sky/engine/core/painting/DrawLooperLayerInfo.dart
@@ -0,0 +1,23 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+part of dart.sky;
+
+/// Paint masks for DrawLooperLayerInfo.setPaintBits. These specify which
+/// aspects of the layer's paint should replace the corresponding aspects on
+/// the draw's paint.
+///
+/// PaintBits.all means use the layer's paint completely.
+/// 0 means ignore the layer's paint... except for colorMode, which is
+/// always applied.
+class PaintBits {
+ static const int style = 0x1;
+ static const int testSkewx = 0x2;
+ static const int pathEffect = 0x4;
+ static const int maskFilter = 0x8;
+ static const int shader = 0x10;
+ static const int colorFilter = 0x20;
+ static const int xfermode = 0x40;
+ static const int all = 0xFFFFFFFF;
+}
« no previous file with comments | « sky/engine/core/core.gni ('k') | sky/engine/core/painting/DrawLooperLayerInfo.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698