From 9de8ad81c88e8f82afb072204852d4cd61fa4814 Mon Sep 17 00:00:00 2001 From: nyquist Date: Fri, 18 Dec 2015 12:09:06 -0800 Subject: 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} --- cc/proto/BUILD.gn | 1 + cc/proto/layer_selection_bound.proto | 26 ++++++++++++++++++++++++++ 2 files changed, 27 insertions(+) create mode 100644 cc/proto/layer_selection_bound.proto (limited to 'cc/proto') 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; +} -- cgit v1.1