| Index: third_party/WebKit/Source/platform/graphics/GraphicsContext.cpp
|
| diff --git a/third_party/WebKit/Source/platform/graphics/GraphicsContext.cpp b/third_party/WebKit/Source/platform/graphics/GraphicsContext.cpp
|
| index 786ad156bc024dce69ef4ea793d8eecd4401bfbe..89ccca83f4710c2785f4ec08b27015be0c1ae5f4 100644
|
| --- a/third_party/WebKit/Source/platform/graphics/GraphicsContext.cpp
|
| +++ b/third_party/WebKit/Source/platform/graphics/GraphicsContext.cpp
|
| @@ -811,7 +811,7 @@ void GraphicsContext::drawImage(
|
| imagePaint.setFilterQuality(computeFilterQuality(image, dest, src));
|
| imagePaint.setAntiAlias(shouldAntialias());
|
| image->draw(m_canvas, imagePaint, dest, src, shouldRespectImageOrientation,
|
| - Image::ClampImageToSourceRect);
|
| + Image::ClampImageToSourceRect, m_colorBehavior);
|
| m_paintController.setImagePainted();
|
| }
|
|
|
| @@ -847,7 +847,7 @@ void GraphicsContext::drawImageRRect(
|
| if (useShader) {
|
| const SkMatrix localMatrix = SkMatrix::MakeRectToRect(
|
| visibleSrc, dest.rect(), SkMatrix::kFill_ScaleToFit);
|
| - useShader = image->applyShader(imagePaint, localMatrix);
|
| + useShader = image->applyShader(imagePaint, localMatrix, m_colorBehavior);
|
| }
|
|
|
| if (useShader) {
|
| @@ -858,7 +858,7 @@ void GraphicsContext::drawImageRRect(
|
| SkAutoCanvasRestore autoRestore(m_canvas, true);
|
| m_canvas->clipRRect(dest, imagePaint.isAntiAlias());
|
| image->draw(m_canvas, imagePaint, dest.rect(), srcRect, respectOrientation,
|
| - Image::ClampImageToSourceRect);
|
| + Image::ClampImageToSourceRect, m_colorBehavior);
|
| }
|
|
|
| m_paintController.setImagePainted();
|
|
|