diff options
author | nyquist <nyquist@chromium.org> | 2015-12-18 15:18:25 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-12-18 23:19:05 +0000 |
commit | be6c29c514beca0a3d18158d4fbef28b26d6fa53 (patch) | |
tree | 966ce47b80d25402516269bbcfaf1b62db05c56d /cc/input/layer_selection_bound.h | |
parent | 4da4f9927a55fe884e362cccff1dab01475f11c1 (diff) | |
download | chromium_src-be6c29c514beca0a3d18158d4fbef28b26d6fa53.zip chromium_src-be6c29c514beca0a3d18158d4fbef28b26d6fa53.tar.gz chromium_src-be6c29c514beca0a3d18158d4fbef28b26d6fa53.tar.bz2 |
Add support for (de)serializing LayerSelection.
As part of serializing cc::LayerTreeHost, we also need to
serialize the Selection<LayerSelectionBound>, which is
typedef'ed to LayerSelection.
We only support this type of the templated Selection for now,
so the code lives together with the LayerSelectionBound.
BUG=561210
CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel
Review URL: https://codereview.chromium.org/1531413002
Cr-Commit-Position: refs/heads/master@{#366202}
Diffstat (limited to 'cc/input/layer_selection_bound.h')
-rw-r--r-- | cc/input/layer_selection_bound.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/cc/input/layer_selection_bound.h b/cc/input/layer_selection_bound.h index fa17399..333d1ef 100644 --- a/cc/input/layer_selection_bound.h +++ b/cc/input/layer_selection_bound.h @@ -13,6 +13,7 @@ namespace cc { namespace proto { +class LayerSelection; class LayerSelectionBound; } // namespace proto @@ -35,6 +36,11 @@ struct CC_EXPORT LayerSelectionBound { typedef Selection<LayerSelectionBound> LayerSelection; +CC_EXPORT void LayerSelectionToProtobuf(const LayerSelection& selection, + proto::LayerSelection* proto); +CC_EXPORT void LayerSelectionFromProtobuf(LayerSelection* selection, + const proto::LayerSelection& proto); + } // namespace cc #endif // CC_INPUT_LAYER_SELECTION_BOUND_H_ |