OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2006,2007,2008, Google Inc. All rights reserved. | 2 * Copyright (c) 2006,2007,2008, Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 {CompositeSourceIn, SkXfermode::kSrcIn_Mode}, | 45 {CompositeSourceIn, SkXfermode::kSrcIn_Mode}, |
46 {CompositeSourceOut, SkXfermode::kSrcOut_Mode}, | 46 {CompositeSourceOut, SkXfermode::kSrcOut_Mode}, |
47 {CompositeSourceAtop, SkXfermode::kSrcATop_Mode}, | 47 {CompositeSourceAtop, SkXfermode::kSrcATop_Mode}, |
48 {CompositeDestinationOver, SkXfermode::kDstOver_Mode}, | 48 {CompositeDestinationOver, SkXfermode::kDstOver_Mode}, |
49 {CompositeDestinationIn, SkXfermode::kDstIn_Mode}, | 49 {CompositeDestinationIn, SkXfermode::kDstIn_Mode}, |
50 {CompositeDestinationOut, SkXfermode::kDstOut_Mode}, | 50 {CompositeDestinationOut, SkXfermode::kDstOut_Mode}, |
51 {CompositeDestinationAtop, SkXfermode::kDstATop_Mode}, | 51 {CompositeDestinationAtop, SkXfermode::kDstATop_Mode}, |
52 {CompositeXOR, SkXfermode::kXor_Mode}, | 52 {CompositeXOR, SkXfermode::kXor_Mode}, |
53 {CompositePlusLighter, SkXfermode::kPlus_Mode}}; | 53 {CompositePlusLighter, SkXfermode::kPlus_Mode}}; |
54 | 54 |
55 // keep this array in sync with WebBlendMode enum in public/platform/WebBlendMod
e.h | 55 // Keep this array in sync with the WebBlendMode enum in |
| 56 // public/platform/WebBlendMode.h. |
56 static const SkXfermode::Mode gMapBlendOpsToXfermodeModes[] = { | 57 static const SkXfermode::Mode gMapBlendOpsToXfermodeModes[] = { |
57 SkXfermode::kClear_Mode, // WebBlendModeNormal | 58 SkXfermode::kClear_Mode, // WebBlendModeNormal |
58 SkXfermode::kMultiply_Mode, // WebBlendModeMultiply | 59 SkXfermode::kMultiply_Mode, // WebBlendModeMultiply |
59 SkXfermode::kScreen_Mode, // WebBlendModeScreen | 60 SkXfermode::kScreen_Mode, // WebBlendModeScreen |
60 SkXfermode::kOverlay_Mode, // WebBlendModeOverlay | 61 SkXfermode::kOverlay_Mode, // WebBlendModeOverlay |
61 SkXfermode::kDarken_Mode, // WebBlendModeDarken | 62 SkXfermode::kDarken_Mode, // WebBlendModeDarken |
62 SkXfermode::kLighten_Mode, // WebBlendModeLighten | 63 SkXfermode::kLighten_Mode, // WebBlendModeLighten |
63 SkXfermode::kColorDodge_Mode, // WebBlendModeColorDodge | 64 SkXfermode::kColorDodge_Mode, // WebBlendModeColorDodge |
64 SkXfermode::kColorBurn_Mode, // WebBlendModeColorBurn | 65 SkXfermode::kColorBurn_Mode, // WebBlendModeColorBurn |
65 SkXfermode::kHardLight_Mode, // WebBlendModeHardLight | 66 SkXfermode::kHardLight_Mode, // WebBlendModeHardLight |
(...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
364 template void PLATFORM_EXPORT drawPlatformFocusRing<SkRect>(const SkRect&, | 365 template void PLATFORM_EXPORT drawPlatformFocusRing<SkRect>(const SkRect&, |
365 SkCanvas*, | 366 SkCanvas*, |
366 SkColor, | 367 SkColor, |
367 int width); | 368 int width); |
368 template void PLATFORM_EXPORT drawPlatformFocusRing<SkPath>(const SkPath&, | 369 template void PLATFORM_EXPORT drawPlatformFocusRing<SkPath>(const SkPath&, |
369 SkCanvas*, | 370 SkCanvas*, |
370 SkColor, | 371 SkColor, |
371 int width); | 372 int width); |
372 | 373 |
373 } // namespace blink | 374 } // namespace blink |
OLD | NEW |