diff options
author | nyquist <nyquist@chromium.org> | 2015-12-18 12:09:06 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-12-18 20:10:14 +0000 |
commit | 9de8ad81c88e8f82afb072204852d4cd61fa4814 (patch) | |
tree | 7c25d17d02a5ae6ef8491ae22a4153d49ee966f3 /cc/proto | |
parent | 6dd347458f4bdcc934ac91092eacce2dfa3ee097 (diff) | |
download | chromium_src-9de8ad81c88e8f82afb072204852d4cd61fa4814.zip chromium_src-9de8ad81c88e8f82afb072204852d4cd61fa4814.tar.gz chromium_src-9de8ad81c88e8f82afb072204852d4cd61fa4814.tar.bz2 |
Add support for (de)serializing LayerSelectionBound.
As part of serializing cc::LayerTreeHost, we also need to
serialize the cc::LayerTreeBounds.
BUG=561210
CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel
Review URL: https://codereview.chromium.org/1532973002
Cr-Commit-Position: refs/heads/master@{#366155}
Diffstat (limited to 'cc/proto')
-rw-r--r-- | cc/proto/BUILD.gn | 1 | ||||
-rw-r--r-- | cc/proto/layer_selection_bound.proto | 26 |
2 files changed, 27 insertions, 0 deletions
diff --git a/cc/proto/BUILD.gn b/cc/proto/BUILD.gn index 6ffdc7b..2548e59 100644 --- a/cc/proto/BUILD.gn +++ b/cc/proto/BUILD.gn @@ -34,6 +34,7 @@ proto_library("proto_internal") { "display_list_recording_source.proto", "layer.proto", "layer_position_constraint.proto", + "layer_selection_bound.proto", "layer_tree_debug_state.proto", "layer_tree_settings.proto", "managed_memory_policy.proto", diff --git a/cc/proto/layer_selection_bound.proto b/cc/proto/layer_selection_bound.proto new file mode 100644 index 0000000..397a1f8 --- /dev/null +++ b/cc/proto/layer_selection_bound.proto @@ -0,0 +1,26 @@ +// 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. + +syntax = "proto2"; + +import "point.proto"; + +option optimize_for = LITE_RUNTIME; + +package cc.proto; + +enum SelectionBoundType { + UNKNOWN = 0; + LEFT = 1; + RIGHT = 2; + CENTER = 3; + EMPTY = 4; +} + +message LayerSelectionBound { + optional SelectionBoundType type = 1; + optional Point edge_top = 2; + optional Point edge_bottom = 3; + optional int32 layer_id = 4; +} |