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

Unified Diff: cc/layers/heads_up_display_layer.cc

Issue 1581693010: Add support for (de)serializing HeadsUpDisplayLayer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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/layers/heads_up_display_layer.cc
diff --git a/cc/layers/heads_up_display_layer.cc b/cc/layers/heads_up_display_layer.cc
index 388c2ad2473e520d29e3da6c294af0ca63389c79..158186f3c6ee98df1a399b5ffba0c23920147686 100644
--- a/cc/layers/heads_up_display_layer.cc
+++ b/cc/layers/heads_up_display_layer.cc
@@ -8,6 +8,7 @@
#include "base/trace_event/trace_event.h"
#include "cc/layers/heads_up_display_layer_impl.h"
+#include "cc/proto/layer.pb.h"
#include "cc/trees/layer_tree_host.h"
namespace cc {
@@ -61,4 +62,9 @@ scoped_ptr<LayerImpl> HeadsUpDisplayLayer::CreateLayerImpl(
return HeadsUpDisplayLayerImpl::Create(tree_impl, layer_id_);
}
+void HeadsUpDisplayLayer::SetTypeForProtoSerialization(
+ proto::LayerNode* proto) const {
+ proto->set_type(proto::LayerType::HEADS_UP_DISPLAY_LAYER);
+}
+
} // namespace cc

Powered by Google App Engine
This is Rietveld 408576698