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

Unified Diff: cc/playback/display_list_recording_source.h

Issue 1512823002: Serialize DisplayListRecordingSource to protos. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 5 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
« no previous file with comments | « cc/playback/display_item_list_unittest.cc ('k') | cc/playback/display_list_recording_source.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/playback/display_list_recording_source.h
diff --git a/cc/playback/display_list_recording_source.h b/cc/playback/display_list_recording_source.h
index 603924f070c45a97ccbebc6a37b0ef9fd699aeb0..f8d469eebfe9a51568db393249c941e749360c42 100644
--- a/cc/playback/display_list_recording_source.h
+++ b/cc/playback/display_list_recording_source.h
@@ -13,6 +13,11 @@
#include "ui/gfx/geometry/size.h"
namespace cc {
+
+namespace proto {
+class DisplayListRecordingSource;
+}
+
class ContentLayerClient;
class DisplayItemList;
class DisplayListRasterSource;
@@ -34,6 +39,9 @@ class CC_EXPORT DisplayListRecordingSource {
DisplayListRecordingSource();
virtual ~DisplayListRecordingSource();
+ void ToProtobuf(proto::DisplayListRecordingSource* proto) const;
+ void FromProtobuf(const proto::DisplayListRecordingSource& proto);
+
bool UpdateAndExpandInvalidation(ContentLayerClient* painter,
Region* invalidation,
const gfx::Size& layer_size,
@@ -74,6 +82,7 @@ class CC_EXPORT DisplayListRecordingSource {
void UpdateInvalidationForNewViewport(const gfx::Rect& old_recorded_viewport,
const gfx::Rect& new_recorded_viewport,
Region* invalidation);
+ void FinishDisplayItemListUpdate();
friend class DisplayListRasterSource;
« no previous file with comments | « cc/playback/display_item_list_unittest.cc ('k') | cc/playback/display_list_recording_source.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698