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

Issue 2508203004: Add hints for potential overlay promotion on android. (Closed)

Created:
4 years, 1 month ago by liberato (no reviews please)
Modified:
4 years ago
Reviewers:
watk, dcheng, piman
CC:
chromium-reviews, feature-media-reviews_chromium.org, qsr+mojo_chromium.org, droger+watchlist_chromium.org, viettrungluu+watch_chromium.org, posciak+watch_chromium.org, blundell+watchlist_chromium.org, sdefresne+watchlist_chromium.org, yzshen+watch_chromium.org, abarth-chromium, Aaron Boodman, piman+watch_chromium.org, cc-bugs_chromium.org, darin (slow to review)
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Overlay promotion on android is tricky, in that one must know in advance whether to use a SurfaceView for the overlay or not. If the overlay turns out to be skipped for promotion by chrome's overlay processor, then it simply won't be visible. This CL adds functionality for a resource to request a hint about whether it would be promoted or not, even though it's not backed by a SurfaceView. This allows the producer of the resource to decide whether SurfaceView is appropriate or not. Initial use case will be AndroidVideoDecodeAccelerator, which likes to promote to SV as much as possible for power savings. BUG=671354 CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_trusty_blink_rel Committed: https://crrev.com/304dc19797fefea519996ef33919b61513716af8 Cr-Commit-Position: refs/heads/master@{#437643}

Patch Set 1 #

Total comments: 7

Patch Set 2 : #include and comment cleanup #

Total comments: 6

Patch Set 3 : hints => OverlayCandidateList, notifications => ResourceProvider #

Patch Set 4 : cleanup #

Total comments: 1

Patch Set 5 : promotable_resources_ => promotable_resource_hints_ #

Total comments: 12

Patch Set 6 : actually works now. #

Patch Set 7 : added unit test #

Patch Set 8 : fixing bot failures #

Patch Set 9 : fixed more build errors #

Patch Set 10 : added CC_EXPORT #

Total comments: 6

Patch Set 11 : default operator= for OverlayCandidateList #

Patch Set 12 : replaced AVDA changes with TODO #

Total comments: 2

Patch Set 13 : added TODO, fixed comments #

Patch Set 14 : rebased #

Unified diffs Side-by-side diffs Delta from patch set Stats (+503 lines, -53 lines) Patch
M cc/base/resource_id.h View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M cc/ipc/cc_param_traits_macros.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +4 lines, -0 lines 0 comments Download
M cc/ipc/cc_param_traits_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +12 lines, -0 lines 0 comments Download
M cc/ipc/transferable_resource.mojom View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M cc/ipc/transferable_resource_struct_traits.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +21 lines, -0 lines 0 comments Download
M cc/ipc/transferable_resource_struct_traits.cc View 1 2 3 4 5 6 7 1 chunk +4 lines, -0 lines 0 comments Download
M cc/output/overlay_candidate.h View 1 2 3 4 5 6 7 8 9 3 chunks +27 lines, -1 line 0 comments Download
M cc/output/overlay_candidate.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +26 lines, -1 line 0 comments Download
M cc/output/overlay_processor.cc View 1 2 3 4 5 6 7 8 2 chunks +33 lines, -0 lines 0 comments Download
M cc/output/overlay_strategy_underlay.cc View 1 2 3 4 5 1 chunk +12 lines, -0 lines 0 comments Download
M cc/resources/resource_provider.h View 1 2 3 4 5 6 5 chunks +38 lines, -1 line 0 comments Download
M cc/resources/resource_provider.cc View 1 2 3 4 5 6 7 8 9 10 11 chunks +75 lines, -2 lines 0 comments Download
M cc/resources/resource_provider_unittest.cc View 1 2 3 4 5 6 31 chunks +131 lines, -36 lines 0 comments Download
M cc/resources/texture_mailbox.h View 1 2 3 4 5 6 2 chunks +21 lines, -0 lines 0 comments Download
M cc/resources/texture_mailbox.cc View 1 2 3 chunks +26 lines, -9 lines 0 comments Download
M cc/resources/transferable_resource.h View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M cc/resources/transferable_resource.cc View 1 2 1 chunk +6 lines, -1 line 0 comments Download
M cc/resources/video_resource_updater.cc View 1 2 1 chunk +6 lines, -0 lines 0 comments Download
M cc/surfaces/surface_aggregator.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -1 line 0 comments Download
M components/display_compositor/DEPS View 1 chunk +1 line, -0 lines 0 comments Download
M components/display_compositor/compositor_overlay_candidate_validator_android.cc View 1 2 3 4 5 1 chunk +11 lines, -0 lines 0 comments Download
M media/base/video_frame_metadata.h View 1 2 1 chunk +10 lines, -0 lines 0 comments Download
M media/filters/gpu_video_decoder.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +6 lines, -0 lines 0 comments Download
M media/gpu/android_video_decode_accelerator.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -0 lines 0 comments Download
M media/gpu/ipc/client/gpu_video_decode_accelerator_host.cc View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M media/gpu/ipc/common/media_messages.h View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M media/gpu/ipc/service/gpu_video_decode_accelerator.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +2 lines, -0 lines 0 comments Download
M media/video/picture.h View 1 2 2 chunks +14 lines, -0 lines 0 comments Download
M media/video/picture.cc View 1 2 1 chunk +3 lines, -1 line 0 comments Download

Messages

Total messages: 74 (49 generated)
liberato (no reviews please)
Hi Here's a first pass at notifying GLStreamTextureImage about suitability for promotion to SurfaceView. From ...
4 years, 1 month ago (2016-11-19 18:25:52 UTC) #5
piman
Sorry for the review delay... At a high level, this seems reasonable. A few comments. ...
4 years ago (2016-11-23 00:37:25 UTC) #8
liberato (no reviews please)
sorry for the delay on this, and thanks for your previous feedback. here are the ...
4 years ago (2016-12-01 20:59:11 UTC) #9
piman
Yeah, the approach looks fine. Some comments, but nothing major. https://codereview.chromium.org/2508203004/diff/80001/cc/ipc/cc_param_traits_unittest.cc File cc/ipc/cc_param_traits_unittest.cc (right): https://codereview.chromium.org/2508203004/diff/80001/cc/ipc/cc_param_traits_unittest.cc#newcode211 ...
4 years ago (2016-12-01 21:55:25 UTC) #10
liberato (no reviews please)
added a new unit test for |ResourceProvider::wants_promotion_hints_set_|, which is the cache of resources that would ...
4 years ago (2016-12-05 18:14:01 UTC) #29
piman
LGTM + couple nits Let's land this and do the GL bits right afterwards. https://codereview.chromium.org/2508203004/diff/180001/cc/output/overlay_candidate.cc ...
4 years ago (2016-12-05 20:19:06 UTC) #30
piman
Oh, also, could you fix the CL description?
4 years ago (2016-12-05 20:20:31 UTC) #31
liberato (no reviews please)
piman: thanks for the feedback! watk: PTAL at media bits. TL;DR: just plumbs some extra ...
4 years ago (2016-12-05 21:50:48 UTC) #37
watk
media/ lgtm
4 years ago (2016-12-06 23:36:18 UTC) #38
dcheng
ipc lgtm (also leta => let?) https://codereview.chromium.org/2508203004/diff/220001/cc/ipc/transferable_resource_struct_traits.h File cc/ipc/transferable_resource_struct_traits.h (right): https://codereview.chromium.org/2508203004/diff/220001/cc/ipc/transferable_resource_struct_traits.h#newcode54 cc/ipc/transferable_resource_struct_traits.h:54: // TransferableResource has ...
4 years ago (2016-12-07 03:34:50 UTC) #39
liberato (no reviews please)
thanks for the help, everybody! -fl https://codereview.chromium.org/2508203004/diff/220001/cc/ipc/transferable_resource_struct_traits.h File cc/ipc/transferable_resource_struct_traits.h (right): https://codereview.chromium.org/2508203004/diff/220001/cc/ipc/transferable_resource_struct_traits.h#newcode54 cc/ipc/transferable_resource_struct_traits.h:54: // TransferableResource has ...
4 years ago (2016-12-07 17:38:29 UTC) #40
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/2508203004/240001
4 years ago (2016-12-07 17:39:15 UTC) #43
commit-bot: I haz the power
Failed to apply patch for cc/ipc/cc_param_traits_unittest.cc: While running git apply --index -p1; error: patch failed: ...
4 years ago (2016-12-07 20:13:37 UTC) #45
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/2508203004/260001
4 years ago (2016-12-07 21:12:56 UTC) #48
commit-bot: I haz the power
Try jobs failed on following builders: android_n5x_swarming_rel on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_n5x_swarming_rel/builds/81485)
4 years ago (2016-12-07 23:03:12 UTC) #50
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/2508203004/260001
4 years ago (2016-12-08 16:58:26 UTC) #52
commit-bot: I haz the power
Try jobs failed on following builders: android_n5x_swarming_rel on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_n5x_swarming_rel/builds/82439)
4 years ago (2016-12-08 18:19:50 UTC) #54
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/2508203004/260001
4 years ago (2016-12-08 23:18:49 UTC) #56
commit-bot: I haz the power
Try jobs failed on following builders: cast_shell_android on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/cast_shell_android/builds/177501) mac_chromium_compile_dbg_ng on master.tryserver.chromium.mac (JOB_FAILED, ...
4 years ago (2016-12-08 23:36:41 UTC) #58
liberato (no reviews please)
On 2016/12/08 23:36:41, commit-bot: I haz the power wrote: > Try jobs failed on following ...
4 years ago (2016-12-09 05:59:55 UTC) #59
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/2508203004/260001
4 years ago (2016-12-09 06:00:25 UTC) #61
commit-bot: I haz the power
Try jobs failed on following builders: linux_trusty_blink_rel on master.tryserver.blink (JOB_FAILED, http://build.chromium.org/p/tryserver.blink/builders/linux_trusty_blink_rel/builds/2498)
4 years ago (2016-12-09 06:47:20 UTC) #63
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/2508203004/260001
4 years ago (2016-12-09 20:10:12 UTC) #69
commit-bot: I haz the power
Committed patchset #14 (id:260001)
4 years ago (2016-12-09 20:56:09 UTC) #72
commit-bot: I haz the power
4 years ago (2016-12-12 14:40:31 UTC) #74
Message was sent while issue was closed.
Patchset 14 (id:??) landed as
https://crrev.com/304dc19797fefea519996ef33919b61513716af8
Cr-Commit-Position: refs/heads/master@{#437643}

Powered by Google App Engine
This is Rietveld 408576698