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

Unified Diff: third_party/WebKit/Source/platform/testing/TestPaintArtifact.cpp

Issue 2523673004: [NOT FOR COMMIT] Fully replace SkCanvas uses.
Patch Set: Support Android build. Created 4 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/testing/TestPaintArtifact.cpp
diff --git a/third_party/WebKit/Source/platform/testing/TestPaintArtifact.cpp b/third_party/WebKit/Source/platform/testing/TestPaintArtifact.cpp
index 5a26c8ca832b6b2b06483a8b0a6496391caca6b7..4a2c7d8cdb3b2178d9d493b64a353a07c8c7203d 100644
--- a/third_party/WebKit/Source/platform/testing/TestPaintArtifact.cpp
+++ b/third_party/WebKit/Source/platform/testing/TestPaintArtifact.cpp
@@ -11,8 +11,9 @@
#include "platform/graphics/paint/PaintArtifact.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 "skia/ext/cdl_paint.h"
+#include "skia/ext/cdl_picture.h"
+#include "skia/ext/cdl_picture_recorder.h"
#include "wtf/Assertions.h"
#include "wtf/PtrUtil.h"
#include <memory>
@@ -27,17 +28,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<CdlPicture> 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<CdlPicture> TestPaintArtifact::DummyRectClient::makePicture() const {
+ CdlPictureRecorder recorder;
+ CdlCanvas* canvas = recorder.beginRecording(m_rect);
+ CdlPaint 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