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

Unified Diff: cc/proto/region.proto

Issue 1460503004: Add support for converting cc::Region to and from protobuf. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@add-more-conversions
Patch Set: Added a test for subtraction of overlapping rects Created 5 years, 1 month 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/cc_conversions_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/proto/region.proto
diff --git a/cc/proto/point.proto b/cc/proto/region.proto
similarity index 78%
copy from cc/proto/point.proto
copy to cc/proto/region.proto
index c0c24e5a9d16cc391deb9ae9649cb36e1b7fe58c..a4d235be3c5f6e0219910580f11a13a12fc4a503 100644
--- a/cc/proto/point.proto
+++ b/cc/proto/region.proto
@@ -4,11 +4,12 @@
syntax = "proto2";
+import "rect.proto";
+
option optimize_for = LITE_RUNTIME;
package cc.proto;
-message Point {
- optional int64 x = 1;
- optional int64 y = 2;
+message Region {
+ repeated Rect rects = 1;
}
« no previous file with comments | « cc/proto/cc_conversions_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698