|
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}
Total comments: 7
Total comments: 6
Total comments: 1
Total comments: 12
Total comments: 6
Total comments: 2
|
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
|
Total messages: 74 (49 generated)
|