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

Unified Diff: third_party/WebKit/Source/core/svg/graphics/SVGImageTest.cpp

Issue 2640983002: Rename paint data structures (Closed)
Patch Set: DrawingDisplayItem Created 3 years, 11 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: 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());

Powered by Google App Engine
This is Rietveld 408576698