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

Unified Diff: cc/layers/layer_proto_converter.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/layer_proto_converter.cc
diff --git a/cc/layers/layer_proto_converter.cc b/cc/layers/layer_proto_converter.cc
index 086ad99d1213537480e703b93f9edd762b9eb689..399985cbd65da21e625536a057f6b201d8bd33dc 100644
--- a/cc/layers/layer_proto_converter.cc
+++ b/cc/layers/layer_proto_converter.cc
@@ -6,6 +6,7 @@
#include "base/stl_util.h"
#include "cc/layers/empty_content_layer_client.h"
+#include "cc/layers/heads_up_display_layer.h"
#include "cc/layers/layer.h"
#include "cc/layers/layer_settings.h"
#include "cc/layers/picture_layer.h"
@@ -116,6 +117,8 @@ scoped_refptr<Layer> LayerProtoConverter::FindOrAllocateAndConstruct(
case proto::PICTURE_LAYER:
return PictureLayer::Create(LayerSettings(),
EmptyContentLayerClient::GetInstance());
+ case proto::HEADS_UP_DISPLAY_LAYER:
+ return HeadsUpDisplayLayer::Create(LayerSettings());
}
// TODO(nyquist): Add the rest of the necessary LayerTypes. This function
// should not return null.

Powered by Google App Engine
This is Rietveld 408576698