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

Issue 2140783002: services/ui: Detect when a video is playing (Closed)

Created:
4 years, 5 months ago by sadrul
Modified:
4 years, 4 months ago
CC:
Aaron Boodman, abarth-chromium, ben+mojo_chromium.org, cc-bugs_chromium.org, chromium-reviews, danakj+watch_chromium.org, darin (slow to review), darin-cc_chromium.org, jam, jbauman+watch_chromium.org, kalyank, piman+watch_chromium.org, qsr+mojo_chromium.org, rjkroege, sievers+watch_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

services/ui: Detect when a video is playing. Compositor frames submitted by mus clients include a flag to indicate whether the client is playing a video or not. This information is plumbed through from cc::Layer to cc::LayerImpl to cc::CompositorFrame[Metadata]. BUG=627140 CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_precise_blink_rel Committed: https://crrev.com/32d1097c5645c0e1b0f49f93502d4f4701b67cec Cr-Commit-Position: refs/heads/master@{#408864}

Patch Set 1 #

Patch Set 2 : . #

Patch Set 3 : . #

Patch Set 4 : . #

Patch Set 5 : . #

Total comments: 5

Patch Set 6 : . #

Patch Set 7 : test #

Patch Set 8 : . #

Total comments: 2

Patch Set 9 : . #

Patch Set 10 : tot merge #

Unified diffs Side-by-side diffs Delta from patch set Stats (+142 lines, -16 lines) Patch
M cc/ipc/cc_param_traits_macros.h View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M cc/ipc/compositor_frame_metadata.mojom View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M cc/ipc/compositor_frame_metadata_struct_traits.h View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M cc/ipc/compositor_frame_metadata_struct_traits.cc View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M cc/ipc/struct_traits_unittest.cc View 1 2 3 3 chunks +3 lines, -0 lines 0 comments Download
M cc/layers/layer.h View 1 2 3 4 5 6 7 8 9 2 chunks +3 lines, -0 lines 0 comments Download
M cc/layers/layer.cc View 1 2 3 4 5 6 7 8 9 5 chunks +11 lines, -0 lines 0 comments Download
M cc/layers/layer_impl.h View 1 2 3 4 5 6 2 chunks +4 lines, -0 lines 0 comments Download
M cc/layers/layer_impl.cc View 1 2 3 4 5 6 2 chunks +2 lines, -0 lines 0 comments Download
M cc/layers/layer_unittest.cc View 1 2 3 4 5 6 7 8 9 3 chunks +3 lines, -0 lines 0 comments Download
M cc/layers/video_layer.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M cc/layers/video_layer_impl.cc View 1 2 1 chunk +3 lines, -1 line 0 comments Download
M cc/output/compositor_frame_metadata.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M cc/proto/layer.proto View 1 2 3 4 5 6 7 2 chunks +2 lines, -1 line 0 comments Download
M cc/surfaces/surface_aggregator.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M cc/surfaces/surface_aggregator.cc View 1 2 2 chunks +3 lines, -0 lines 0 comments Download
M cc/trees/layer_tree_host_impl.h View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M cc/trees/layer_tree_host_impl.cc View 1 2 3 4 5 6 7 8 9 4 chunks +7 lines, -1 line 0 comments Download
M cc/trees/layer_tree_host_impl_unittest.cc View 1 2 3 4 5 6 7 8 9 1 chunk +49 lines, -0 lines 0 comments Download
M content/renderer/pepper/pepper_plugin_instance_impl.cc View 1 1 chunk +3 lines, -0 lines 0 comments Download
M services/ui/ws/frame_generator.h View 1 2 3 4 5 6 7 8 2 chunks +5 lines, -2 lines 0 comments Download
M services/ui/ws/frame_generator.cc View 1 2 3 4 5 6 7 8 7 chunks +24 lines, -9 lines 0 comments Download
M services/ui/ws/frame_generator_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -2 lines 0 comments Download
M services/ui/ws/server_window_surface.h View 1 2 2 chunks +4 lines, -0 lines 0 comments Download
M services/ui/ws/server_window_surface.cc View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 76 (58 generated)
commit-bot: I haz the power
Your CL relies on deprecated CQ feature(s): * Specifying master names in CQ_INCLUDE_TRYBOTS part of ...
4 years, 5 months ago (2016-07-22 03:50:10 UTC) #4
commit-bot: I haz the power
Your CL relies on deprecated CQ feature(s): * Specifying master names in CQ_INCLUDE_TRYBOTS part of ...
4 years, 5 months ago (2016-07-22 17:20:24 UTC) #9
sadrul
Hi! Would you mind looking at the changes in cc and see if that makes ...
4 years, 5 months ago (2016-07-22 19:16:01 UTC) #15
enne (OOO)
Why this should be on the frame itself and not on the texture quad? Would ...
4 years, 5 months ago (2016-07-25 18:40:13 UTC) #18
sadrul
On 2016/07/25 18:40:13, enne wrote: > Why this should be on the frame itself and ...
4 years, 5 months ago (2016-07-25 18:58:00 UTC) #19
enne (OOO)
https://codereview.chromium.org/2140783002/diff/80001/cc/ipc/render_pass_struct_traits.cc File cc/ipc/render_pass_struct_traits.cc (left): https://codereview.chromium.org/2140783002/diff/80001/cc/ipc/render_pass_struct_traits.cc#oldcode27 cc/ipc/render_pass_struct_traits.cc:27: DCHECK(input->shared_quad_state_list.empty() || ? https://codereview.chromium.org/2140783002/diff/80001/cc/surfaces/surface_aggregator.cc File cc/surfaces/surface_aggregator.cc (right): https://codereview.chromium.org/2140783002/diff/80001/cc/surfaces/surface_aggregator.cc#newcode705 cc/surfaces/surface_aggregator.cc:705: ...
4 years, 5 months ago (2016-07-25 19:17:35 UTC) #20
sadrul
https://codereview.chromium.org/2140783002/diff/80001/cc/ipc/render_pass_struct_traits.cc File cc/ipc/render_pass_struct_traits.cc (left): https://codereview.chromium.org/2140783002/diff/80001/cc/ipc/render_pass_struct_traits.cc#oldcode27 cc/ipc/render_pass_struct_traits.cc:27: DCHECK(input->shared_quad_state_list.empty() || On 2016/07/25 19:17:35, enne wrote: > ? ...
4 years, 5 months ago (2016-07-26 04:39:20 UTC) #25
enne (OOO)
lgtm https://codereview.chromium.org/2140783002/diff/80001/cc/surfaces/surface_aggregator.cc File cc/surfaces/surface_aggregator.cc (right): https://codereview.chromium.org/2140783002/diff/80001/cc/surfaces/surface_aggregator.cc#newcode705 cc/surfaces/surface_aggregator.cc:705: if (!damage_rect.IsEmpty() && surface_frame.metadata.may_contain_video) On 2016/07/26 at 04:39:20, ...
4 years, 4 months ago (2016-07-26 21:43:54 UTC) #26
sadrul
Added a test in layer_tree_host_impl_unittest.cc, updated a test in layer_unittest.cc +tsepez@ for //cc/ipc +bbudge@ for ...
4 years, 4 months ago (2016-07-27 19:58:22 UTC) #36
Tom Sepez
lgtm
4 years, 4 months ago (2016-07-27 20:02:53 UTC) #37
sky
https://codereview.chromium.org/2140783002/diff/140001/services/ui/ws/frame_generator.cc File services/ui/ws/frame_generator.cc (right): https://codereview.chromium.org/2140783002/diff/140001/services/ui/ws/frame_generator.cc#newcode77 services/ui/ws/frame_generator.cc:77: cc::CompositorFrame frame(GenerateCompositorFrame()); It's mildly confusing that GenerateCompositorFrame and DrawWindowTree ...
4 years, 4 months ago (2016-07-27 21:19:35 UTC) #38
bbudge
content/renderer/pepper lgtm
4 years, 4 months ago (2016-07-27 21:41:29 UTC) #39
sadrul
https://codereview.chromium.org/2140783002/diff/140001/services/ui/ws/frame_generator.cc File services/ui/ws/frame_generator.cc (right): https://codereview.chromium.org/2140783002/diff/140001/services/ui/ws/frame_generator.cc#newcode77 services/ui/ws/frame_generator.cc:77: cc::CompositorFrame frame(GenerateCompositorFrame()); On 2016/07/27 21:19:34, sky wrote: > It's ...
4 years, 4 months ago (2016-07-28 00:48:05 UTC) #49
sadrul
+ben@ since sky is ooo
4 years, 4 months ago (2016-07-30 01:11:22 UTC) #51
Ben Goodger (Google)
lgtm
4 years, 4 months ago (2016-07-30 03:18:14 UTC) #69
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/2140783002/200001
4 years, 4 months ago (2016-07-30 05:22:34 UTC) #72
commit-bot: I haz the power
Committed patchset #10 (id:200001)
4 years, 4 months ago (2016-07-30 05:26:39 UTC) #74
commit-bot: I haz the power
4 years, 4 months ago (2016-07-30 05:30:10 UTC) #76
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/32d1097c5645c0e1b0f49f93502d4f4701b67cec
Cr-Commit-Position: refs/heads/master@{#408864}

Powered by Google App Engine
This is Rietveld 408576698