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

Issue 2749783006: cc: Enable non-opaque harware overlays. (Closed)

Created:
3 years, 9 months ago by Daniele Castagna
Modified:
3 years, 9 months ago
Reviewers:
reveman, halliwell
CC:
cc-bugs_chromium.org, chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

cc: Enable non-opaque harware overlays. This CL enables alpha-blended HW overlays. Additionally, it clears up the way overlay candidates might or might not be considered based on buffer format and alpha blending requested: - An opacity on the quad different than 1 will cause the candidate to always be rejected since we can't modulate the alpha of an overlay plane. - We support only kSrc (no blending) and kSrcOver (blend) blending modes. - For fullscreen overlays we can allow both blending modes as long as the opaque rect is as big as the buffer (ShouldDrawWithBlending() true). An opaque FD will always be used in this case (crrev.com/2743403005). - For non-fullscreen overlays, we can't allow kSrc if the buffer has a format with an alpha channel, since the alpha channel might not be initialized and we don't disable blending when scanning out yet. BUG=695296 CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_trusty_blink_rel Review-Url: https://codereview.chromium.org/2749783006 Cr-Commit-Position: refs/heads/master@{#457528} Committed: https://chromium.googlesource.com/chromium/src/+/21fe8132924302ea1d830c3df055725cd9efeb8b

Patch Set 1 #

Patch Set 2 : Fix comments. #

Total comments: 6

Patch Set 3 : Blank lines! #

Unified diffs Side-by-side diffs Delta from patch set Stats (+27 lines, -8 lines) Patch
M cc/output/overlay_candidate.cc View 1 1 chunk +6 lines, -3 lines 0 comments Download
M cc/output/overlay_strategy_fullscreen.cc View 1 chunk +1 line, -3 lines 0 comments Download
M cc/output/overlay_strategy_single_on_top.cc View 1 2 2 chunks +17 lines, -0 lines 0 comments Download
M cc/output/overlay_unittest.cc View 2 chunks +3 lines, -2 lines 0 comments Download

Messages

Total messages: 16 (8 generated)
Daniele Castagna
I haven't tested this on a real device yet. If you want to start taking ...
3 years, 9 months ago (2017-03-16 04:49:16 UTC) #5
reveman
lgtm https://codereview.chromium.org/2749783006/diff/20001/cc/output/overlay_strategy_single_on_top.cc File cc/output/overlay_strategy_single_on_top.cc (right): https://codereview.chromium.org/2749783006/diff/20001/cc/output/overlay_strategy_single_on_top.cc#newcode14 cc/output/overlay_strategy_single_on_top.cc:14: nit: remove blank line https://codereview.chromium.org/2749783006/diff/20001/cc/output/overlay_strategy_single_on_top.cc#newcode16 cc/output/overlay_strategy_single_on_top.cc:16: const gfx::BufferFormat ...
3 years, 9 months ago (2017-03-16 04:57:34 UTC) #6
Daniele Castagna
https://codereview.chromium.org/2749783006/diff/20001/cc/output/overlay_strategy_single_on_top.cc File cc/output/overlay_strategy_single_on_top.cc (right): https://codereview.chromium.org/2749783006/diff/20001/cc/output/overlay_strategy_single_on_top.cc#newcode14 cc/output/overlay_strategy_single_on_top.cc:14: On 2017/03/16 at 04:57:34, reveman wrote: > nit: remove ...
3 years, 9 months ago (2017-03-16 05:04:20 UTC) #7
reveman
FYI, tested this with laser pointer code and it works perfectly
3 years, 9 months ago (2017-03-16 13:08:38 UTC) #8
Daniele Castagna
+halliwell in case this might break something Chromecast related.
3 years, 9 months ago (2017-03-16 17:52:28 UTC) #9
halliwell
On 2017/03/16 17:52:28, Daniele Castagna wrote: > +halliwell in case this might break something Chromecast ...
3 years, 9 months ago (2017-03-16 18:14:27 UTC) #10
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/2749783006/40001
3 years, 9 months ago (2017-03-16 18:16:17 UTC) #13
commit-bot: I haz the power
3 years, 9 months ago (2017-03-16 20:05:07 UTC) #16
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/21fe8132924302ea1d830c3df055...

Powered by Google App Engine
This is Rietveld 408576698