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

Unified Diff: cc/playback/drawing_display_item.cc

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
« no previous file with comments | « cc/playback/drawing_display_item.h ('k') | cc/test/fake_content_layer_client.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/playback/drawing_display_item.cc
diff --git a/cc/playback/drawing_display_item.cc b/cc/playback/drawing_display_item.cc
index d5683105c5fa6422b30ef137eaeebff7c2b4ad01..cec2980df4276cc9f3336da071aba46ac273abf2 100644
--- a/cc/playback/drawing_display_item.cc
+++ b/cc/playback/drawing_display_item.cc
@@ -14,10 +14,6 @@
#include "base/values.h"
#include "cc/debug/picture_debug_util.h"
#include "third_party/skia/include/core/SkCanvas.h"
-#include "third_party/skia/include/core/SkData.h"
-#include "third_party/skia/include/core/SkMatrix.h"
-#include "third_party/skia/include/core/SkPicture.h"
-#include "third_party/skia/include/core/SkStream.h"
#include "third_party/skia/include/utils/SkPictureUtils.h"
#include "ui/gfx/skia_util.h"
@@ -25,7 +21,7 @@ namespace cc {
DrawingDisplayItem::DrawingDisplayItem() : DisplayItem(DRAWING) {}
-DrawingDisplayItem::DrawingDisplayItem(sk_sp<const SkPicture> picture)
+DrawingDisplayItem::DrawingDisplayItem(sk_sp<const PaintRecord> picture)
: DisplayItem(DRAWING) {
SetNew(std::move(picture));
}
@@ -38,7 +34,7 @@ DrawingDisplayItem::DrawingDisplayItem(const DrawingDisplayItem& item)
DrawingDisplayItem::~DrawingDisplayItem() {
}
-void DrawingDisplayItem::SetNew(sk_sp<const SkPicture> picture) {
+void DrawingDisplayItem::SetNew(sk_sp<const PaintRecord> picture) {
picture_ = std::move(picture);
}
@@ -87,7 +83,7 @@ void DrawingDisplayItem::CloneTo(DrawingDisplayItem* item) const {
}
size_t DrawingDisplayItem::ExternalMemoryUsage() const {
- return SkPictureUtils::ApproximateBytesUsed(picture_.get());
+ return SkPictureUtils::ApproximateBytesUsed(ToSkPicture(picture_.get()));
}
DISABLE_CFI_PERF
« no previous file with comments | « cc/playback/drawing_display_item.h ('k') | cc/test/fake_content_layer_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698