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

Issue 197223003: Start of hardware overlay support in CC with Ubercompositor. (Closed)

Created:
6 years, 9 months ago by alexst (slow to review)
Modified:
6 years, 9 months ago
Reviewers:
piman, enne (OOO)
CC:
chromium-reviews, cc-bugs_chromium.org, danakj
Visibility:
Public.

Description

Start of hardware overlay support in CC with Ubercompositor. I'm trying to introduce everything as small unit tested pieces. This adds some machinery for checking if quads inside a render pass could be placed into an overlay. A capability checker is added to the output surface, so that a particular overlay configuration could be validated against a specific display device. If an external monitor is plugged in, its output surface may behave differently that that of the primary on a laptop, for example. The intention is for OverlayCandidates checker to be created as part of BrowserCompositorOutputSurface where the actual hardware knowledge can be delegated to the Ozone platform and the HW specific bits can live there, leaving CC and content platform agnostic. BUG= Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=258209

Patch Set 1 #

Total comments: 49

Patch Set 2 : #

Patch Set 3 : Comments #

Total comments: 3

Patch Set 4 : nits #

Total comments: 3

Patch Set 5 : #

Patch Set 6 : More safety, more tests. #

Patch Set 7 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+811 lines, -19 lines) Patch
M cc/cc.gyp View 1 2 3 4 1 chunk +7 lines, -0 lines 0 comments Download
M cc/cc_tests.gyp View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M cc/output/output_surface.h View 1 3 chunks +7 lines, -0 lines 0 comments Download
A cc/output/overlay_candidate.h View 1 2 3 4 5 6 1 chunk +46 lines, -0 lines 0 comments Download
A cc/output/overlay_candidate.cc View 1 2 3 1 chunk +17 lines, -0 lines 0 comments Download
A cc/output/overlay_candidate_validator.h View 1 1 chunk +35 lines, -0 lines 0 comments Download
A cc/output/overlay_processor.h View 1 2 3 4 5 6 1 chunk +48 lines, -0 lines 0 comments Download
A cc/output/overlay_processor.cc View 1 1 chunk +42 lines, -0 lines 0 comments Download
A cc/output/overlay_strategy_single_on_top.h View 1 2 3 4 5 6 1 chunk +31 lines, -0 lines 0 comments Download
A cc/output/overlay_strategy_single_on_top.cc View 1 2 3 4 1 chunk +81 lines, -0 lines 0 comments Download
A cc/output/overlay_unittest.cc View 1 2 3 4 5 6 1 chunk +426 lines, -0 lines 0 comments Download
M cc/quads/render_pass.h View 1 2 3 chunks +9 lines, -1 line 0 comments Download
M cc/quads/render_pass.cc View 1 2 5 chunks +11 lines, -5 lines 0 comments Download
M cc/quads/render_pass_unittest.cc View 1 2 7 chunks +15 lines, -4 lines 0 comments Download
M cc/resources/resource_provider.h View 1 2 chunks +2 lines, -0 lines 0 comments Download
M cc/resources/resource_provider.cc View 1 2 3 4 3 chunks +7 lines, -0 lines 0 comments Download
M cc/resources/texture_mailbox.h View 1 2 chunks +4 lines, -0 lines 0 comments Download
M cc/resources/texture_mailbox.cc View 1 1 chunk +9 lines, -3 lines 0 comments Download
M cc/surfaces/surface_aggregator.cc View 1 2 chunks +4 lines, -2 lines 0 comments Download
M content/common/cc_messages.cc View 1 2 chunks +3 lines, -1 line 0 comments Download
M content/common/cc_messages_unittest.cc View 1 2 3 4 5 6 3 chunks +6 lines, -3 lines 0 comments Download

Messages

Total messages: 28 (0 generated)
alexst (slow to review)
Please take a look at the first of n patched in CC overlay work. I ...
6 years, 9 months ago (2014-03-12 15:05:40 UTC) #1
piman
+danakj in cc so that more people can get familiar with this new code and ...
6 years, 9 months ago (2014-03-14 03:42:33 UTC) #2
enne (OOO)
https://codereview.chromium.org/197223003/diff/1/cc/output/overlay_candidates.h File cc/output/overlay_candidates.h (right): https://codereview.chromium.org/197223003/diff/1/cc/output/overlay_candidates.h#newcode19 cc/output/overlay_candidates.h:19: class CC_EXPORT OverlayCandidates { bikeshed: If it answers questions, ...
6 years, 9 months ago (2014-03-14 18:13:41 UTC) #3
alexst (slow to review)
Preparing new patch, thank you for the comments, enne, piman. https://codereview.chromium.org/197223003/diff/1/cc/output/overlay_candidates.h File cc/output/overlay_candidates.h (right): https://codereview.chromium.org/197223003/diff/1/cc/output/overlay_candidates.h#newcode19 ...
6 years, 9 months ago (2014-03-14 19:54:21 UTC) #4
alexst (slow to review)
PTAL
6 years, 9 months ago (2014-03-18 14:16:43 UTC) #5
enne (OOO)
lgtm % piman https://codereview.chromium.org/197223003/diff/30001/cc/output/overlay_candidate.cc File cc/output/overlay_candidate.cc (right): https://codereview.chromium.org/197223003/diff/30001/cc/output/overlay_candidate.cc#newcode12 cc/output/overlay_candidate.cc:12: uv_rect(0, 0, 1, 1), nit: Chrome ...
6 years, 9 months ago (2014-03-18 17:35:13 UTC) #6
piman
Couple of things left, mostly being conservative about rejects, and nits. https://codereview.chromium.org/197223003/diff/50001/cc/output/overlay_strategy_single_on_top.cc File cc/output/overlay_strategy_single_on_top.cc (right): ...
6 years, 9 months ago (2014-03-18 23:46:07 UTC) #7
alexst (slow to review)
Addressed comments, more conservative protection added, plus more tests to verify it all. PTAL
6 years, 9 months ago (2014-03-19 16:17:26 UTC) #8
piman
lgtm
6 years, 9 months ago (2014-03-19 16:34:39 UTC) #9
alexst (slow to review)
The CQ bit was checked by alexst@chromium.org
6 years, 9 months ago (2014-03-19 16:49:48 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/alexst@chromium.org/197223003/80001
6 years, 9 months ago (2014-03-19 16:50:50 UTC) #11
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-19 16:54:20 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on linux_chromium_clang_dbg
6 years, 9 months ago (2014-03-19 16:54:21 UTC) #13
alexst (slow to review)
The CQ bit was checked by alexst@chromium.org
6 years, 9 months ago (2014-03-19 17:02:18 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/alexst@chromium.org/197223003/80001
6 years, 9 months ago (2014-03-19 17:03:39 UTC) #15
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-19 17:09:59 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on linux_chromium_clang_dbg
6 years, 9 months ago (2014-03-19 17:10:00 UTC) #17
alexst (slow to review)
The CQ bit was checked by alexst@chromium.org
6 years, 9 months ago (2014-03-19 17:40:03 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/alexst@chromium.org/197223003/100001
6 years, 9 months ago (2014-03-19 17:40:58 UTC) #19
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-19 18:00:21 UTC) #20
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on linux_chromium_clang_dbg
6 years, 9 months ago (2014-03-19 18:00:22 UTC) #21
alexst (slow to review)
The CQ bit was checked by alexst@chromium.org
6 years, 9 months ago (2014-03-19 21:38:14 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/alexst@chromium.org/197223003/140001
6 years, 9 months ago (2014-03-19 21:38:48 UTC) #23
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-19 22:06:48 UTC) #24
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on win_chromium_compile_dbg
6 years, 9 months ago (2014-03-19 22:06:49 UTC) #25
alexst (slow to review)
The CQ bit was checked by alexst@chromium.org
6 years, 9 months ago (2014-03-19 23:22:15 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/alexst@chromium.org/197223003/160001
6 years, 9 months ago (2014-03-19 23:23:25 UTC) #27
commit-bot: I haz the power
6 years, 9 months ago (2014-03-20 05:56:42 UTC) #28
Message was sent while issue was closed.
Change committed as 258209

Powered by Google App Engine
This is Rietveld 408576698