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

Issue 1142343008: cc: Rework overlays to not use the ResourceProvider and pass texture size (Closed)

Created:
5 years, 6 months ago by achaulk
Modified:
5 years, 4 months ago
Reviewers:
danakj, palmer, Nico
CC:
chromium-reviews, ozone-reviews_chromium.org, jam, sievers+watch_chromium.org, jbauman+watch_chromium.org, feature-media-reviews_chromium.org, darin-cc_chromium.org, kalyank, piman+watch_chromium.org, cc-bugs_chromium.org, danakj+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

cc: Rework overlays to not use the ResourceProvider and pass texture size Instead of querying the ResourceProvider, the size & overlay flag are stored in the quads directly. This eliminates the lookups that were otherwise required CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel TBR=jam (approved interface change) Committed: https://crrev.com/f89f594219da597c20b749fee195977052c6f709 Cr-Commit-Position: refs/heads/master@{#333748}

Patch Set 1 #

Total comments: 27

Patch Set 2 : #

Total comments: 12

Patch Set 3 : #

Patch Set 4 : remove ozone change (in another CL) / fix pre presubmits #

Patch Set 5 : rebase #

Total comments: 2

Patch Set 6 : move overlay vars out of DrawQuad::Resources #

Total comments: 6

Patch Set 7 : fix nits #

Patch Set 8 : mojo rect->size #

Patch Set 9 : fix tests #

Patch Set 10 : fix more tests #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+351 lines, -261 lines) Patch
M cc/blink/web_external_texture_layer_impl.cc View 1 1 chunk +3 lines, -3 lines 0 comments Download
M cc/layers/texture_layer_impl.cc View 1 2 3 4 3 chunks +10 lines, -8 lines 0 comments Download
M cc/layers/video_layer_impl.h View 1 1 chunk +10 lines, -1 line 0 comments Download
M cc/layers/video_layer_impl.cc View 1 2 3 6 chunks +17 lines, -22 lines 0 comments Download
M cc/output/direct_renderer.cc View 1 2 3 4 1 chunk +1 line, -2 lines 0 comments Download
M cc/output/gl_renderer_unittest.cc View 1 2 3 4 5 6 7 8 9 8 chunks +11 lines, -13 lines 0 comments Download
M cc/output/overlay_candidate.h View 1 1 chunk +2 lines, -0 lines 0 comments Download
M cc/output/overlay_processor.h View 1 2 3 2 chunks +1 line, -2 lines 0 comments Download
M cc/output/overlay_processor.cc View 1 chunk +6 lines, -9 lines 0 comments Download
M cc/output/overlay_strategy_common.h View 2 chunks +1 line, -5 lines 0 comments Download
M cc/output/overlay_strategy_common.cc View 1 2 3 4 3 chunks +5 lines, -11 lines 0 comments Download
M cc/output/overlay_strategy_single_on_top.h View 1 2 3 1 chunk +4 lines, -2 lines 0 comments Download
M cc/output/overlay_strategy_single_on_top.cc View 1 2 3 4 1 chunk +2 lines, -3 lines 0 comments Download
M cc/output/overlay_strategy_underlay.h View 1 2 3 1 chunk +4 lines, -2 lines 0 comments Download
M cc/output/overlay_strategy_underlay.cc View 1 2 3 1 chunk +2 lines, -3 lines 0 comments Download
M cc/output/overlay_unittest.cc View 1 2 3 4 5 6 7 8 9 8 chunks +18 lines, -17 lines 0 comments Download
M cc/quads/draw_quad_unittest.cc View 1 2 3 4 5 6 7 8 9 5 chunks +33 lines, -14 lines 0 comments Download
M cc/quads/stream_video_draw_quad.h View 1 2 3 4 5 2 chunks +18 lines, -0 lines 0 comments Download
M cc/quads/stream_video_draw_quad.cc View 1 2 3 4 5 6 3 chunks +13 lines, -0 lines 0 comments Download
M cc/quads/texture_draw_quad.h View 1 2 3 4 5 2 chunks +22 lines, -0 lines 0 comments Download
M cc/quads/texture_draw_quad.cc View 1 2 3 4 5 6 3 chunks +9 lines, -0 lines 2 comments Download
M cc/resources/resource_provider.h View 1 2 3 4 2 chunks +0 lines, -2 lines 0 comments Download
M cc/resources/resource_provider.cc View 1 2 3 4 8 chunks +1 line, -12 lines 0 comments Download
M cc/resources/resource_provider_unittest.cc View 1 2 3 1 chunk +0 lines, -49 lines 0 comments Download
M cc/resources/texture_mailbox.h View 1 2 chunks +10 lines, -4 lines 0 comments Download
M cc/resources/texture_mailbox.cc View 1 2 chunks +17 lines, -4 lines 0 comments Download
M cc/resources/video_resource_updater.cc View 1 2 3 4 1 chunk +2 lines, -3 lines 0 comments Download
M cc/surfaces/surface_aggregator_perftest.cc View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -2 lines 0 comments Download
M cc/surfaces/surface_aggregator_unittest.cc View 1 2 3 4 1 chunk +4 lines, -13 lines 0 comments Download
M cc/test/render_pass_test_common.cc View 1 2 1 chunk +2 lines, -6 lines 0 comments Download
M content/browser/compositor/browser_compositor_overlay_candidate_validator_ozone.cc View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M content/common/cc_messages.h View 1 2 3 4 5 3 chunks +18 lines, -0 lines 0 comments Download
M content/common/cc_messages.cc View 1 2 3 4 5 6 1 chunk +72 lines, -0 lines 0 comments Download
M content/common/cc_messages_unittest.cc View 1 2 3 4 5 chunks +15 lines, -17 lines 0 comments Download
M mojo/converters/surfaces/surfaces_type_converters.cc View 1 2 3 4 5 6 7 1 chunk +4 lines, -8 lines 0 comments Download
M mojo/converters/surfaces/tests/surface_unittest.cc View 1 2 3 4 5 6 7 8 2 chunks +10 lines, -24 lines 0 comments Download

Messages

Total messages: 39 (11 generated)
achaulk
This combines both of the other CLs
5 years, 6 months ago (2015-05-28 16:11:41 UTC) #2
danakj
Oops, sorry for slowness. I got halfway thru review and then distracted. I like this ...
5 years, 6 months ago (2015-05-29 20:04:16 UTC) #3
achaulk
https://codereview.chromium.org/1142343008/diff/1/cc/blink/web_external_texture_layer_impl.cc File cc/blink/web_external_texture_layer_impl.cc (right): https://codereview.chromium.org/1142343008/diff/1/cc/blink/web_external_texture_layer_impl.cc#newcode91 cc/blink/web_external_texture_layer_impl.cc:91: gfx::Size(), client_mailbox.allowOverlay); On 2015/05/29 20:04:14, danakj wrote: > TODO ...
5 years, 6 months ago (2015-06-01 15:43:10 UTC) #4
danakj
https://codereview.chromium.org/1142343008/diff/20001/cc/layers/video_layer_impl.cc File cc/layers/video_layer_impl.cc (right): https://codereview.chromium.org/1142343008/diff/20001/cc/layers/video_layer_impl.cc#newcode317 cc/layers/video_layer_impl.cc:317: stream_video_quad->resource_size_in_pixels = Can you add these to the SetNew ...
5 years, 6 months ago (2015-06-01 17:31:30 UTC) #5
achaulk
https://codereview.chromium.org/1142343008/diff/20001/cc/output/overlay_unittest.cc File cc/output/overlay_unittest.cc (right): https://codereview.chromium.org/1142343008/diff/20001/cc/output/overlay_unittest.cc#newcode198 cc/output/overlay_unittest.cc:198: overlay_quad->allow_overlay = allow_overlay; On 2015/06/01 17:31:29, danakj wrote: > ...
5 years, 6 months ago (2015-06-01 21:27:22 UTC) #6
danakj
https://codereview.chromium.org/1142343008/diff/20001/cc/output/overlay_unittest.cc File cc/output/overlay_unittest.cc (right): https://codereview.chromium.org/1142343008/diff/20001/cc/output/overlay_unittest.cc#newcode198 cc/output/overlay_unittest.cc:198: overlay_quad->allow_overlay = allow_overlay; On 2015/06/01 21:27:22, achaulk wrote: > ...
5 years, 6 months ago (2015-06-01 21:36:43 UTC) #7
achaulk
https://codereview.chromium.org/1142343008/diff/20001/cc/layers/video_layer_impl.cc File cc/layers/video_layer_impl.cc (right): https://codereview.chromium.org/1142343008/diff/20001/cc/layers/video_layer_impl.cc#newcode317 cc/layers/video_layer_impl.cc:317: stream_video_quad->resource_size_in_pixels = On 2015/06/01 17:31:29, danakj wrote: > Can ...
5 years, 6 months ago (2015-06-02 19:06:51 UTC) #8
danakj
LGTM
5 years, 6 months ago (2015-06-02 19:55:41 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1142343008/60001
5 years, 6 months ago (2015-06-05 17:06:59 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_compile_dbg_32_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_compile_dbg_32_ng/builds/60050) ios_dbg_simulator_ninja on tryserver.chromium.mac (JOB_FAILED, ...
5 years, 6 months ago (2015-06-05 17:12:15 UTC) #14
achaulk
dana PTAL at rebase with the resource_id being moved. I just added the overlay properties ...
5 years, 6 months ago (2015-06-05 18:07:31 UTC) #15
danakj
Sorry which struct? Can you point me to it?
5 years, 6 months ago (2015-06-05 18:10:03 UTC) #16
achaulk
Resources struct in draw_quad.h, the resource_ids recently got moved into there
5 years, 6 months ago (2015-06-05 18:11:02 UTC) #17
danakj
https://codereview.chromium.org/1142343008/diff/80001/cc/quads/draw_quad.h File cc/quads/draw_quad.h (right): https://codereview.chromium.org/1142343008/diff/80001/cc/quads/draw_quad.h#newcode128 cc/quads/draw_quad.h:128: gfx::Size size_in_pixels[kMaxResourceIdCount]; I don't think we should put this ...
5 years, 6 months ago (2015-06-05 18:13:26 UTC) #18
achaulk
https://codereview.chromium.org/1142343008/diff/80001/cc/quads/draw_quad.h File cc/quads/draw_quad.h (right): https://codereview.chromium.org/1142343008/diff/80001/cc/quads/draw_quad.h#newcode128 cc/quads/draw_quad.h:128: gfx::Size size_in_pixels[kMaxResourceIdCount]; On 2015/06/05 18:13:26, danakj wrote: > I ...
5 years, 6 months ago (2015-06-05 18:14:31 UTC) #19
achaulk
+palmer for IPC
5 years, 6 months ago (2015-06-05 20:02:06 UTC) #21
palmer
https://codereview.chromium.org/1142343008/diff/100001/content/common/cc_messages.cc File content/common/cc_messages.cc (right): https://codereview.chromium.org/1142343008/diff/100001/content/common/cc_messages.cc#newcode860 content/common/cc_messages.cc:860: for (size_t i = 0; i < cc::DrawQuad::Resources::kMaxResourceIdCount; ++i) ...
5 years, 6 months ago (2015-06-08 21:50:23 UTC) #22
achaulk
https://codereview.chromium.org/1142343008/diff/100001/content/common/cc_messages.cc File content/common/cc_messages.cc (right): https://codereview.chromium.org/1142343008/diff/100001/content/common/cc_messages.cc#newcode860 content/common/cc_messages.cc:860: for (size_t i = 0; i < cc::DrawQuad::Resources::kMaxResourceIdCount; ++i) ...
5 years, 6 months ago (2015-06-08 21:52:47 UTC) #23
palmer
https://codereview.chromium.org/1142343008/diff/100001/cc/quads/stream_video_draw_quad.cc File cc/quads/stream_video_draw_quad.cc (right): https://codereview.chromium.org/1142343008/diff/100001/cc/quads/stream_video_draw_quad.cc#newcode66 cc/quads/stream_video_draw_quad.cc:66: for (unsigned i = 0; i < Resources::kMaxResourceIdCount; i++) ...
5 years, 6 months ago (2015-06-08 22:28:13 UTC) #24
danakj
https://codereview.chromium.org/1142343008/diff/100001/content/common/cc_messages.cc File content/common/cc_messages.cc (right): https://codereview.chromium.org/1142343008/diff/100001/content/common/cc_messages.cc#newcode860 content/common/cc_messages.cc:860: for (size_t i = 0; i < cc::DrawQuad::Resources::kMaxResourceIdCount; ++i) ...
5 years, 6 months ago (2015-06-08 22:34:21 UTC) #25
palmer
I think I understand this better now. LGTM % nits.
5 years, 6 months ago (2015-06-09 00:01:50 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1142343008/120001
5 years, 6 months ago (2015-06-09 19:25:02 UTC) #29
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/69530)
5 years, 6 months ago (2015-06-09 19:34:47 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1142343008/180001
5 years, 6 months ago (2015-06-10 16:21:32 UTC) #34
commit-bot: I haz the power
Committed patchset #10 (id:180001)
5 years, 6 months ago (2015-06-10 17:01:42 UTC) #35
commit-bot: I haz the power
Patchset 10 (id:??) landed as https://crrev.com/f89f594219da597c20b749fee195977052c6f709 Cr-Commit-Position: refs/heads/master@{#333748}
5 years, 6 months ago (2015-06-10 17:02:40 UTC) #36
Nico
https://codereview.chromium.org/1142343008/diff/180001/cc/quads/texture_draw_quad.cc File cc/quads/texture_draw_quad.cc (right): https://codereview.chromium.org/1142343008/diff/180001/cc/quads/texture_draw_quad.cc#newcode48 cc/quads/texture_draw_quad.cc:48: this->vertex_opacity[0] = vertex_opacity[0]; Does SetNew() intentionally not write overlay_resources?
5 years, 4 months ago (2015-07-29 19:35:52 UTC) #38
danakj
5 years, 4 months ago (2015-07-29 20:05:31 UTC) #39
Message was sent while issue was closed.
https://codereview.chromium.org/1142343008/diff/180001/cc/quads/texture_draw_...
File cc/quads/texture_draw_quad.cc (right):

https://codereview.chromium.org/1142343008/diff/180001/cc/quads/texture_draw_...
cc/quads/texture_draw_quad.cc:48: this->vertex_opacity[0] = vertex_opacity[0];
On 2015/07/29 19:35:51, Nico wrote:
> Does SetNew() intentionally not write overlay_resources?

Ya they take default values. SetNew is like "most things only wanna set these
and leave others default".

Powered by Google App Engine
This is Rietveld 408576698