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

Side by Side Diff: sky/engine/core/painting/DrawLooperLayerInfo.idl

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, 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 unified diff | Download patch
« no previous file with comments | « sky/engine/core/painting/DrawLooperLayerInfo.h ('k') | sky/engine/core/painting/TransferMode.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 [ 5 [
6 Constructor(), 6 Constructor(),
7 ] interface DrawLooperLayerInfo { 7 ] interface DrawLooperLayerInfo {
8 // Bits specifies which aspects of the layer's paint should replace the 8 // Bits specifies which aspects of the layer's paint should replace the
9 // corresponding aspects on the draw's paint. 9 // corresponding aspects on the draw's paint.
10 // ENTIRE_PAINT_BITS means use the layer's paint completely. 10 // ENTIRE_PAINT_BITS means use the layer's paint completely.
11 // 0 means ignore the layer's paint... except for colorMode, which is 11 // 0 means ignore the layer's paint... except for colorMode, which is
12 // always applied. 12 // always applied.
13 // TODO(mpcomplete): maybe these should each be functions (e.g. useStyle()). 13 // TODO(mpcomplete): maybe these should each be functions (e.g. useStyle()).
14 // TODO(mpcomplete): the IDL compiler doesn't use these for anything? 14 // TODO(mpcomplete): the IDL compiler doesn't use these for anything?
15 // TODO(mpcomplete): dart style says to name these like 'styleBit'.
15 const unsigned long STYLE_BIT = 0x1; 16 const unsigned long STYLE_BIT = 0x1;
16 const unsigned long TEXT_SKEWX_BIT = 0x2; 17 const unsigned long TEXT_SKEWX_BIT = 0x2;
17 const unsigned long PATH_EFFECT_BIT = 0x4; 18 const unsigned long PATH_EFFECT_BIT = 0x4;
18 const unsigned long MASK_FILTER_BIT = 0x8; 19 const unsigned long MASK_FILTER_BIT = 0x8;
19 const unsigned long SHADER_BIT = 0x10; 20 const unsigned long SHADER_BIT = 0x10;
20 const unsigned long COLOR_FILTER_BIT = 0x20; 21 const unsigned long COLOR_FILTER_BIT = 0x20;
21 const unsigned long XFERMODE_BIT = 0x40; 22 const unsigned long XFERMODE_BIT = 0x40;
22 const unsigned long ENTIRE_PAINT_BITS = -1; 23 const unsigned long ENTIRE_PAINT_BITS = -1;
23 24
24 void setPaintBits(unsigned long bits); 25 void setPaintBits(unsigned long bits);
25 // TODO(mpcomplete): use SkXfermode::Mode. 26 void setColorMode(TransferMode mode);
26 void setColorMode(unsigned long mode); 27 void setOffset(Point offset);
27 // TODO(mpcomplete): use Point.
28 void setOffset(float x, float y);
29 void setPostTranslate(boolean postTranslate); 28 void setPostTranslate(boolean postTranslate);
30 }; 29 };
OLDNEW
« no previous file with comments | « sky/engine/core/painting/DrawLooperLayerInfo.h ('k') | sky/engine/core/painting/TransferMode.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698