diff options
author | nyquist <nyquist@chromium.org> | 2016-02-11 16:15:04 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-02-12 00:16:29 +0000 |
commit | 16febb404edc59fb8dbb13a13c68ccecfb5a0bf1 (patch) | |
tree | 882135af7b509fdc7ccebb66193039c421871711 /cc/playback/display_item_proto_factory.cc | |
parent | 23258d3c881e5c053f7bb687a13f860ea55364ef (diff) | |
download | chromium_src-16febb404edc59fb8dbb13a13c68ccecfb5a0bf1.zip chromium_src-16febb404edc59fb8dbb13a13c68ccecfb5a0bf1.tar.gz chromium_src-16febb404edc59fb8dbb13a13c68ccecfb5a0bf1.tar.bz2 |
Add framework for (de)serialization of images in SkPicture
This CL adds Plumbing for picture serialization and deserialization
from //blimp to DrawingDisplayItem.
BUG=577262
CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel
Review URL: https://codereview.chromium.org/1675763002
Cr-Commit-Position: refs/heads/master@{#375053}
Diffstat (limited to 'cc/playback/display_item_proto_factory.cc')
-rw-r--r-- | cc/playback/display_item_proto_factory.cc | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/cc/playback/display_item_proto_factory.cc b/cc/playback/display_item_proto_factory.cc index 88d5066..0dedda3 100644 --- a/cc/playback/display_item_proto_factory.cc +++ b/cc/playback/display_item_proto_factory.cc @@ -15,12 +15,14 @@ #include "ui/gfx/geometry/rect.h" namespace cc { +class ImageSerializationProcessor; // static void DisplayItemProtoFactory::AllocateAndConstruct( const gfx::Rect& visual_rect, DisplayItemList* list, - const proto::DisplayItem& proto) { + const proto::DisplayItem& proto, + ImageSerializationProcessor* image_serialization_processor) { switch (proto.type()) { case proto::DisplayItem::Type_Clip: list->CreateAndAppendItem<ClipDisplayItem>(visual_rect, proto); @@ -41,7 +43,8 @@ void DisplayItemProtoFactory::AllocateAndConstruct( list->CreateAndAppendItem<EndCompositingDisplayItem>(visual_rect, proto); return; case proto::DisplayItem::Type_Drawing: - list->CreateAndAppendItem<DrawingDisplayItem>(visual_rect, proto); + list->CreateAndAppendItem<DrawingDisplayItem>( + visual_rect, proto, image_serialization_processor); return; case proto::DisplayItem::Type_Filter: list->CreateAndAppendItem<FilterDisplayItem>(visual_rect, proto); |