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

Unified Diff: third_party/WebKit/Source/platform/graphics/LoggingCanvas.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/graphics/LoggingCanvas.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/LoggingCanvas.cpp b/third_party/WebKit/Source/platform/graphics/LoggingCanvas.cpp
index 51618e1e03d635fed500e8f6505a3ef6edf1efe9..632641d3d8070d3840badd44afe13e67c79c62a0 100644
--- a/third_party/WebKit/Source/platform/graphics/LoggingCanvas.cpp
+++ b/third_party/WebKit/Source/platform/graphics/LoggingCanvas.cpp
@@ -39,7 +39,7 @@
#include "third_party/skia/include/core/SkImageInfo.h"
#include "third_party/skia/include/core/SkPaint.h"
#include "third_party/skia/include/core/SkPath.h"
-#include "third_party/skia/include/core/SkPicture.h"
+#include "skia/ext/cdl_picture.h"
#include "third_party/skia/include/core/SkRRect.h"
#include "third_party/skia/include/core/SkRect.h"
#include "wtf/HexNumber.h"
@@ -923,7 +923,7 @@ std::unique_ptr<JSONArray> LoggingCanvas::log() {
}
#ifndef NDEBUG
-String pictureAsDebugString(const SkPicture* picture) {
+String pictureAsDebugString(const CdlPicture* picture) {
const SkIRect bounds = picture->cullRect().roundOut();
LoggingCanvas canvas(bounds.width(), bounds.height());
picture->playback(&canvas);
@@ -933,7 +933,7 @@ String pictureAsDebugString(const SkPicture* picture) {
return pictureAsJSON->toPrettyJSONString();
}
-void showSkPicture(const SkPicture* picture) {
+void showSkPicture(const CdlPicture* picture) {
WTFLogAlways("%s\n", pictureAsDebugString(picture).utf8().data());
}
#endif

Powered by Google App Engine
This is Rietveld 408576698