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

Issue 1304053016: Mac Overlays: Allow multiple overlays with sandwich strategy (Closed)

Created:
5 years, 3 months ago by Andre
Modified:
5 years, 3 months ago
CC:
chromium-reviews, cc-bugs_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@snapshot
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Mac Overlays: Allow multiple overlays with sandwich strategy. Allow multiple videos to be promoted to overlays, as long as they don't overlap. BUG=527222 CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel Committed: https://crrev.com/99750ddf53c9901b1e9f70c2f3c038f24df2c623 Cr-Commit-Position: refs/heads/master@{#347805}

Patch Set 1 #

Total comments: 18

Patch Set 2 : #

Patch Set 3 : For ccameron #

Patch Set 4 : Add tests #

Total comments: 4

Patch Set 5 : For alexst #

Total comments: 2

Patch Set 6 : For alexst #

Total comments: 8

Patch Set 7 : For ccameron #

Patch Set 8 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+198 lines, -121 lines) Patch
M cc/output/overlay_strategy_common.h View 1 2 3 4 5 2 chunks +20 lines, -11 lines 0 comments Download
M cc/output/overlay_strategy_common.cc View 1 2 3 4 5 6 7 4 chunks +37 lines, -20 lines 0 comments Download
M cc/output/overlay_strategy_sandwich.h View 1 2 1 chunk +6 lines, -6 lines 0 comments Download
M cc/output/overlay_strategy_sandwich.cc View 1 2 3 4 5 6 7 5 chunks +30 lines, -30 lines 0 comments Download
M cc/output/overlay_strategy_single_on_top.h View 1 2 1 chunk +6 lines, -6 lines 0 comments Download
M cc/output/overlay_strategy_single_on_top.cc View 1 2 3 4 5 6 7 1 chunk +15 lines, -24 lines 0 comments Download
M cc/output/overlay_strategy_underlay.h View 1 2 1 chunk +6 lines, -6 lines 0 comments Download
M cc/output/overlay_strategy_underlay.cc View 1 2 3 4 5 6 7 1 chunk +14 lines, -18 lines 0 comments Download
M cc/output/overlay_unittest.cc View 1 2 3 4 5 6 7 1 chunk +64 lines, -0 lines 0 comments Download

Messages

Total messages: 34 (11 generated)
Andre
ccameron WDYT? Am I missing an easier way to do this? If this is the ...
5 years, 3 months ago (2015-09-02 21:28:47 UTC) #2
ccameron
This looks like it should work. One style suggestion (pass iterators around by pointer), and ...
5 years, 3 months ago (2015-09-02 21:41:56 UTC) #3
Andre
Thanks! https://codereview.chromium.org/1304053016/diff/1/cc/base/list_container.h File cc/base/list_container.h (right): https://codereview.chromium.org/1304053016/diff/1/cc/base/list_container.h#newcode229 cc/base/list_container.h:229: // This function does not deallocate memory. On ...
5 years, 3 months ago (2015-09-02 21:54:51 UTC) #4
Andre
https://codereview.chromium.org/1304053016/diff/1/cc/base/list_container.h File cc/base/list_container.h (right): https://codereview.chromium.org/1304053016/diff/1/cc/base/list_container.h#newcode229 cc/base/list_container.h:229: // This function does not deallocate memory. On 2015/09/02 ...
5 years, 3 months ago (2015-09-02 22:08:52 UTC) #5
ccameron
https://codereview.chromium.org/1304053016/diff/1/cc/base/list_container.h File cc/base/list_container.h (right): https://codereview.chromium.org/1304053016/diff/1/cc/base/list_container.h#newcode229 cc/base/list_container.h:229: // This function does not deallocate memory. On 2015/09/02 ...
5 years, 3 months ago (2015-09-02 22:22:33 UTC) #6
Andre
ccameron PTAL. https://codereview.chromium.org/1304053016/diff/1/cc/base/list_container.h File cc/base/list_container.h (right): https://codereview.chromium.org/1304053016/diff/1/cc/base/list_container.h#newcode229 cc/base/list_container.h:229: // This function does not deallocate memory. ...
5 years, 3 months ago (2015-09-03 22:45:59 UTC) #10
Andre
https://codereview.chromium.org/1304053016/diff/110001/cc/output/overlay_strategy_single_on_top.cc File cc/output/overlay_strategy_single_on_top.cc (left): https://codereview.chromium.org/1304053016/diff/110001/cc/output/overlay_strategy_single_on_top.cc#oldcode27 cc/output/overlay_strategy_single_on_top.cc:27: draw_quad->shared_quad_state->quad_to_target_transform.TransformRect(&rect); This calculation should be the same as just ...
5 years, 3 months ago (2015-09-03 22:52:19 UTC) #11
Andre
alexst PTAL.
5 years, 3 months ago (2015-09-04 15:03:00 UTC) #13
alexst (slow to review)
lgtm is a nit. This should work and scale for other strategies. https://codereview.chromium.org/1304053016/diff/110001/cc/output/overlay_strategy_common.cc File cc/output/overlay_strategy_common.cc ...
5 years, 3 months ago (2015-09-04 15:32:10 UTC) #14
Andre
Thanks! https://codereview.chromium.org/1304053016/diff/110001/cc/output/overlay_strategy_common.cc File cc/output/overlay_strategy_common.cc (right): https://codereview.chromium.org/1304053016/diff/110001/cc/output/overlay_strategy_common.cc#newcode53 cc/output/overlay_strategy_common.cc:53: return true; On 2015/09/04 15:32:10, alexst wrote: > ...
5 years, 3 months ago (2015-09-04 17:22:47 UTC) #15
Andre
ccameron PTAL
5 years, 3 months ago (2015-09-04 17:23:00 UTC) #16
alexst (slow to review)
https://codereview.chromium.org/1304053016/diff/130001/cc/output/overlay_strategy_common.cc File cc/output/overlay_strategy_common.cc (right): https://codereview.chromium.org/1304053016/diff/130001/cc/output/overlay_strategy_common.cc#newcode52 cc/output/overlay_strategy_common.cc:52: if (result == CREATED_OVERLAY_STOP_LOOKING) { Actually, one more thought, ...
5 years, 3 months ago (2015-09-04 17:53:57 UTC) #17
Andre
https://codereview.chromium.org/1304053016/diff/130001/cc/output/overlay_strategy_common.cc File cc/output/overlay_strategy_common.cc (right): https://codereview.chromium.org/1304053016/diff/130001/cc/output/overlay_strategy_common.cc#newcode52 cc/output/overlay_strategy_common.cc:52: if (result == CREATED_OVERLAY_STOP_LOOKING) { On 2015/09/04 17:53:57, alexst ...
5 years, 3 months ago (2015-09-08 16:55:37 UTC) #18
ccameron
lgtm % small variable name nits. https://codereview.chromium.org/1304053016/diff/150001/cc/output/overlay_strategy_common.cc File cc/output/overlay_strategy_common.cc (right): https://codereview.chromium.org/1304053016/diff/150001/cc/output/overlay_strategy_common.cc#newcode42 cc/output/overlay_strategy_common.cc:42: bool success = ...
5 years, 3 months ago (2015-09-08 17:16:06 UTC) #19
alexst (slow to review)
lgtm
5 years, 3 months ago (2015-09-08 17:18:01 UTC) #20
Andre
https://codereview.chromium.org/1304053016/diff/150001/cc/output/overlay_strategy_common.cc File cc/output/overlay_strategy_common.cc (right): https://codereview.chromium.org/1304053016/diff/150001/cc/output/overlay_strategy_common.cc#newcode42 cc/output/overlay_strategy_common.cc:42: bool success = false; On 2015/09/08 17:16:06, ccameron wrote: ...
5 years, 3 months ago (2015-09-08 17:30:03 UTC) #21
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1304053016/170001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1304053016/170001
5 years, 3 months ago (2015-09-08 17:30:44 UTC) #23
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: ios_dbg_simulator_ninja on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios_dbg_simulator_ninja/builds/66642) ios_rel_device_ninja on ...
5 years, 3 months ago (2015-09-08 17:32:55 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/1304053016/190001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1304053016/190001
5 years, 3 months ago (2015-09-08 19:35:28 UTC) #27
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 3 months ago (2015-09-08 21:52:17 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1304053016/190001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1304053016/190001
5 years, 3 months ago (2015-09-08 21:53:18 UTC) #32
commit-bot: I haz the power
Committed patchset #8 (id:190001)
5 years, 3 months ago (2015-09-08 22:00:41 UTC) #33
commit-bot: I haz the power
5 years, 3 months ago (2015-09-08 22:01:32 UTC) #34
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/99750ddf53c9901b1e9f70c2f3c038f24df2c623
Cr-Commit-Position: refs/heads/master@{#347805}

Powered by Google App Engine
This is Rietveld 408576698