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

Issue 2092843002: Implement CompositorFrame Struct Traits (Closed)

Created:
4 years, 6 months ago by Fady Samuel
Modified:
4 years, 5 months ago
CC:
chromium-reviews, rjkroege, piman+watch_chromium.org, cc-bugs_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Implement CompositorFrame StructTraits This CL implements CompositorFrame StructTraits. This CL deletes surfaces type converters, and updates call sites. In a subsequent CL, I'll add a perf test comparable to ParamTraits. CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel TBR=ben@chromium.org for content/renderer/mus BUG=611802 Committed: https://crrev.com/ce098fb67017c4afe44b6c23664723a0a057b737 Cr-Commit-Position: refs/heads/master@{#402199}

Patch Set 1 #

Patch Set 2 : Delete code #

Total comments: 4

Patch Set 3 : Moved to private #

Patch Set 4 : Addressed Dana's comments #

Patch Set 5 : Rebased #

Patch Set 6 : updated #

Patch Set 7 : Added unittest #

Total comments: 4

Patch Set 8 : Addressed dcheng's comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+323 lines, -294 lines) Patch
M cc/ipc/DEPS View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
A cc/ipc/compositor_frame.typemap View 1 2 3 4 5 6 7 1 chunk +15 lines, -0 lines 0 comments Download
M cc/ipc/compositor_frame_metadata.typemap View 1 2 3 4 5 6 7 1 chunk +10 lines, -2 lines 0 comments Download
M cc/ipc/compositor_frame_metadata_struct_traits.h View 1 2 3 4 5 6 7 1 chunk +1 line, -30 lines 0 comments Download
A cc/ipc/compositor_frame_metadata_struct_traits.cc View 1 2 3 4 5 6 7 1 chunk +45 lines, -0 lines 0 comments Download
A cc/ipc/compositor_frame_struct_traits.h View 1 2 3 4 5 6 7 1 chunk +35 lines, -0 lines 0 comments Download
A cc/ipc/compositor_frame_struct_traits.cc View 1 2 3 4 5 6 7 1 chunk +24 lines, -0 lines 0 comments Download
M cc/ipc/struct_traits_unittest.cc View 1 2 3 4 5 6 2 chunks +123 lines, -0 lines 0 comments Download
M cc/ipc/traits_test_service.mojom View 1 2 3 4 5 6 2 chunks +4 lines, -0 lines 0 comments Download
M cc/ipc/transferable_resource.typemap View 1 2 3 4 5 6 7 1 chunk +10 lines, -2 lines 0 comments Download
M cc/ipc/transferable_resource_struct_traits.h View 1 2 3 4 5 6 7 1 chunk +1 line, -12 lines 0 comments Download
A cc/ipc/transferable_resource_struct_traits.cc View 1 2 3 4 5 6 7 1 chunk +29 lines, -0 lines 0 comments Download
M cc/ipc/typemaps.gni View 3 1 chunk +1 line, -0 lines 0 comments Download
M components/bitmap_uploader/BUILD.gn View 1 1 chunk +0 lines, -1 line 0 comments Download
M components/bitmap_uploader/bitmap_uploader.cc View 1 2 3 4 chunks +6 lines, -6 lines 0 comments Download
M components/mus/gpu/display_compositor/BUILD.gn View 1 1 chunk +0 lines, -1 line 0 comments Download
M components/mus/gpu/display_compositor/compositor_frame_sink_impl.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M components/mus/gpu/display_compositor/compositor_frame_sink_impl.cc View 1 2 3 3 chunks +6 lines, -8 lines 0 comments Download
M components/mus/public/cpp/BUILD.gn View 1 1 chunk +0 lines, -1 line 0 comments Download
M components/mus/public/cpp/lib/output_surface.cc View 1 2 3 4 2 chunks +1 line, -2 lines 0 comments Download
M components/mus/public/cpp/lib/window_surface.cc View 1 2 3 2 chunks +1 line, -2 lines 0 comments Download
D components/mus/public/cpp/surfaces/BUILD.gn View 1 3 1 chunk +0 lines, -31 lines 0 comments Download
D components/mus/public/cpp/surfaces/DEPS View 1 1 chunk +0 lines, -14 lines 0 comments Download
D components/mus/public/cpp/surfaces/OWNERS View 1 1 chunk +0 lines, -4 lines 0 comments Download
D components/mus/public/cpp/surfaces/mojo_surfaces_export.h View 1 1 chunk +0 lines, -32 lines 0 comments Download
D components/mus/public/cpp/surfaces/surfaces_type_converters.h View 1 3 1 chunk +0 lines, -56 lines 0 comments Download
D components/mus/public/cpp/surfaces/surfaces_type_converters.cc View 1 2 3 4 1 chunk +0 lines, -74 lines 0 comments Download
M components/mus/public/cpp/window_surface.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M components/mus/surfaces/BUILD.gn View 1 1 chunk +0 lines, -1 line 0 comments Download
M components/mus/ws/BUILD.gn View 1 1 chunk +0 lines, -1 line 0 comments Download
M components/mus/ws/platform_display.cc View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
M components/mus/ws/server_window_surface.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M components/mus/ws/server_window_surface.cc View 1 2 3 3 chunks +6 lines, -5 lines 0 comments Download
M components/mus/ws/window_server.cc View 1 2 3 4 5 6 7 1 chunk +0 lines, -1 line 0 comments Download
M components/mus/ws/window_tree.cc View 1 2 3 4 5 6 7 1 chunk +0 lines, -1 line 0 comments Download
M content/renderer/mus/BUILD.gn View 1 1 chunk +0 lines, -1 line 0 comments Download
M ui/views/mus/BUILD.gn View 1 1 chunk +0 lines, -1 line 0 comments Download
M ui/views/mus/surface_binding.cc View 1 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 38 (19 generated)
Fady Samuel
4 years, 6 months ago (2016-06-23 19:07:38 UTC) #6
rjkroege
lgtm https://codereview.chromium.org/2092843002/diff/20001/cc/ipc/compositor_frame.typemap File cc/ipc/compositor_frame.typemap (right): https://codereview.chromium.org/2092843002/diff/20001/cc/ipc/compositor_frame.typemap#newcode11 cc/ipc/compositor_frame.typemap:11: type_mappings = [ "cc.mojom.CompositorFrame=std::unique_ptr<cc::CompositorFrame>[pass_by_value]" ] This pass by ...
4 years, 6 months ago (2016-06-23 19:13:56 UTC) #7
Fady Samuel
+dcheng@ for security +danakj@ for cc +sky@ for mus and ui Hooray! surfaces type converters ...
4 years, 6 months ago (2016-06-25 04:31:12 UTC) #9
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2092843002/110001
4 years, 6 months ago (2016-06-25 05:08:06 UTC) #11
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 6 months ago (2016-06-25 06:10:21 UTC) #13
dcheng
https://codereview.chromium.org/2092843002/diff/110001/cc/ipc/compositor_frame_struct_traits.h File cc/ipc/compositor_frame_struct_traits.h (right): https://codereview.chromium.org/2092843002/diff/110001/cc/ipc/compositor_frame_struct_traits.h#newcode31 cc/ipc/compositor_frame_struct_traits.h:31: if (!data.ReadMetadata(&out->metadata)) Let's move this to a .cc, since ...
4 years, 5 months ago (2016-06-27 02:05:00 UTC) #14
Fady Samuel
PTAL Daniel et al! Thanks! https://codereview.chromium.org/2092843002/diff/110001/cc/ipc/compositor_frame_struct_traits.h File cc/ipc/compositor_frame_struct_traits.h (right): https://codereview.chromium.org/2092843002/diff/110001/cc/ipc/compositor_frame_struct_traits.h#newcode31 cc/ipc/compositor_frame_struct_traits.h:31: if (!data.ReadMetadata(&out->metadata)) On 2016/06/27 ...
4 years, 5 months ago (2016-06-27 03:05:10 UTC) #15
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2092843002/130001
4 years, 5 months ago (2016-06-27 03:09:23 UTC) #17
dcheng
mojom lgtm
4 years, 5 months ago (2016-06-27 03:41:57 UTC) #18
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 5 months ago (2016-06-27 04:07:03 UTC) #20
Fady Samuel
+ajuma@ -danakj@ in the interest of load balancing reviewers Feel free to chime in and ...
4 years, 5 months ago (2016-06-27 15:34:52 UTC) #22
ajuma
cc lgtm
4 years, 5 months ago (2016-06-27 15:44:03 UTC) #23
sky
LGTM
4 years, 5 months ago (2016-06-27 16:15:38 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2092843002/130001
4 years, 5 months ago (2016-06-27 16:21:11 UTC) #27
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/207672)
4 years, 5 months ago (2016-06-27 16:29:36 UTC) #29
Fady Samuel
+ben@ I'm TBR'ing you for a trivial change to content/renderer/mus Thanks!
4 years, 5 months ago (2016-06-27 16:37:31 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2092843002/130001
4 years, 5 months ago (2016-06-27 16:38:07 UTC) #34
commit-bot: I haz the power
Committed patchset #8 (id:130001)
4 years, 5 months ago (2016-06-27 16:43:24 UTC) #36
commit-bot: I haz the power
4 years, 5 months ago (2016-06-27 16:45:05 UTC) #38
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/ce098fb67017c4afe44b6c23664723a0a057b737
Cr-Commit-Position: refs/heads/master@{#402199}

Powered by Google App Engine
This is Rietveld 408576698