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

Unified Diff: cc/playback/display_item_list.h

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.cc ('k') | cc/playback/display_item_list.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/playback/display_item_list.h
diff --git a/cc/playback/display_item_list.h b/cc/playback/display_item_list.h
index 02f2c7ec0bb3d2efd2d6bf43aa75afe6684c602b..710284e4c579c06173390638cf643dafada9c1ea 100644
--- a/cc/playback/display_item_list.h
+++ b/cc/playback/display_item_list.h
@@ -26,9 +26,9 @@ class SkCanvas;
class SkPictureRecorder;
namespace cc {
+class ClientPictureCache;
class DisplayItem;
class DrawingDisplayItem;
-class ImageSerializationProcessor;
namespace proto {
class DisplayItemList;
@@ -51,13 +51,11 @@ class CC_EXPORT DisplayItemList
// (crbug.com/548434).
static scoped_refptr<DisplayItemList> CreateFromProto(
const proto::DisplayItemList& proto,
- ImageSerializationProcessor* image_serialization_processor);
+ ClientPictureCache* client_picture_cache,
+ std::vector<uint32_t>* used_engine_picture_ids);
// Creates a Protobuf representing the state of this DisplayItemList.
- // TODO(dtrainor): Don't resend DisplayItems that were already serialized
- // (crbug.com/548434).
- void ToProtobuf(proto::DisplayItemList* proto,
- ImageSerializationProcessor* image_serialization_processor);
+ void ToProtobuf(proto::DisplayItemList* proto);
// TODO(trchen): Deprecated. Apply clip and scale on the canvas instead.
void Raster(SkCanvas* canvas,
@@ -112,6 +110,14 @@ class CC_EXPORT DisplayItemList
gfx::Rect VisualRectForTesting(int index) { return visual_rects_[index]; }
+ ContiguousContainer<DisplayItem>::const_iterator begin() const {
+ return items_.begin();
+ }
+
+ ContiguousContainer<DisplayItem>::const_iterator end() const {
+ return items_.end();
+ }
+
private:
DisplayItemList(gfx::Rect layer_rect,
const DisplayItemListSettings& display_list_settings,
« no previous file with comments | « cc/playback/display_item.cc ('k') | cc/playback/display_item_list.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698