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

Unified Diff: cc/proto/layer_selection_bound.proto

Issue 1532973002: Add support for (de)serializing LayerSelectionBound. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Made operator members 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 | « cc/proto/BUILD.gn ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/proto/layer_selection_bound.proto
diff --git a/cc/proto/rect.proto b/cc/proto/layer_selection_bound.proto
similarity index 50%
copy from cc/proto/rect.proto
copy to cc/proto/layer_selection_bound.proto
index a0194b185d8954112eef235f63a9c52ea1050b5b..397a1f82bef0758a29157456d173fd7e0a089650 100644
--- a/cc/proto/rect.proto
+++ b/cc/proto/layer_selection_bound.proto
@@ -5,13 +5,22 @@
syntax = "proto2";
import "point.proto";
-import "size.proto";
option optimize_for = LITE_RUNTIME;
package cc.proto;
-message Rect {
- optional cc.proto.Point origin = 1;
- optional cc.proto.Size size = 2;
+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;
}
« no previous file with comments | « cc/proto/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698