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

Unified Diff: Source/core/platform/graphics/skia/ImageSkia.cpp

Issue 14208013: Addding support for -webkit-background-blend-mode to blink. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 7 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/core/platform/graphics/skia/ImageSkia.cpp
diff --git a/Source/core/platform/graphics/skia/ImageSkia.cpp b/Source/core/platform/graphics/skia/ImageSkia.cpp
index 88b804ba427871ecfe68db0fe0a5894bf28ca472..c3cd3cc9632490dc72d4722bfb4e0019318462c6 100644
--- a/Source/core/platform/graphics/skia/ImageSkia.cpp
+++ b/Source/core/platform/graphics/skia/ImageSkia.cpp
@@ -456,7 +456,7 @@ void Image::drawPattern(GraphicsContext* context,
ColorSpace styleColorSpace,
CompositeOperator compositeOp,
const FloatRect& destRect,
- BlendMode)
+ BlendMode blendMode)
{
TRACE_EVENT0("skia", "Image::drawPattern");
RefPtr<NativeImageSkia> bitmap = nativeImageForCurrentFrame();
@@ -536,7 +536,8 @@ void Image::drawPattern(GraphicsContext* context,
SkPaint paint;
paint.setShader(shader)->unref();
- paint.setXfermodeMode(WebCoreCompositeToSkiaComposite(compositeOp));
+ paint.setXfermodeMode(WebCoreCompositeToSkiaComposite(compositeOp, blendMode));
+
paint.setFilterBitmap(resampling == RESAMPLE_LINEAR);
context->drawRect(destRect, paint);

Powered by Google App Engine
This is Rietveld 408576698