OLD | NEW |
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 part of dart.sky; | 5 part of dart.sky; |
6 | 6 |
7 /// List of predefined color transfer modes. This list comes from Skia's | 7 /// List of predefined color transfer modes. This list comes from Skia's |
8 /// SkXfermode.h and the values (order) should be kept in sync. | 8 /// SkXfermode.h and the values (order) should be kept in sync. |
9 enum TransferMode { | 9 enum TransferMode { |
10 clearMode, | 10 clear, |
11 srcMode, | 11 src, |
12 dstMode, | 12 dst, |
13 srcOverMode, | 13 srcOver, |
14 dstOverMode, | 14 dstOver, |
15 srcInMode, | 15 srcIn, |
16 dstInMode, | 16 dstIn, |
17 srcOutMode, | 17 srcOut, |
18 dstOutMode, | 18 dstOut, |
19 srcATopMode, | 19 srcATop, |
20 dstATopMode, | 20 dstATop, |
21 xorMode, | 21 xor, |
22 plusMode, | 22 plus, |
23 modulateMode, | 23 modulate, |
24 | 24 |
25 // Following blend modes are defined in the CSS Compositing standard. | 25 // Following blend modes are defined in the CSS Compositing standard. |
26 screenMode, /// The last coeff mode. | 26 screen, /// The last coeff mode. |
27 | 27 |
28 overlayMode, | 28 overlay, |
29 darkenMode, | 29 darken, |
30 lightenMode, | 30 lighten, |
31 colorDodgeMode, | 31 colorDodge, |
32 colorBurnMode, | 32 colorBurn, |
33 hardLightMode, | 33 hardLight, |
34 softLightMode, | 34 softLight, |
35 differenceMode, | 35 difference, |
36 exclusionMode, | 36 exclusion, |
37 multiplyMode, /// The last separable mode. | 37 multiply, /// The last separable mode. |
38 | 38 |
39 hueMode, | 39 hue, |
40 saturationMode, | 40 saturation, |
41 colorMode, | 41 color, |
42 luminosityMode, | 42 luminosity, |
43 } | 43 } |
OLD | NEW |