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

Unified Diff: third_party/WebKit/Source/platform/testing/TestPaintArtifact.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/platform/testing/TestPaintArtifact.cpp
diff --git a/third_party/WebKit/Source/platform/testing/TestPaintArtifact.cpp b/third_party/WebKit/Source/platform/testing/TestPaintArtifact.cpp
index ca98c01cba6f375b24ba9080be2c74d65532d3fa..197e424113067c853408e067f5acab44e74876b4 100644
--- a/third_party/WebKit/Source/platform/testing/TestPaintArtifact.cpp
+++ b/third_party/WebKit/Source/platform/testing/TestPaintArtifact.cpp
@@ -9,10 +9,10 @@
#include "platform/graphics/paint/DrawingDisplayItem.h"
#include "platform/graphics/paint/ForeignLayerDisplayItem.h"
#include "platform/graphics/paint/PaintArtifact.h"
+#include "platform/graphics/paint/PaintFlags.h"
+#include "platform/graphics/paint/PaintRecord.h"
+#include "platform/graphics/paint/PaintRecorder.h"
#include "platform/graphics/skia/SkiaUtils.h"
-#include "third_party/skia/include/core/SkPaint.h"
-#include "third_party/skia/include/core/SkPicture.h"
-#include "third_party/skia/include/core/SkPictureRecorder.h"
#include "wtf/Assertions.h"
#include "wtf/PtrUtil.h"
#include <memory>
@@ -27,17 +27,17 @@ class TestPaintArtifact::DummyRectClient : public DisplayItemClient {
: m_rect(rect), m_color(color) {}
String debugName() const final { return "<dummy>"; }
LayoutRect visualRect() const final { return enclosingLayoutRect(m_rect); }
- sk_sp<SkPicture> makePicture() const;
+ sk_sp<PaintRecord> makePicture() const;
private:
FloatRect m_rect;
Color m_color;
};
-sk_sp<SkPicture> TestPaintArtifact::DummyRectClient::makePicture() const {
- SkPictureRecorder recorder;
- SkCanvas* canvas = recorder.beginRecording(m_rect);
- SkPaint paint;
+sk_sp<PaintRecord> TestPaintArtifact::DummyRectClient::makePicture() const {
+ PaintRecorder recorder;
+ PaintCanvas* canvas = recorder.beginRecording(m_rect);
+ PaintFlags paint;
paint.setColor(m_color.rgb());
canvas->drawRect(m_rect, paint);
return recorder.finishRecordingAsPicture();
« no previous file with comments | « third_party/WebKit/Source/platform/testing/PictureMatchers.cpp ('k') | third_party/WebKit/Source/web/LinkHighlightImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698