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

Issue 2088603002: Implement RenderPass StructTraits (Closed)

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

Description

Implement RenderPass StructTraits This CL implements RenderPass StructTraits. Most of surfaces_type_converters goes away now. There's still extra copies due to lack of context propagation and array traits data views. There's also an extra copy in surfaces_type_converters that will go away in a subsequent CL. bitmap_uploader has been updated to speak to cc directly. This CL also deletes the test executable mojo_surfaces_lib_unittests. BUG=611802 TBR=ben@chromium.org CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel Committed: https://crrev.com/ff18d775f07c5c2f8002dfe563f081427045a187 Cr-Commit-Position: refs/heads/master@{#401861}

Patch Set 1 #

Patch Set 2 : WIP: Compiles but crashes #

Patch Set 3 : Works! TODO: fix bitmap_uploader #

Patch Set 4 : Cleanup #

Patch Set 5 : Moved things to render_pass_struct_traits.cc #

Patch Set 6 : Works #

Patch Set 7 : Remove unnecessary change #

Total comments: 30

Patch Set 8 : Addressed Yuzhu's comments #

Patch Set 9 : Addressed Dana's comments #

Total comments: 10

Patch Set 10 : Addressed Dana's nits #

Patch Set 11 : Rebase #

Patch Set 12 : Add checked_cast #

Total comments: 4

Patch Set 13 : Updated #

Total comments: 4

Patch Set 14 : Fix bots #

Patch Set 15 : Cleanup #

Unified diffs Side-by-side diffs Delta from patch set Stats (+446 lines, -968 lines) Patch
M cc/ipc/quads.mojom View 1 2 1 chunk +5 lines, -1 line 0 comments Download
M cc/ipc/quads_struct_traits.h View 1 2 3 4 5 1 chunk +0 lines, -5 lines 0 comments Download
M cc/ipc/quads_struct_traits.cc View 1 2 3 4 5 6 7 8 9 4 chunks +8 lines, -0 lines 0 comments Download
M cc/ipc/render_pass.mojom View 1 1 chunk +4 lines, -3 lines 0 comments Download
A cc/ipc/render_pass.typemap View 1 2 3 4 5 6 7 8 1 chunk +15 lines, -0 lines 0 comments Download
A cc/ipc/render_pass_struct_traits.h View 1 2 3 4 1 chunk +69 lines, -0 lines 0 comments Download
A cc/ipc/render_pass_struct_traits.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +77 lines, -0 lines 0 comments Download
M cc/ipc/shared_quad_state_struct_traits.h View 1 2 3 4 5 1 chunk +4 lines, -3 lines 0 comments Download
M cc/ipc/struct_traits_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 4 chunks +216 lines, -44 lines 0 comments Download
M cc/ipc/traits_test_service.mojom View 1 2 chunks +4 lines, -0 lines 0 comments Download
M cc/ipc/typemaps.gni View 1 1 chunk +1 line, -0 lines 0 comments Download
M components/bitmap_uploader/DEPS View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M components/bitmap_uploader/bitmap_uploader.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 4 chunks +38 lines, -47 lines 0 comments Download
M components/mus/public/cpp/surfaces/BUILD.gn View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -2 lines 0 comments Download
M components/mus/public/cpp/surfaces/surfaces_type_converters.h View 1 chunk +0 lines, -19 lines 0 comments Download
M components/mus/public/cpp/surfaces/surfaces_type_converters.cc View 1 2 3 chunks +4 lines, -339 lines 0 comments Download
D components/mus/public/cpp/surfaces/surfaces_utils.h View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -35 lines 0 comments Download
D components/mus/public/cpp/surfaces/surfaces_utils.cc View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -38 lines 0 comments Download
D components/mus/public/cpp/surfaces/tests/BUILD.gn View 1 2 3 1 chunk +0 lines, -29 lines 0 comments Download
M components/mus/public/cpp/surfaces/tests/surface_unittest.cc View 1 2 3 1 chunk +0 lines, -332 lines 0 comments Download
M components/mus/ws/platform_display.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +0 lines, -1 line 0 comments Download
M content/renderer/mus/render_widget_mus_connection.cc View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -1 line 0 comments Download
M mojo/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +0 lines, -1 line 0 comments Download
M testing/buildbot/chromium.android.json View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +0 lines, -28 lines 0 comments Download
M testing/buildbot/chromium.linux.json View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +0 lines, -24 lines 0 comments Download
M testing/buildbot/chromium.win.json View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +0 lines, -12 lines 0 comments Download
M testing/buildbot/gn_isolate_map.pyl View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +0 lines, -4 lines 0 comments Download

Messages

Total messages: 44 (20 generated)
Fady Samuel
rjkroege@: overall danakj@ for cc dcheng@ for ipc dpranke@ for testing.
4 years, 6 months ago (2016-06-21 21:51:32 UTC) #4
Dirk Pranke
//testing lgtm.
4 years, 6 months ago (2016-06-21 23:40:23 UTC) #5
Dirk Pranke
https://codereview.chromium.org/2088603002/diff/120001/mojo/BUILD.gn File mojo/BUILD.gn (left): https://codereview.chromium.org/2088603002/diff/120001/mojo/BUILD.gn#oldcode32 mojo/BUILD.gn:32: "//components/mus/public/cpp/surfaces/tests:mojo_surfaces_lib_unittests", You should mention that you're deleting this test ...
4 years, 6 months ago (2016-06-21 23:41:17 UTC) #6
yzshen1
LGTM with one question. https://codereview.chromium.org/2088603002/diff/120001/cc/ipc/render_pass_struct_traits.cc File cc/ipc/render_pass_struct_traits.cc (right): https://codereview.chromium.org/2088603002/diff/120001/cc/ipc/render_pass_struct_traits.cc#newcode64 cc/ipc/render_pass_struct_traits.cc:64: DCHECK_EQ(shared_quad_state_references[it.index()], sqs_iter.index()); (I am not ...
4 years, 6 months ago (2016-06-21 23:51:21 UTC) #7
danakj
https://codereview.chromium.org/2088603002/diff/120001/cc/ipc/quads_struct_traits.cc File cc/ipc/quads_struct_traits.cc (right): https://codereview.chromium.org/2088603002/diff/120001/cc/ipc/quads_struct_traits.cc#newcode267 cc/ipc/quads_struct_traits.cc:267: quad->resources.ids[cc::YUVVideoDrawQuad::kAPlaneResourceIdIndex] = no count here? (a is optional, i ...
4 years, 6 months ago (2016-06-22 00:05:09 UTC) #8
danakj
https://codereview.chromium.org/2088603002/diff/120001/components/bitmap_uploader/bitmap_uploader.cc File components/bitmap_uploader/bitmap_uploader.cc (right): https://codereview.chromium.org/2088603002/diff/120001/components/bitmap_uploader/bitmap_uploader.cc#newcode84 components/bitmap_uploader/bitmap_uploader.cc:84: std::unique_ptr<cc::RenderPass> pass = cc::RenderPass::Create(); include render_pass.h too then https://codereview.chromium.org/2088603002/diff/120001/components/bitmap_uploader/bitmap_uploader.cc#newcode85 ...
4 years, 6 months ago (2016-06-22 00:06:21 UTC) #9
Fady Samuel
PTAL Dana! + meacer@ as dcheng is OOO https://codereview.chromium.org/2088603002/diff/120001/cc/ipc/quads_struct_traits.cc File cc/ipc/quads_struct_traits.cc (right): https://codereview.chromium.org/2088603002/diff/120001/cc/ipc/quads_struct_traits.cc#newcode267 cc/ipc/quads_struct_traits.cc:267: quad->resources.ids[cc::YUVVideoDrawQuad::kAPlaneResourceIdIndex] ...
4 years, 6 months ago (2016-06-22 20:08:15 UTC) #12
danakj
Thanks, cc LGTM https://codereview.chromium.org/2088603002/diff/120001/cc/ipc/quads_struct_traits.cc File cc/ipc/quads_struct_traits.cc (right): https://codereview.chromium.org/2088603002/diff/120001/cc/ipc/quads_struct_traits.cc#newcode267 cc/ipc/quads_struct_traits.cc:267: quad->resources.ids[cc::YUVVideoDrawQuad::kAPlaneResourceIdIndex] = On 2016/06/22 20:08:14, Fady ...
4 years, 6 months ago (2016-06-22 20:51:35 UTC) #13
Fady Samuel
Thanks Dana! PTAL Rob, and Mustafa! Thanks! https://codereview.chromium.org/2088603002/diff/160001/cc/ipc/quads_struct_traits.cc File cc/ipc/quads_struct_traits.cc (right): https://codereview.chromium.org/2088603002/diff/160001/cc/ipc/quads_struct_traits.cc#newcode269 cc/ipc/quads_struct_traits.cc:269: quad->resources.count = ...
4 years, 6 months ago (2016-06-22 21:41:19 UTC) #14
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2088603002/180001
4 years, 6 months ago (2016-06-22 21:53:09 UTC) #16
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: ios-device-gn on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device-gn/builds/25290)
4 years, 6 months ago (2016-06-22 22:03:50 UTC) #18
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2088603002/200001
4 years, 6 months ago (2016-06-23 03:37:30 UTC) #20
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2088603002/220001
4 years, 6 months ago (2016-06-23 04:32:36 UTC) #22
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 6 months ago (2016-06-23 05:30:43 UTC) #24
rjkroege
lgtm with some minor comments https://codereview.chromium.org/2088603002/diff/220001/cc/ipc/struct_traits_unittest.cc File cc/ipc/struct_traits_unittest.cc (right): https://codereview.chromium.org/2088603002/diff/220001/cc/ipc/struct_traits_unittest.cc#newcode322 cc/ipc/struct_traits_unittest.cc:322: background_filters.Append(FilterOperation::CreateSaturateFilter(4.f)); Should the created ...
4 years, 6 months ago (2016-06-23 14:09:59 UTC) #25
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2088603002/240001
4 years, 6 months ago (2016-06-23 15:30:34 UTC) #27
Fady Samuel
PTAL! https://codereview.chromium.org/2088603002/diff/220001/cc/ipc/struct_traits_unittest.cc File cc/ipc/struct_traits_unittest.cc (right): https://codereview.chromium.org/2088603002/diff/220001/cc/ipc/struct_traits_unittest.cc#newcode322 cc/ipc/struct_traits_unittest.cc:322: background_filters.Append(FilterOperation::CreateSaturateFilter(4.f)); On 2016/06/23 14:09:59, rjkroege wrote: > Should ...
4 years, 6 months ago (2016-06-23 15:31:09 UTC) #28
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 6 months ago (2016-06-23 16:41:10 UTC) #30
dcheng
lgtm with nits https://codereview.chromium.org/2088603002/diff/240001/cc/ipc/render_pass_struct_traits.cc File cc/ipc/render_pass_struct_traits.cc (right): https://codereview.chromium.org/2088603002/diff/240001/cc/ipc/render_pass_struct_traits.cc#newcode16 cc/ipc/render_pass_struct_traits.cc:16: mojo::Array<uint32_t>* sqs_references = Nit: std::unique_ptr and ...
4 years, 5 months ago (2016-06-24 09:12:20 UTC) #31
Fady Samuel
Thanks Daniel! TBR'ing Ben for trivial changes to delete a couple of includes in: components/mus/ws/platform_display.cc ...
4 years, 5 months ago (2016-06-24 13:33:21 UTC) #34
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2088603002/260001
4 years, 5 months ago (2016-06-24 13:33:48 UTC) #37
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2088603002/280001
4 years, 5 months ago (2016-06-24 13:42:07 UTC) #40
commit-bot: I haz the power
Committed patchset #15 (id:280001)
4 years, 5 months ago (2016-06-24 14:44:43 UTC) #42
commit-bot: I haz the power
4 years, 5 months ago (2016-06-24 14:45:51 UTC) #44
Message was sent while issue was closed.
Patchset 15 (id:??) landed as
https://crrev.com/ff18d775f07c5c2f8002dfe563f081427045a187
Cr-Commit-Position: refs/heads/master@{#401861}

Powered by Google App Engine
This is Rietveld 408576698