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

Unified Diff: Source/platform/graphics/paint/CompositingDisplayItem.cpp

Issue 661053003: Make beginLayer() and CanvasRenderingContext2D use SkXfermode::Mode. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase to ToT Created 5 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: Source/platform/graphics/paint/CompositingDisplayItem.cpp
diff --git a/Source/platform/graphics/paint/CompositingDisplayItem.cpp b/Source/platform/graphics/paint/CompositingDisplayItem.cpp
index 58a16d69e47caa55e9fcf0efec3bfec0b1f09cfa..04f54b650543ae87cff45918bd24f618aa8a5cad 100644
--- a/Source/platform/graphics/paint/CompositingDisplayItem.cpp
+++ b/Source/platform/graphics/paint/CompositingDisplayItem.cpp
@@ -7,6 +7,7 @@
#include "platform/RuntimeEnabledFeatures.h"
#include "platform/graphics/GraphicsContext.h"
+#include "platform/graphics/skia/SkiaUtils.h"
#include "public/platform/WebDisplayItemList.h"
namespace blink {
@@ -14,7 +15,7 @@ namespace blink {
void BeginCompositingDisplayItem::replay(GraphicsContext* context)
{
context->setCompositeOperation(m_preCompositeOp, m_preBlendMode);
- context->beginLayer(m_opacity, m_preCompositeOp);
+ context->beginLayer(m_opacity, WebCoreCompositeToSkiaComposite(m_preCompositeOp, m_preBlendMode));
context->setCompositeOperation(m_postCompositeOp, WebBlendModeNormal);
}
« no previous file with comments | « Source/platform/graphics/GraphicsContextState.cpp ('k') | Source/platform/graphics/paint/FilterDisplayItem.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698