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

Side by Side Diff: third_party/WebKit/Source/platform/graphics/skia/SkiaUtils.cpp

Issue 2571953003: WebBlendModeNormal should map to SkBlendMode::kSrcOver (Closed)
Patch Set: Created 4 years 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 | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698