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

Unified Diff: cc/playback/display_item_list.cc

Issue 1982893002: [blimp] Add SkPicture caching support. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed comments from vmpstr, including adding //cc/blimp Created 4 years, 6 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/display_item_list.h ('k') | cc/playback/display_item_list_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/playback/display_item_list.cc
diff --git a/cc/playback/display_item_list.cc b/cc/playback/display_item_list.cc
index 511e5bbf149e3ee7d5b75145e7691a997938abe7..1753abd821b3afd44cae26561348c6ead739934b 100644
--- a/cc/playback/display_item_list.cc
+++ b/cc/playback/display_item_list.cc
@@ -29,7 +29,6 @@
#include "ui/gfx/skia_util.h"
namespace cc {
-class ImageSerializationProcessor;
namespace {
@@ -58,7 +57,8 @@ scoped_refptr<DisplayItemList> DisplayItemList::Create(
scoped_refptr<DisplayItemList> DisplayItemList::CreateFromProto(
const proto::DisplayItemList& proto,
- ImageSerializationProcessor* image_serialization_processor) {
+ ClientPictureCache* client_picture_cache,
+ std::vector<uint32_t>* used_engine_picture_ids) {
gfx::Rect layer_rect = ProtoToRect(proto.layer_rect());
scoped_refptr<DisplayItemList> list =
DisplayItemList::Create(ProtoToRect(proto.layer_rect()),
@@ -67,7 +67,8 @@ scoped_refptr<DisplayItemList> DisplayItemList::CreateFromProto(
for (int i = 0; i < proto.items_size(); i++) {
const proto::DisplayItem& item_proto = proto.items(i);
DisplayItemProtoFactory::AllocateAndConstruct(
- layer_rect, list.get(), item_proto, image_serialization_processor);
+ layer_rect, list.get(), item_proto, client_picture_cache,
+ used_engine_picture_ids);
}
list->Finalize();
@@ -100,9 +101,7 @@ DisplayItemList::DisplayItemList(gfx::Rect layer_rect,
DisplayItemList::~DisplayItemList() {
}
-void DisplayItemList::ToProtobuf(
- proto::DisplayItemList* proto,
- ImageSerializationProcessor* image_serialization_processor) {
+void DisplayItemList::ToProtobuf(proto::DisplayItemList* proto) {
// The flattened SkPicture approach is going away, and the proto
// doesn't currently support serializing that flattened picture.
DCHECK(retain_individual_display_items_);
@@ -112,7 +111,7 @@ void DisplayItemList::ToProtobuf(
DCHECK_EQ(0, proto->items_size());
for (const auto& item : items_)
- item.ToProtobuf(proto->add_items(), image_serialization_processor);
+ item.ToProtobuf(proto->add_items());
}
void DisplayItemList::Raster(SkCanvas* canvas,
« no previous file with comments | « cc/playback/display_item_list.h ('k') | cc/playback/display_item_list_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698