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

Issue 1922143004: Short-term fix for Aura Desktop/Window capture. (Closed)

Created:
4 years, 8 months ago by miu
Modified:
4 years, 7 months ago
Reviewers:
GeorgeZ
CC:
chromium-reviews, posciak+watch_chromium.org, jam, feature-media-reviews_chromium.org, darin-cc_chromium.org, mcasas+watch+vc_chromium.org, miu+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Short-term fix for Aura Desktop/Window capture. The compositor is not reliably calling the OnCompositingEnded() observer method, causing capture to "freeze." However, it's not clear that AuraWindowCaptureMachine should have been using it to trigger copy requests in the first place. This change switches over to using the only other reliable feedback mechanism available (as of this writing). That is, we now use the OnAnimationStep() observer method as a trigger to initiate copy requests. Long-term, we need a better observer callback interface from the compositor for this use case. The solution here will always capture frames at the maximum framerate, which means CPU/GPU is being wasted on redundant captures, and the quality/smoothness of animating content will suffer significantly. BUG=492839, 600031 Committed: https://crrev.com/1ca25389bc07e4cb43ccc46af8159b0291c7e5d5 Cr-Commit-Position: refs/heads/master@{#390156}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Return false on missing compositor in InternalStart(). #

Unified diffs Side-by-side diffs Delta from patch set Stats (+91 lines, -49 lines) Patch
M content/browser/media/capture/aura_window_capture_machine.h View 6 chunks +11 lines, -14 lines 0 comments Download
M content/browser/media/capture/aura_window_capture_machine.cc View 1 14 chunks +80 lines, -35 lines 0 comments Download

Messages

Total messages: 10 (4 generated)
miu
gyzhou: PTAL. This will fix crbug 600031, but I'm not terribly happy with this. I ...
4 years, 8 months ago (2016-04-27 04:35:34 UTC) #2
GeorgeZ
Miu, LGTM with a nit. I tested on Device blaze. The issue is solved thought ...
4 years, 7 months ago (2016-04-27 16:44:34 UTC) #3
miu
Thanks George. Added the early return as you suggested: https://codereview.chromium.org/1922143004/diff/1/content/browser/media/capture/aura_window_capture_machine.cc File content/browser/media/capture/aura_window_capture_machine.cc (right): https://codereview.chromium.org/1922143004/diff/1/content/browser/media/capture/aura_window_capture_machine.cc#newcode86 content/browser/media/capture/aura_window_capture_machine.cc:86: ...
4 years, 7 months ago (2016-04-27 19:01:24 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1922143004/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1922143004/20001
4 years, 7 months ago (2016-04-27 19:02:07 UTC) #7
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 7 months ago (2016-04-27 19:57:41 UTC) #8
commit-bot: I haz the power
4 years, 7 months ago (2016-04-30 17:12:13 UTC) #9
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/1ca25389bc07e4cb43ccc46af8159b0291c7e5d5
Cr-Commit-Position: refs/heads/master@{#390156}

Powered by Google App Engine
This is Rietveld 408576698