| Index: third_party/WebKit/Source/platform/graphics/PaintGeneratedImage.cpp
|
| diff --git a/third_party/WebKit/Source/platform/graphics/PaintGeneratedImage.cpp b/third_party/WebKit/Source/platform/graphics/PaintGeneratedImage.cpp
|
| index 80212ac2cdd747eaa9224a11149d403bb28b6339..937ac120cdca44a542962b8b4e0cbf9d71244d2b 100644
|
| --- a/third_party/WebKit/Source/platform/graphics/PaintGeneratedImage.cpp
|
| +++ b/third_party/WebKit/Source/platform/graphics/PaintGeneratedImage.cpp
|
| @@ -6,12 +6,12 @@
|
|
|
| #include "platform/geometry/FloatRect.h"
|
| #include "platform/graphics/GraphicsContext.h"
|
| -#include "third_party/skia/include/core/SkPicture.h"
|
| +#include "platform/graphics/paint/PaintRecord.h"
|
|
|
| namespace blink {
|
|
|
| -void PaintGeneratedImage::draw(SkCanvas* canvas,
|
| - const SkPaint& paint,
|
| +void PaintGeneratedImage::draw(PaintCanvas* canvas,
|
| + const PaintFlags& paint,
|
| const FloatRect& destRect,
|
| const FloatRect& srcRect,
|
| RespectImageOrientationEnum,
|
| @@ -19,7 +19,7 @@ void PaintGeneratedImage::draw(SkCanvas* canvas,
|
| const ColorBehavior& colorBehavior) {
|
| // TODO(ccameron): This function should not ignore |colorBehavior|.
|
| // https://crbug.com/672306
|
| - SkAutoCanvasRestore ar(canvas, true);
|
| + PaintCanvasAutoRestore ar(canvas, true);
|
| canvas->clipRect(destRect);
|
| canvas->translate(destRect.x(), destRect.y());
|
| if (destRect.size() != srcRect.size())
|
|
|