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

Issue 2032643002: Implement cc::SharedQuadState StructTraits (Closed)

Created:
4 years, 6 months ago by Fady Samuel
Modified:
4 years, 6 months ago
CC:
Ken Rockot(use gerrit already), Aaron Boodman, abarth-chromium, ben+mojo_chromium.org, cc-bugs_chromium.org, chromium-reviews, darin (slow to review), darin-cc_chromium.org, feature-media-reviews_chromium.org, jam, qsr+mojo_chromium.org, rjkroege, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Implement cc::SharedQuadState StructTraits BUG=611802 CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel Committed: https://crrev.com/4690c5bb2208c108dfd76a210cd2bec61c67c884 Cr-Commit-Position: refs/heads/master@{#397812}

Patch Set 1 #

Patch Set 2 : Cleanup + Rebase #

Patch Set 3 : Cleanup #

Patch Set 4 : Fixed StructTraits + added unittest #

Total comments: 6

Patch Set 5 : Avoid unique_ptr #

Patch Set 6 : Make blend_mode an int in the mojom #

Total comments: 3

Patch Set 7 : Added DCHECK #

Patch Set 8 : Addressed rockot's comment #

Total comments: 1

Patch Set 9 : Updated to uint #

Unified diffs Side-by-side diffs Delta from patch set Stats (+173 lines, -149 lines) Patch
M cc/ipc/BUILD.gn View 1 2 3 2 chunks +2 lines, -0 lines 0 comments Download
A cc/ipc/shared_quad_state.mojom View 1 2 3 4 5 6 7 8 1 chunk +31 lines, -0 lines 0 comments Download
A cc/ipc/shared_quad_state.typemap View 1 2 3 4 1 chunk +10 lines, -0 lines 0 comments Download
A cc/ipc/shared_quad_state_struct_traits.h View 1 2 3 4 5 6 7 8 1 chunk +67 lines, -0 lines 0 comments Download
M cc/ipc/struct_traits_unittest.cc View 1 2 3 4 5 2 chunks +34 lines, -0 lines 0 comments Download
M cc/ipc/traits_test_service.mojom View 1 2 3 4 5 2 chunks +5 lines, -0 lines 0 comments Download
M cc/ipc/typemaps.gni View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M components/bitmap_uploader/bitmap_uploader.cc View 1 2 3 4 5 1 chunk +1 line, -2 lines 0 comments Download
M components/mus/public/cpp/surfaces/surfaces_type_converters.h View 1 chunk +0 lines, -7 lines 0 comments Download
M components/mus/public/cpp/surfaces/surfaces_type_converters.cc View 1 2 3 4 6 chunks +4 lines, -34 lines 0 comments Download
M components/mus/public/cpp/surfaces/surfaces_utils.h View 1 2 3 4 2 chunks +5 lines, -1 line 0 comments Download
M components/mus/public/cpp/surfaces/surfaces_utils.cc View 1 2 3 4 1 chunk +9 lines, -11 lines 0 comments Download
M components/mus/public/cpp/surfaces/tests/surface_unittest.cc View 1 2 3 4 3 chunks +2 lines, -33 lines 0 comments Download
M components/mus/public/interfaces/quads.mojom View 1 3 chunks +2 lines, -61 lines 0 comments Download

Messages

Total messages: 48 (18 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2032643002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2032643002/60001
4 years, 6 months ago (2016-06-01 20:28:39 UTC) #5
Fady Samuel
+tsepez@ for ipc +danakj@ for cc in general (fyi) +ben@ for mus.
4 years, 6 months ago (2016-06-01 20:29:25 UTC) #7
Tom Sepez
lgtm
4 years, 6 months ago (2016-06-01 20:41:28 UTC) #8
danakj
https://codereview.chromium.org/2032643002/diff/60001/cc/ipc/shared_quad_state.mojom File cc/ipc/shared_quad_state.mojom (right): https://codereview.chromium.org/2032643002/diff/60001/cc/ipc/shared_quad_state.mojom#newcode12 cc/ipc/shared_quad_state.mojom:12: enum SkXfermode { Erm. Include skia's header? Why are ...
4 years, 6 months ago (2016-06-01 20:54:11 UTC) #9
Fady Samuel
PTAL https://codereview.chromium.org/2032643002/diff/60001/cc/ipc/shared_quad_state.mojom File cc/ipc/shared_quad_state.mojom (right): https://codereview.chromium.org/2032643002/diff/60001/cc/ipc/shared_quad_state.mojom#newcode12 cc/ipc/shared_quad_state.mojom:12: enum SkXfermode { On 2016/06/01 20:54:11, danakj wrote: ...
4 years, 6 months ago (2016-06-01 21:02:49 UTC) #10
danakj
https://codereview.chromium.org/2032643002/diff/60001/cc/ipc/shared_quad_state.mojom File cc/ipc/shared_quad_state.mojom (right): https://codereview.chromium.org/2032643002/diff/60001/cc/ipc/shared_quad_state.mojom#newcode12 cc/ipc/shared_quad_state.mojom:12: enum SkXfermode { On 2016/06/01 21:02:49, Fady Samuel wrote: ...
4 years, 6 months ago (2016-06-01 21:04:20 UTC) #11
Ken Rockot(use gerrit already)
On 2016/06/01 at 21:04:20, danakj wrote: > https://codereview.chromium.org/2032643002/diff/60001/cc/ipc/shared_quad_state.mojom > File cc/ipc/shared_quad_state.mojom (right): > > https://codereview.chromium.org/2032643002/diff/60001/cc/ipc/shared_quad_state.mojom#newcode12 ...
4 years, 6 months ago (2016-06-01 21:11:35 UTC) #12
danakj
On Wed, Jun 1, 2016 at 2:11 PM, <rockot@chromium.org> wrote: > On 2016/06/01 at 21:04:20, ...
4 years, 6 months ago (2016-06-01 21:13:19 UTC) #13
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_gn_chromeos_rel on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_gn_chromeos_rel/builds/196700)
4 years, 6 months ago (2016-06-01 21:21:48 UTC) #15
Ken Rockot(use gerrit already)
On 2016/06/01 at 21:13:19, danakj wrote: > On Wed, Jun 1, 2016 at 2:11 PM, ...
4 years, 6 months ago (2016-06-01 21:25:03 UTC) #17
Fady Samuel
PTAL Dana. I now avoid the unique_ptr typemapping. This is diffed against this: https://codereview.chromium.org/2029813002/ Let ...
4 years, 6 months ago (2016-06-01 22:35:50 UTC) #18
danakj
On Wed, Jun 1, 2016 at 3:35 PM, <fsamuel@chromium.org> wrote: > PTAL Dana. I now ...
4 years, 6 months ago (2016-06-01 22:38:40 UTC) #19
Fady Samuel
On 2016/06/01 22:38:40, danakj wrote: > On Wed, Jun 1, 2016 at 3:35 PM, <mailto:fsamuel@chromium.org> ...
4 years, 6 months ago (2016-06-02 14:49:01 UTC) #20
Fady Samuel
PTAL Dana, I've made blend_mode an int in the short term with a TODO. Are ...
4 years, 6 months ago (2016-06-03 01:38:54 UTC) #21
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2032643002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2032643002/100001
4 years, 6 months ago (2016-06-03 01:46:48 UTC) #23
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 6 months ago (2016-06-03 05:40:15 UTC) #25
Fady Samuel
Tom, I've made blend_mode an int as per discussion with Dana. Could you please re-review ...
4 years, 6 months ago (2016-06-03 12:43:13 UTC) #26
Tom Sepez
https://codereview.chromium.org/2032643002/diff/100001/cc/ipc/shared_quad_state_struct_traits.h File cc/ipc/shared_quad_state_struct_traits.h (right): https://codereview.chromium.org/2032643002/diff/100001/cc/ipc/shared_quad_state_struct_traits.h#newcode57 cc/ipc/shared_quad_state_struct_traits.h:57: out->blend_mode = static_cast<SkXfermode::Mode>(data.blend_mode()); You need to manually validate that ...
4 years, 6 months ago (2016-06-03 16:48:22 UTC) #27
Fady Samuel
PTAL Tom! https://codereview.chromium.org/2032643002/diff/100001/cc/ipc/shared_quad_state_struct_traits.h File cc/ipc/shared_quad_state_struct_traits.h (right): https://codereview.chromium.org/2032643002/diff/100001/cc/ipc/shared_quad_state_struct_traits.h#newcode57 cc/ipc/shared_quad_state_struct_traits.h:57: out->blend_mode = static_cast<SkXfermode::Mode>(data.blend_mode()); On 2016/06/03 16:48:22, Tom ...
4 years, 6 months ago (2016-06-03 18:01:56 UTC) #28
Ken Rockot(use gerrit already)
https://codereview.chromium.org/2032643002/diff/100001/cc/ipc/shared_quad_state_struct_traits.h File cc/ipc/shared_quad_state_struct_traits.h (right): https://codereview.chromium.org/2032643002/diff/100001/cc/ipc/shared_quad_state_struct_traits.h#newcode57 cc/ipc/shared_quad_state_struct_traits.h:57: out->blend_mode = static_cast<SkXfermode::Mode>(data.blend_mode()); On 2016/06/03 at 18:01:55, Fady Samuel ...
4 years, 6 months ago (2016-06-03 18:03:44 UTC) #30
Fady Samuel
On 2016/06/03 18:03:44, Ken Rockot wrote: > https://codereview.chromium.org/2032643002/diff/100001/cc/ipc/shared_quad_state_struct_traits.h > File cc/ipc/shared_quad_state_struct_traits.h (right): > > https://codereview.chromium.org/2032643002/diff/100001/cc/ipc/shared_quad_state_struct_traits.h#newcode57 ...
4 years, 6 months ago (2016-06-03 18:07:00 UTC) #31
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2032643002/140001
4 years, 6 months ago (2016-06-03 18:14:24 UTC) #33
Tom Sepez
https://codereview.chromium.org/2032643002/diff/140001/cc/ipc/shared_quad_state_struct_traits.h File cc/ipc/shared_quad_state_struct_traits.h (right): https://codereview.chromium.org/2032643002/diff/140001/cc/ipc/shared_quad_state_struct_traits.h#newcode57 cc/ipc/shared_quad_state_struct_traits.h:57: if (data.blend_mode() > SkXfermode::kLastMode) blend_mode is signed, so it ...
4 years, 6 months ago (2016-06-03 18:14:28 UTC) #34
danakj
LGTM
4 years, 6 months ago (2016-06-03 18:53:37 UTC) #35
Fady Samuel
PTAL Tom!
4 years, 6 months ago (2016-06-03 19:00:29 UTC) #36
Tom Sepez
lgtm
4 years, 6 months ago (2016-06-03 19:03:20 UTC) #37
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2032643002/160001
4 years, 6 months ago (2016-06-03 19:10:17 UTC) #43
Ben Goodger (Google)
lgtm
4 years, 6 months ago (2016-06-03 19:27:37 UTC) #44
commit-bot: I haz the power
Committed patchset #9 (id:160001)
4 years, 6 months ago (2016-06-03 21:35:54 UTC) #46
commit-bot: I haz the power
4 years, 6 months ago (2016-06-03 21:37:16 UTC) #48
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/4690c5bb2208c108dfd76a210cd2bec61c67c884
Cr-Commit-Position: refs/heads/master@{#397812}

Powered by Google App Engine
This is Rietveld 408576698