Index: third_party/WebKit/Source/core/svg/graphics/SVGImageTest.cpp |
diff --git a/third_party/WebKit/Source/core/svg/graphics/SVGImageTest.cpp b/third_party/WebKit/Source/core/svg/graphics/SVGImageTest.cpp |
index 123c7e29e82505ab7a1dda362a3726ec2423ba26..8b0d02b729f9f42c69781b76130155108559e3cd 100644 |
--- a/third_party/WebKit/Source/core/svg/graphics/SVGImageTest.cpp |
+++ b/third_party/WebKit/Source/core/svg/graphics/SVGImageTest.cpp |
@@ -8,6 +8,8 @@ |
#include "platform/SharedBuffer.h" |
#include "platform/Timer.h" |
#include "platform/geometry/FloatRect.h" |
+#include "platform/graphics/paint/PaintCanvas.h" |
+#include "platform/graphics/paint/PaintFlags.h" |
#include "platform/testing/UnitTestHelpers.h" |
#include "testing/gtest/include/gtest/gtest.h" |
#include "third_party/skia/include/core/SkCanvas.h" |
@@ -28,9 +30,10 @@ class SVGImageTest : public ::testing::Test { |
void pumpFrame() { |
Image* image = m_image.get(); |
std::unique_ptr<SkCanvas> nullCanvas = SkMakeNullCanvas(); |
- SkPaint paint; |
+ PaintCanvasPassThrough canvas(nullCanvas.get()); |
+ PaintFlags paint; |
FloatRect dummyRect(0, 0, 100, 100); |
- image->draw(nullCanvas.get(), paint, dummyRect, dummyRect, |
+ image->draw(&canvas, paint, dummyRect, dummyRect, |
DoNotRespectImageOrientation, |
Image::DoNotClampImageToSourceRect, |
ColorBehavior::transformToGlobalTarget()); |