summaryrefslogtreecommitdiffstats
path: root/cc/proto/rectf.proto
diff options
context:
space:
mode:
authordtrainor <dtrainor@chromium.org>2015-10-19 13:14:44 -0700
committerCommit bot <commit-bot@chromium.org>2015-10-19 20:15:26 +0000
commitddb0b49f3f9fa19f64cc3bacd1bdd3070571b383 (patch)
tree6106bc48e4535154f3d653243279e3d6ec649f7f /cc/proto/rectf.proto
parent26507d0e00b7beb248d751512cc045c9bee3e359 (diff)
downloadchromium_src-ddb0b49f3f9fa19f64cc3bacd1bdd3070571b383.zip
chromium_src-ddb0b49f3f9fa19f64cc3bacd1bdd3070571b383.tar.gz
chromium_src-ddb0b49f3f9fa19f64cc3bacd1bdd3070571b383.tar.bz2
Add Protobuf support in cc for gfx objects
Add protobuf serialization to the following: - gfx::Point - gfx::PointF - gfx::Rect - gfx::RectF - gfx::Size - gfx::SizeF - gfx::Transform Add a helper class to handle serialization and deserialization. Add unit tests as well. BUG=541321 CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel Review URL: https://codereview.chromium.org/1394353002 Cr-Commit-Position: refs/heads/master@{#354846}
Diffstat (limited to 'cc/proto/rectf.proto')
-rw-r--r--cc/proto/rectf.proto17
1 files changed, 17 insertions, 0 deletions
diff --git a/cc/proto/rectf.proto b/cc/proto/rectf.proto
new file mode 100644
index 0000000..5bd56f1
--- /dev/null
+++ b/cc/proto/rectf.proto
@@ -0,0 +1,17 @@
+// 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 "pointf.proto";
+import "sizef.proto";
+
+option optimize_for = LITE_RUNTIME;
+
+package cc.proto;
+
+message RectF {
+ optional cc.proto.PointF origin = 1;
+ optional cc.proto.SizeF size = 2;
+}