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

Issue 1387283002: cc: Remove redundant is_overlay arguments (Closed)

Created:
5 years, 2 months ago by ccameron
Modified:
5 years, 2 months ago
CC:
Andre, cc-bugs_chromium.org, chromium-reviews, darin-cc_chromium.org, Daniele Castagna, feature-media-reviews_chromium.org, jam
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

cc: Remove redundant overlay arguments Whether or not a quad can be made into an overlay is dependent on whether there is a GLImage backing the texture resources that the quad uses. Prior to this patch, this information was passed along to the layer or quad via a side-channel, in the form of a "allow overlay" argument. Now, store this information in the cc::Resource, in particular, through the cc::TextureMailbox that it is created from, and have the overlay strategy query the property of the cc::Resource. Add appropriate plumbing of the parameters from the cc::TextureMailbox, through the cc::Resource, to cc::TransferableResource, and finally to a cc::Resource in other compositors. R=reveman,fsamuel,dcheng TBR=danakj BUG=533690 CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel Committed: https://crrev.com/268c09fdae64b08957aba9b31797adb93525c90f Cr-Commit-Position: refs/heads/master@{#353128}

Patch Set 1 #

Total comments: 7

Patch Set 2 : Incorporate review feedback (and fix tests) #

Patch Set 3 : Add mojo parts #

Patch Set 4 : More mojo changes #

Total comments: 7

Patch Set 5 : Incorporate review feedback #

Total comments: 2

Patch Set 6 : Undo changes on overlay_strategy_single_on_top.cc #

Unified diffs Side-by-side diffs Delta from patch set Stats (+241 lines, -247 lines) Patch
M cc/layers/io_surface_layer_impl.cc View 1 chunk +3 lines, -8 lines 0 comments Download
M cc/layers/texture_layer_impl.cc View 1 chunk +0 lines, -1 line 0 comments Download
M cc/layers/video_layer_impl.h View 1 1 chunk +5 lines, -3 lines 0 comments Download
M cc/layers/video_layer_impl.cc View 1 3 chunks +2 lines, -4 lines 0 comments Download
M cc/output/direct_renderer.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M cc/output/gl_renderer_unittest.cc View 6 chunks +9 lines, -8 lines 0 comments Download
M cc/output/overlay_candidate.h View 2 chunks +10 lines, -4 lines 0 comments Download
M cc/output/overlay_candidate.cc View 1 6 chunks +19 lines, -11 lines 0 comments Download
M cc/output/overlay_processor.h View 2 chunks +4 lines, -2 lines 0 comments Download
M cc/output/overlay_processor.cc View 1 chunk +3 lines, -2 lines 0 comments Download
M cc/output/overlay_strategy_all_or_nothing.h View 1 chunk +2 lines, -1 line 0 comments Download
M cc/output/overlay_strategy_all_or_nothing.cc View 2 chunks +3 lines, -2 lines 0 comments Download
M cc/output/overlay_strategy_sandwich.h View 1 chunk +2 lines, -1 line 0 comments Download
M cc/output/overlay_strategy_sandwich.cc View 1 chunk +3 lines, -2 lines 0 comments Download
M cc/output/overlay_strategy_single_on_top.h View 1 chunk +3 lines, -2 lines 0 comments Download
M cc/output/overlay_strategy_single_on_top.cc View 5 3 chunks +8 lines, -7 lines 0 comments Download
M cc/output/overlay_strategy_underlay.h View 1 chunk +2 lines, -1 line 0 comments Download
M cc/output/overlay_strategy_underlay.cc View 1 chunk +3 lines, -2 lines 0 comments Download
M cc/output/overlay_unittest.cc View 1 42 chunks +92 lines, -48 lines 0 comments Download
M cc/quads/draw_quad_unittest.cc View 6 chunks +15 lines, -41 lines 0 comments Download
M cc/quads/io_surface_draw_quad.h View 2 chunks +2 lines, -5 lines 0 comments Download
M cc/quads/io_surface_draw_quad.cc View 4 chunks +3 lines, -9 lines 0 comments Download
M cc/quads/stream_video_draw_quad.h View 3 chunks +0 lines, -7 lines 0 comments Download
M cc/quads/stream_video_draw_quad.cc View 3 chunks +0 lines, -6 lines 0 comments Download
M cc/quads/texture_draw_quad.h View 3 chunks +0 lines, -8 lines 0 comments Download
M cc/quads/texture_draw_quad.cc View 3 chunks +0 lines, -4 lines 0 comments Download
M cc/resources/resource_provider.h View 1 2 chunks +4 lines, -0 lines 0 comments Download
M cc/resources/resource_provider.cc View 1 5 chunks +9 lines, -0 lines 0 comments Download
M cc/resources/texture_mailbox.h View 1 3 chunks +3 lines, -3 lines 0 comments Download
M cc/resources/texture_mailbox.cc View 1 1 chunk +8 lines, -10 lines 0 comments Download
M cc/resources/transferable_resource.h View 1 1 chunk +1 line, -1 line 0 comments Download
M cc/resources/transferable_resource.cc View 1 1 chunk +1 line, -2 lines 0 comments Download
M cc/surfaces/surface_aggregator_perftest.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M cc/surfaces/surface_aggregator_unittest.cc View 1 chunk +3 lines, -3 lines 0 comments Download
M cc/test/render_pass_test_utils.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M content/common/cc_messages.h View 1 2 chunks +1 line, -2 lines 0 comments Download
M content/common/cc_messages.cc View 6 chunks +0 lines, -10 lines 0 comments Download
M content/common/cc_messages_unittest.cc View 1 10 chunks +6 lines, -11 lines 0 comments Download
M mojo/converters/surfaces/surfaces_type_converters.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M mojo/converters/surfaces/tests/surface_unittest.cc View 1 2 2 chunks +6 lines, -10 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 39 (13 generated)
ccameron
Turned out to be fairly simple! https://codereview.chromium.org/1387283002/diff/1/cc/resources/resource_provider.cc File cc/resources/resource_provider.cc (right): https://codereview.chromium.org/1387283002/diff/1/cc/resources/resource_provider.cc#newcode1576 cc/resources/resource_provider.cc:1576: resource->dirty_image = false; ...
5 years, 2 months ago (2015-10-07 00:47:58 UTC) #2
reveman
Been thinking a bit more about this and I'm not sure the bound_to_image naming for ...
5 years, 2 months ago (2015-10-07 09:32:59 UTC) #3
ccameron
Good ideas -- updated. https://codereview.chromium.org/1387283002/diff/1/cc/quads/io_surface_draw_quad.h File cc/quads/io_surface_draw_quad.h (right): https://codereview.chromium.org/1387283002/diff/1/cc/quads/io_surface_draw_quad.h#newcode31 cc/quads/io_surface_draw_quad.h:31: Orientation orientation); On 2015/10/07 09:32:58, ...
5 years, 2 months ago (2015-10-07 19:13:11 UTC) #4
reveman
lgtm https://codereview.chromium.org/1387283002/diff/1/cc/quads/io_surface_draw_quad.h File cc/quads/io_surface_draw_quad.h (right): https://codereview.chromium.org/1387283002/diff/1/cc/quads/io_surface_draw_quad.h#newcode31 cc/quads/io_surface_draw_quad.h:31: Orientation orientation); On 2015/10/07 at 19:13:11, ccameron wrote: ...
5 years, 2 months ago (2015-10-07 19:24:18 UTC) #5
ccameron
Thanks! Adding fsamuel for mojo
5 years, 2 months ago (2015-10-07 20:07:10 UTC) #7
Fady Samuel
mojo lgtm
5 years, 2 months ago (2015-10-07 21:00:52 UTC) #8
ccameron
Thanks!
5 years, 2 months ago (2015-10-07 21:15:34 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1387283002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1387283002/60001
5 years, 2 months ago (2015-10-07 21:17:07 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/107613)
5 years, 2 months ago (2015-10-07 21:32:10 UTC) #14
ccameron
Adding dcheng@ for content/common/*message*
5 years, 2 months ago (2015-10-07 21:41:03 UTC) #16
dcheng
ipc changes lgtm https://codereview.chromium.org/1387283002/diff/60001/cc/output/overlay_strategy_single_on_top.cc File cc/output/overlay_strategy_single_on_top.cc (left): https://codereview.chromium.org/1387283002/diff/60001/cc/output/overlay_strategy_single_on_top.cc#oldcode23 cc/output/overlay_strategy_single_on_top.cc:23: QuadList& quad_list = render_passes->back()->quad_list; FYI, the ...
5 years, 2 months ago (2015-10-08 04:07:14 UTC) #17
ccameron
Thanks! https://codereview.chromium.org/1387283002/diff/60001/cc/output/overlay_strategy_single_on_top.cc File cc/output/overlay_strategy_single_on_top.cc (left): https://codereview.chromium.org/1387283002/diff/60001/cc/output/overlay_strategy_single_on_top.cc#oldcode23 cc/output/overlay_strategy_single_on_top.cc:23: QuadList& quad_list = render_passes->back()->quad_list; On 2015/10/08 04:07:14, dcheng ...
5 years, 2 months ago (2015-10-08 04:36:51 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1387283002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1387283002/80001
5 years, 2 months ago (2015-10-08 04:37:36 UTC) #21
dcheng
https://codereview.chromium.org/1387283002/diff/60001/cc/output/overlay_strategy_single_on_top.cc File cc/output/overlay_strategy_single_on_top.cc (left): https://codereview.chromium.org/1387283002/diff/60001/cc/output/overlay_strategy_single_on_top.cc#oldcode23 cc/output/overlay_strategy_single_on_top.cc:23: QuadList& quad_list = render_passes->back()->quad_list; On 2015/10/08 at 04:36:51, ccameron ...
5 years, 2 months ago (2015-10-08 04:45:20 UTC) #22
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/107720)
5 years, 2 months ago (2015-10-08 04:45:26 UTC) #24
ccameron
On 2015/10/08 04:45:26, commit-bot: I haz the power wrote: > Try jobs failed on following ...
5 years, 2 months ago (2015-10-08 05:12:52 UTC) #25
ccameron
https://codereview.chromium.org/1387283002/diff/80001/cc/output/overlay_strategy_single_on_top.cc File cc/output/overlay_strategy_single_on_top.cc (right): https://codereview.chromium.org/1387283002/diff/80001/cc/output/overlay_strategy_single_on_top.cc#newcode42 cc/output/overlay_strategy_single_on_top.cc:42: for (auto overlap_iter : *quad_list) { Hmm, this broke ...
5 years, 2 months ago (2015-10-08 05:22:19 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1387283002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1387283002/100001
5 years, 2 months ago (2015-10-08 05:23:07 UTC) #29
dcheng
https://codereview.chromium.org/1387283002/diff/80001/cc/output/overlay_strategy_single_on_top.cc File cc/output/overlay_strategy_single_on_top.cc (right): https://codereview.chromium.org/1387283002/diff/80001/cc/output/overlay_strategy_single_on_top.cc#newcode42 cc/output/overlay_strategy_single_on_top.cc:42: for (auto overlap_iter : *quad_list) { On 2015/10/08 at ...
5 years, 2 months ago (2015-10-08 05:44:15 UTC) #30
commit-bot: I haz the power
Try jobs failed on following builders: linux_blink_rel on tryserver.blink (JOB_FAILED, http://build.chromium.org/p/tryserver.blink/builders/linux_blink_rel/builds/77945)
5 years, 2 months ago (2015-10-08 06:25:37 UTC) #32
danakj
On 2015/10/08 05:12:52, ccameron wrote: > On 2015/10/08 04:45:26, commit-bot: I haz the power wrote: ...
5 years, 2 months ago (2015-10-08 16:24:39 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1387283002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1387283002/100001
5 years, 2 months ago (2015-10-08 18:57:45 UTC) #35
ccameron
On 2015/10/08 05:44:15, dcheng wrote: > https://codereview.chromium.org/1387283002/diff/80001/cc/output/overlay_strategy_single_on_top.cc > File cc/output/overlay_strategy_single_on_top.cc (right): > > https://codereview.chromium.org/1387283002/diff/80001/cc/output/overlay_strategy_single_on_top.cc#newcode42 > ...
5 years, 2 months ago (2015-10-08 19:01:29 UTC) #36
weiliangc
On 2015/10/08 at 19:01:29, ccameron wrote: > On 2015/10/08 05:44:15, dcheng wrote: > > https://codereview.chromium.org/1387283002/diff/80001/cc/output/overlay_strategy_single_on_top.cc ...
5 years, 2 months ago (2015-10-08 20:00:09 UTC) #37
commit-bot: I haz the power
Committed patchset #6 (id:100001)
5 years, 2 months ago (2015-10-08 20:23:55 UTC) #38
commit-bot: I haz the power
5 years, 2 months ago (2015-10-08 20:25:22 UTC) #39
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/268c09fdae64b08957aba9b31797adb93525c90f
Cr-Commit-Position: refs/heads/master@{#353128}

Powered by Google App Engine
This is Rietveld 408576698