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

Issue 911793002: Split transform_converters.h from geometry_type_converters.h. (Closed)

Created:
5 years, 10 months ago by wtc
Modified:
5 years, 10 months ago
Reviewers:
Ian Vollick, jamesr, msw
CC:
chromium-reviews, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org, abarth-chromium, Aaron Boodman, darin (slow to review), ben+mojo_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Split transform_converters.h from geometry_type_converters.h. This makes geometry_type_converters.h independent of skia. A target can use geometry_type_converters.h without picking up a dependency on skia inadvertently. Create transform_converters.h for the converters to and from gfx::Transform, which is implemented using skia's SkMatrix44. R=jamesr@chromium.org,msw@chromium.org BUG=457280 Committed: https://crrev.com/ee4710dab91c8e01882a5b6902fbd171a8e48a50 Cr-Commit-Position: refs/heads/master@{#316252}

Patch Set 1 #

Patch Set 2 : Depend on the geometry_export target. #

Patch Set 3 : Remove comments referencing mojo/mojo_converters.gypi #

Patch Set 4 : Also split transform.mojom from geometry.mojom #

Patch Set 5 : Undo the geometry.mojom change #

Patch Set 6 : #

Total comments: 3

Patch Set 7 : Add MOJO_TRANSFORM_EXPORT and mojo_transform_export.h. #

Total comments: 12

Patch Set 8 : Create mojo/converters/transform #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+103 lines, -47 lines) Patch
M mojo/converters/geometry/BUILD.gn View 1 2 3 4 5 6 7 1 chunk +3 lines, -4 lines 0 comments Download
M mojo/converters/geometry/DEPS View 1 2 3 4 5 6 7 1 chunk +0 lines, -1 line 0 comments Download
M mojo/converters/geometry/geometry_type_converters.h View 2 chunks +0 lines, -10 lines 0 comments Download
M mojo/converters/geometry/geometry_type_converters.cc View 1 chunk +0 lines, -22 lines 0 comments Download
M mojo/converters/surfaces/BUILD.gn View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M mojo/converters/surfaces/surfaces_type_converters.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M mojo/converters/surfaces/surfaces_utils.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M mojo/converters/surfaces/tests/BUILD.gn View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M mojo/converters/surfaces/tests/surface_unittest.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
A + mojo/converters/transform/BUILD.gn View 1 2 3 4 5 6 7 1 chunk +7 lines, -9 lines 0 comments Download
A + mojo/converters/transform/DEPS View 1 2 3 4 5 6 7 1 chunk +0 lines, -1 line 0 comments Download
A mojo/converters/transform/mojo_transform_export.h View 1 2 3 4 5 6 7 1 chunk +32 lines, -0 lines 0 comments Download
A mojo/converters/transform/transform_converters.h View 1 2 3 4 5 6 7 1 chunk +25 lines, -0 lines 2 comments Download
A mojo/converters/transform/transform_converters.cc View 1 2 3 4 5 6 7 1 chunk +31 lines, -0 lines 0 comments Download

Messages

Total messages: 23 (6 generated)
wtc
James, Mike: please review. An alternative solution is to move the Transform converters to mojo/converters/surfaces/surfaces_type_converters.{h,cc} ...
5 years, 10 months ago (2015-02-11 00:33:18 UTC) #1
wtc
James, Mike: please review. (I neglected to add you to the reviewers list.)
5 years, 10 months ago (2015-02-12 15:58:25 UTC) #3
jamesr
https://codereview.chromium.org/911793002/diff/100001/mojo/converters/geometry/BUILD.gn File mojo/converters/geometry/BUILD.gn (right): https://codereview.chromium.org/911793002/diff/100001/mojo/converters/geometry/BUILD.gn#newcode50 mojo/converters/geometry/BUILD.gn:50: defines = [ "MOJO_GEOMETRY_IMPLEMENTATION" ] You can't have two ...
5 years, 10 months ago (2015-02-12 18:26:20 UTC) #4
wtc
https://codereview.chromium.org/911793002/diff/100001/mojo/converters/geometry/BUILD.gn File mojo/converters/geometry/BUILD.gn (right): https://codereview.chromium.org/911793002/diff/100001/mojo/converters/geometry/BUILD.gn#newcode50 mojo/converters/geometry/BUILD.gn:50: defines = [ "MOJO_GEOMETRY_IMPLEMENTATION" ] Hmm... you're right. I ...
5 years, 10 months ago (2015-02-12 22:36:38 UTC) #5
jamesr
I think it's overly confusing to have them in the same component since if there ...
5 years, 10 months ago (2015-02-12 22:40:29 UTC) #6
wtc
I added the MOJO_TRANSFORM_EXPORT macro and the mojo_transform_export.h header. Please review patch set 7. Thanks.
5 years, 10 months ago (2015-02-12 23:04:13 UTC) #7
jamesr
lgtm https://codereview.chromium.org/911793002/diff/120001/mojo/converters/geometry/BUILD.gn File mojo/converters/geometry/BUILD.gn (right): https://codereview.chromium.org/911793002/diff/120001/mojo/converters/geometry/BUILD.gn#newcode37 mojo/converters/geometry/BUILD.gn:37: "//ui/gfx", public_deps are also deps, you don't need ...
5 years, 10 months ago (2015-02-13 01:06:46 UTC) #8
wtc
James: thanks for the review. I implemented all of your suggestions in patch set 8. ...
5 years, 10 months ago (2015-02-13 03:04:20 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/911793002/140001
5 years, 10 months ago (2015-02-13 03:25:08 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/42518)
5 years, 10 months ago (2015-02-13 03:32:07 UTC) #14
wtc
Ian, Mike: I need you to review and approve the dependency of the new mojo/converters/transform ...
5 years, 10 months ago (2015-02-13 17:52:59 UTC) #16
msw
lgtm with a nit q https://codereview.chromium.org/911793002/diff/140001/mojo/converters/transform/transform_converters.h File mojo/converters/transform/transform_converters.h (right): https://codereview.chromium.org/911793002/diff/140001/mojo/converters/transform/transform_converters.h#newcode9 mojo/converters/transform/transform_converters.h:9: #include "third_party/mojo_services/src/geometry/public/interfaces/geometry.mojom.h" nit q: ...
5 years, 10 months ago (2015-02-13 18:25:35 UTC) #17
wtc
https://codereview.chromium.org/911793002/diff/140001/mojo/converters/transform/transform_converters.h File mojo/converters/transform/transform_converters.h (right): https://codereview.chromium.org/911793002/diff/140001/mojo/converters/transform/transform_converters.h#newcode9 mojo/converters/transform/transform_converters.h:9: #include "third_party/mojo_services/src/geometry/public/interfaces/geometry.mojom.h" On 2015/02/13 18:25:35, msw wrote: > nit ...
5 years, 10 months ago (2015-02-13 18:59:09 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/911793002/140001
5 years, 10 months ago (2015-02-13 19:00:57 UTC) #20
commit-bot: I haz the power
Committed patchset #8 (id:140001)
5 years, 10 months ago (2015-02-13 19:05:00 UTC) #21
commit-bot: I haz the power
Patchset 8 (id:??) landed as https://crrev.com/ee4710dab91c8e01882a5b6902fbd171a8e48a50 Cr-Commit-Position: refs/heads/master@{#316252}
5 years, 10 months ago (2015-02-13 19:05:33 UTC) #22
picksi
5 years, 10 months ago (2015-02-19 12:19:17 UTC) #23
Message was sent while issue was closed.
While perf sheriffing, this CL (along with several others) was reported by the
bisect bots as a possible cause of the regression shown here:

https://chromeperf.appspot.com/group_report?bug_id=459175

It seems unlikely to be the root cause, but please can you take a moment to
confirm that this CL is innocent! Thanks.

Powered by Google App Engine
This is Rietveld 408576698