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

Unified Diff: third_party/WebKit/Source/platform/graphics/paint/PaintArtifactToSkCanvasTest.cpp

Issue 1497873002: Make DisplayItemClient an interface (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years 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/platform/graphics/paint/PaintArtifactToSkCanvasTest.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/paint/PaintArtifactToSkCanvasTest.cpp b/third_party/WebKit/Source/platform/graphics/paint/PaintArtifactToSkCanvasTest.cpp
index a1c29e114e75ec0c2a931dd859e13d2b35326740..e4753e1aab1f153f78666b0e81f8b6f92a9050c3 100644
--- a/third_party/WebKit/Source/platform/graphics/paint/PaintArtifactToSkCanvasTest.cpp
+++ b/third_party/WebKit/Source/platform/graphics/paint/PaintArtifactToSkCanvasTest.cpp
@@ -61,14 +61,13 @@ private:
}
};
-class DummyRectClient {
+class DummyRectClient : public DisplayItemClient {
public:
DummyRectClient(const SkRect& rect, SkColor color) : m_rect(rect), m_color(color) {}
const SkRect& rect() const { return m_rect; }
SkColor color() const { return m_color; }
PassRefPtr<SkPicture> makePicture() const { return pictureWithRect(m_rect, m_color); }
- DisplayItemClient displayItemClient() const { return toDisplayItemClient(this); }
- String debugName() const { return "<dummy>"; }
+ String debugName() const final { return "<dummy>"; }
private:
SkRect m_rect;

Powered by Google App Engine
This is Rietveld 408576698