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

Unified Diff: Source/WebCore/platform/graphics/skia/GraphicsContextSkia.cpp

Issue 13637006: Add canvas blending modes under a runtime flag (Closed) Base URL: http://src.chromium.org/blink/trunk/
Patch Set: Created 7 years, 8 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/WebCore/platform/graphics/skia/GraphicsContextSkia.cpp
===================================================================
--- Source/WebCore/platform/graphics/skia/GraphicsContextSkia.cpp (revision 147814)
+++ Source/WebCore/platform/graphics/skia/GraphicsContextSkia.cpp (working copy)
@@ -893,12 +893,11 @@
platformContext()->setAlpha(alpha);
}
-void GraphicsContext::setPlatformCompositeOperation(CompositeOperator op, BlendMode)
+void GraphicsContext::setPlatformCompositeOperation(CompositeOperator op, BlendMode blendMode)
{
if (paintingDisabled())
return;
-
- platformContext()->setXfermodeMode(WebCoreCompositeToSkiaComposite(op));
+ platformContext()->setXfermodeMode(WebCoreCompositeToSkiaComposite(op, blendMode));
}
InterpolationQuality GraphicsContext::imageInterpolationQuality() const

Powered by Google App Engine
This is Rietveld 408576698