| 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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 {CompositeDestinationOver, SkBlendMode::kDstOver}, | 48 {CompositeDestinationOver, SkBlendMode::kDstOver}, |
| 49 {CompositeDestinationIn, SkBlendMode::kDstIn}, | 49 {CompositeDestinationIn, SkBlendMode::kDstIn}, |
| 50 {CompositeDestinationOut, SkBlendMode::kDstOut}, | 50 {CompositeDestinationOut, SkBlendMode::kDstOut}, |
| 51 {CompositeDestinationAtop, SkBlendMode::kDstATop}, | 51 {CompositeDestinationAtop, SkBlendMode::kDstATop}, |
| 52 {CompositeXOR, SkBlendMode::kXor}, | 52 {CompositeXOR, SkBlendMode::kXor}, |
| 53 {CompositePlusLighter, SkBlendMode::kPlus}}; | 53 {CompositePlusLighter, SkBlendMode::kPlus}}; |
| 54 | 54 |
| 55 // Keep this array in sync with the WebBlendMode enum in | 55 // Keep this array in sync with the WebBlendMode enum in |
| 56 // public/platform/WebBlendMode.h. | 56 // public/platform/WebBlendMode.h. |
| 57 static const SkBlendMode gMapBlendOpsToXfermodeModes[] = { | 57 static const SkBlendMode gMapBlendOpsToXfermodeModes[] = { |
| 58 SkBlendMode::kClear, // WebBlendModeNormal | 58 SkBlendMode::kSrcOver, // WebBlendModeNormal |
| 59 SkBlendMode::kMultiply, // WebBlendModeMultiply | 59 SkBlendMode::kMultiply, // WebBlendModeMultiply |
| 60 SkBlendMode::kScreen, // WebBlendModeScreen | 60 SkBlendMode::kScreen, // WebBlendModeScreen |
| 61 SkBlendMode::kOverlay, // WebBlendModeOverlay | 61 SkBlendMode::kOverlay, // WebBlendModeOverlay |
| 62 SkBlendMode::kDarken, // WebBlendModeDarken | 62 SkBlendMode::kDarken, // WebBlendModeDarken |
| 63 SkBlendMode::kLighten, // WebBlendModeLighten | 63 SkBlendMode::kLighten, // WebBlendModeLighten |
| 64 SkBlendMode::kColorDodge, // WebBlendModeColorDodge | 64 SkBlendMode::kColorDodge, // WebBlendModeColorDodge |
| 65 SkBlendMode::kColorBurn, // WebBlendModeColorBurn | 65 SkBlendMode::kColorBurn, // WebBlendModeColorBurn |
| 66 SkBlendMode::kHardLight, // WebBlendModeHardLight | 66 SkBlendMode::kHardLight, // WebBlendModeHardLight |
| 67 SkBlendMode::kSoftLight, // WebBlendModeSoftLight | 67 SkBlendMode::kSoftLight, // WebBlendModeSoftLight |
| 68 SkBlendMode::kDifference, // WebBlendModeDifference | 68 SkBlendMode::kDifference, // WebBlendModeDifference |
| (...skipping 296 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 365 template void PLATFORM_EXPORT drawPlatformFocusRing<SkRect>(const SkRect&, | 365 template void PLATFORM_EXPORT drawPlatformFocusRing<SkRect>(const SkRect&, |
| 366 SkCanvas*, | 366 SkCanvas*, |
| 367 SkColor, | 367 SkColor, |
| 368 float width); | 368 float width); |
| 369 template void PLATFORM_EXPORT drawPlatformFocusRing<SkPath>(const SkPath&, | 369 template void PLATFORM_EXPORT drawPlatformFocusRing<SkPath>(const SkPath&, |
| 370 SkCanvas*, | 370 SkCanvas*, |
| 371 SkColor, | 371 SkColor, |
| 372 float width); | 372 float width); |
| 373 | 373 |
| 374 } // namespace blink | 374 } // namespace blink |
| OLD | NEW |