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

Issue 1394353002: Add Protobuf support in cc for gfx objects (Closed)

Created:
5 years, 2 months ago by David Trainor- moved to gerrit
Modified:
5 years, 2 months ago
Reviewers:
danakj, vmpstr
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

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 Committed: https://crrev.com/ddb0b49f3f9fa19f64cc3bacd1bdd3070571b383 Cr-Commit-Position: refs/heads/master@{#354846}

Patch Set 1 #

Patch Set 2 : Updated build rules, made the proto C++ headers exportable. #

Patch Set 3 : #

Patch Set 4 : Fixed build for other targets #

Total comments: 21

Patch Set 5 : Made int32 int64 in protos, added unit test for int limits #

Patch Set 6 : Addressed comments. #

Total comments: 4

Patch Set 7 : Fix proto target name #

Total comments: 4

Patch Set 8 : Add comments for visibility in gn #

Patch Set 9 : Wait... moar comments! #

Patch Set 10 : Move deps to public_deps #

Unified diffs Side-by-side diffs Delta from patch set Stats (+493 lines, -50 lines) Patch
M cc/BUILD.gn View 1 2 3 4 5 6 5 chunks +8 lines, -1 line 0 comments Download
M cc/cc.gyp View 1 2 3 4 5 6 3 chunks +30 lines, -0 lines 0 comments Download
M cc/cc_tests.gyp View 1 2 3 2 chunks +3 lines, -0 lines 0 comments Download
A cc/proto/BUILD.gn View 1 2 3 4 5 6 7 8 9 1 chunk +53 lines, -0 lines 0 comments Download
A cc/proto/cc_proto_export.h View 1 2 3 1 chunk +29 lines, -0 lines 0 comments Download
A cc/proto/gfx_conversions.h View 1 2 3 4 5 1 chunk +56 lines, -0 lines 0 comments Download
A cc/proto/gfx_conversions.cc View 1 2 3 4 5 1 chunk +104 lines, -0 lines 0 comments Download
A cc/proto/gfx_conversions_unittest.cc View 1 2 3 4 5 1 chunk +177 lines, -0 lines 0 comments Download
A + cc/proto/point.proto View 1 2 3 4 1 chunk +4 lines, -7 lines 0 comments Download
A + cc/proto/pointf.proto View 1 2 1 chunk +4 lines, -7 lines 0 comments Download
A + cc/proto/rect.proto View 1 2 1 chunk +7 lines, -7 lines 0 comments Download
A + cc/proto/rectf.proto View 1 2 1 chunk +7 lines, -7 lines 0 comments Download
A + cc/proto/size.proto View 1 2 3 4 1 chunk +4 lines, -7 lines 0 comments Download
A + cc/proto/sizef.proto View 1 2 1 chunk +4 lines, -7 lines 0 comments Download
A + cc/proto/transform.proto View 1 2 1 chunk +3 lines, -7 lines 0 comments Download

Messages

Total messages: 25 (5 generated)
David Trainor- moved to gerrit
Running some try jobs to make sure the gyp build works (been using GN locally ...
5 years, 2 months ago (2015-10-08 20:51:46 UTC) #2
David Trainor- moved to gerrit
Had to move this to cc/proto :(. It looks like Chromium has no support for ...
5 years, 2 months ago (2015-10-12 17:05:53 UTC) #3
danakj
On 2015/10/12 17:05:53, David Trainor wrote: > Had to move this to cc/proto :(. It ...
5 years, 2 months ago (2015-10-14 20:10:00 UTC) #5
David Trainor- moved to gerrit
On 2015/10/14 20:10:00, danakj wrote: > On 2015/10/12 17:05:53, David Trainor wrote: > > Had ...
5 years, 2 months ago (2015-10-14 21:49:11 UTC) #6
danakj
On 2015/10/14 21:49:11, David Trainor wrote: > On 2015/10/14 20:10:00, danakj wrote: > > On ...
5 years, 2 months ago (2015-10-14 22:41:13 UTC) #7
danakj
https://codereview.chromium.org/1394353002/diff/60001/cc/proto/point.proto File cc/proto/point.proto (right): https://codereview.chromium.org/1394353002/diff/60001/cc/proto/point.proto#newcode12 cc/proto/point.proto:12: optional int32 x = 1; Is it not problematic ...
5 years, 2 months ago (2015-10-14 22:42:38 UTC) #8
David Trainor- moved to gerrit
https://codereview.chromium.org/1394353002/diff/60001/cc/proto/point.proto File cc/proto/point.proto (right): https://codereview.chromium.org/1394353002/diff/60001/cc/proto/point.proto#newcode12 cc/proto/point.proto:12: optional int32 x = 1; On 2015/10/14 22:42:37, danakj ...
5 years, 2 months ago (2015-10-14 22:57:51 UTC) #9
danakj
Repeating question to be sure I got this right: So it is because there will ...
5 years, 2 months ago (2015-10-14 23:10:11 UTC) #10
David Trainor- moved to gerrit
https://codereview.chromium.org/1394353002/diff/60001/cc/BUILD.gn File cc/BUILD.gn (right): https://codereview.chromium.org/1394353002/diff/60001/cc/BUILD.gn#newcode526 cc/BUILD.gn:526: "//third_party/protobuf:protobuf_lite", On 2015/10/14 23:10:10, danakj wrote: > how come ...
5 years, 2 months ago (2015-10-15 22:18:02 UTC) #11
David Trainor- moved to gerrit
On 2015/10/15 22:18:02, David Trainor wrote: > https://codereview.chromium.org/1394353002/diff/60001/cc/BUILD.gn > File cc/BUILD.gn (right): > > https://codereview.chromium.org/1394353002/diff/60001/cc/BUILD.gn#newcode526 ...
5 years, 2 months ago (2015-10-15 22:18:59 UTC) #12
danakj
https://codereview.chromium.org/1394353002/diff/60001/cc/proto/gfx_conversions.h File cc/proto/gfx_conversions.h (right): https://codereview.chromium.org/1394353002/diff/60001/cc/proto/gfx_conversions.h#newcode33 cc/proto/gfx_conversions.h:33: CC_EXPORT void ProtoToPoint(const proto::Point& proto, gfx::Point* point); On 2015/10/15 ...
5 years, 2 months ago (2015-10-15 22:22:33 UTC) #13
David Trainor- moved to gerrit
On 2015/10/15 22:22:33, danakj wrote: > https://codereview.chromium.org/1394353002/diff/60001/cc/proto/gfx_conversions.h > File cc/proto/gfx_conversions.h (right): > > https://codereview.chromium.org/1394353002/diff/60001/cc/proto/gfx_conversions.h#newcode33 > ...
5 years, 2 months ago (2015-10-16 01:19:04 UTC) #14
danakj
OK LG overall. Thanks. Some sticky nitty gritty questions left. :) https://chromiumcodereview.appspot.com/1394353002/diff/60001/cc/cc.gyp File cc/cc.gyp (right): ...
5 years, 2 months ago (2015-10-16 22:04:24 UTC) #15
David Trainor- moved to gerrit
On 2015/10/16 22:04:24, danakj wrote: > OK LG overall. Thanks. Some sticky nitty gritty questions ...
5 years, 2 months ago (2015-10-19 16:02:08 UTC) #16
David Trainor- moved to gerrit
https://chromiumcodereview.appspot.com/1394353002/diff/100001/cc/BUILD.gn File cc/BUILD.gn (right): https://chromiumcodereview.appspot.com/1394353002/diff/100001/cc/BUILD.gn#newcode521 cc/BUILD.gn:521: "//cc/proto:cc_proto", On 2015/10/16 22:04:24, danakj wrote: > how come ...
5 years, 2 months ago (2015-10-19 17:04:38 UTC) #17
danakj
Thanks! LGTM. Let's add that exit destructors thing to cc also in another CL? https://chromiumcodereview.appspot.com/1394353002/diff/120001/cc/proto/BUILD.gn ...
5 years, 2 months ago (2015-10-19 17:24:30 UTC) #18
David Trainor- moved to gerrit
sounds good. Will do! https://chromiumcodereview.appspot.com/1394353002/diff/120001/cc/proto/BUILD.gn File cc/proto/BUILD.gn (right): https://chromiumcodereview.appspot.com/1394353002/diff/120001/cc/proto/BUILD.gn#newcode7 cc/proto/BUILD.gn:7: group("proto") { On 2015/10/19 17:24:30, ...
5 years, 2 months ago (2015-10-19 18:50:38 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1394353002/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1394353002/180001
5 years, 2 months ago (2015-10-19 19:43:58 UTC) #23
commit-bot: I haz the power
Committed patchset #10 (id:180001)
5 years, 2 months ago (2015-10-19 20:14:52 UTC) #24
commit-bot: I haz the power
5 years, 2 months ago (2015-10-19 20:15:37 UTC) #25
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/ddb0b49f3f9fa19f64cc3bacd1bdd3070571b383
Cr-Commit-Position: refs/heads/master@{#354846}

Powered by Google App Engine
This is Rietveld 408576698