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

Unified Diff: cc/playback/display_item_proto_factory.h

Issue 1407793002: Add protobuf serialization to DisplayItemList (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@blimp_display2
Patch Set: Rebased Created 5 years, 2 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
Index: cc/playback/display_item_proto_factory.h
diff --git a/cc/playback/display_item_proto_factory.h b/cc/playback/display_item_proto_factory.h
new file mode 100644
index 0000000000000000000000000000000000000000..43325df927c606f5c1d438a6bfb787b0ea505c30
--- /dev/null
+++ b/cc/playback/display_item_proto_factory.h
@@ -0,0 +1,33 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CC_PLAYBACK_DISPLAY_ITEM_PROTO_FACTORY_H_
+#define CC_PLAYBACK_DISPLAY_ITEM_PROTO_FACTORY_H_
+
+#include "base/macros.h"
+#include "base/memory/ref_counted.h"
+#include "cc/playback/display_item.h"
+#include "cc/playback/display_item_list.h"
+
+namespace cc {
+
+namespace proto {
+class DisplayItem;
+}
+
+class DisplayItemProtoFactory {
vmpstr 2015/10/26 17:46:17 I wonder if it's possible to make this patch more
+ public:
+ static DisplayItem* AllocateAndConstruct(scoped_refptr<DisplayItemList> list,
+ const proto::DisplayItem& proto);
+
+ private:
+ DisplayItemProtoFactory() {}
+ virtual ~DisplayItemProtoFactory() {}
+
+ DISALLOW_COPY_AND_ASSIGN(DisplayItemProtoFactory);
+};
+
+} // namespace cc
+
+#endif // CC_PLAYBACK_DISPLAY_ITEM_PROTO_FACTORY_H_

Powered by Google App Engine
This is Rietveld 408576698