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

Unified Diff: cc/input/layer_selection_bound.h

Issue 1531413002: Add support for (de)serializing LayerSelection. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@serialize-layer-selection-bound
Patch Set: 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 | « no previous file | cc/input/layer_selection_bound.cc » ('j') | cc/input/layer_selection_bound_unittest.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/input/layer_selection_bound.h
diff --git a/cc/input/layer_selection_bound.h b/cc/input/layer_selection_bound.h
index aba388541281ed5f89ee3e75b7554c031752de93..024a4f46b2e0e55514daff6a22c5b0576172eaa3 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
@@ -37,6 +38,11 @@ CC_EXPORT bool operator!=(const LayerSelectionBound& lhs,
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_
« no previous file with comments | « no previous file | cc/input/layer_selection_bound.cc » ('j') | cc/input/layer_selection_bound_unittest.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698