| Index: third_party/WebKit/Source/platform/graphics/ImageBuffer.cpp
|
| diff --git a/third_party/WebKit/Source/platform/graphics/ImageBuffer.cpp b/third_party/WebKit/Source/platform/graphics/ImageBuffer.cpp
|
| index 1c419b7d49ac7a13da099bf898a76aa522ff9605..11553050f9b67c72431654ebda2edb886e623485 100644
|
| --- a/third_party/WebKit/Source/platform/graphics/ImageBuffer.cpp
|
| +++ b/third_party/WebKit/Source/platform/graphics/ImageBuffer.cpp
|
| @@ -50,6 +50,7 @@
|
| #include "public/platform/WebExternalTextureMailbox.h"
|
| #include "public/platform/WebGraphicsContext3D.h"
|
| #include "public/platform/WebGraphicsContext3DProvider.h"
|
| +#include "third_party/skia/include/core/SkColorFilter.h"
|
| #include "third_party/skia/include/core/SkPicture.h"
|
| #include "wtf/ArrayBufferContents.h"
|
| #include "wtf/MathExtras.h"
|
| @@ -258,13 +259,13 @@ bool ImageBuffer::copyRenderingResultsFromDrawingBuffer(DrawingBuffer* drawingBu
|
| GL_UNSIGNED_BYTE, 0, true, false, sourceBuffer);
|
| }
|
|
|
| -void ImageBuffer::draw(GraphicsContext& context, const FloatRect& destRect, const FloatRect* srcPtr, SkXfermode::Mode op)
|
| +void ImageBuffer::draw(GraphicsContext& context, const FloatRect& destRect, const FloatRect* srcPtr, SkXfermode::Mode op, SkColorFilter* transform)
|
| {
|
| if (!isSurfaceValid())
|
| return;
|
|
|
| FloatRect srcRect = srcPtr ? *srcPtr : FloatRect(FloatPoint(), FloatSize(size()));
|
| - m_surface->draw(context, destRect, srcRect, op);
|
| + m_surface->draw(context, destRect, srcRect, op, transform);
|
| }
|
|
|
| void ImageBuffer::flush()
|
|
|