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

Issue 2770923003: TabCapture: enforce active refresh if there is un-sampled compositor update (Closed)

Created:
3 years, 9 months ago by braveyao
Modified:
3 years, 8 months ago
Reviewers:
Niklas Enbom, miu
CC:
chromium-reviews, posciak+watch_chromium.org, chfremer+watch_chromium.org, jam, feature-media-reviews_chromium.org, darin-cc_chromium.org, xjz+watch_chromium.org, miu+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

TabCapture: enforce active refresh if there is un-sampled compositor update During tab capture, if there is no mouse movement and no local preview, the passive refresh request will always succeed to refresh with the last cached frame, while the compositor update will most probably be dropped. To capture the updated content in time, when there is un-sampled compositor update event, we'll fail the next passive refresh request to enforce an active refresh request. BUG=704257 Review-Url: https://codereview.chromium.org/2770923003 Cr-Commit-Position: refs/heads/master@{#460455} Committed: https://chromium.googlesource.com/chromium/src/+/2d7baa9276da1713abbbb01cf8b28065292302ff

Patch Set 1 #

Patch Set 2 : Apply suggested patch #

Total comments: 6

Patch Set 3 : address comments on PS#2 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+56 lines, -1 line) Patch
M media/capture/content/video_capture_oracle.h View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
M media/capture/content/video_capture_oracle.cc View 1 2 5 chunks +15 lines, -1 line 0 comments Download
M media/capture/content/video_capture_oracle_unittest.cc View 1 2 1 chunk +36 lines, -0 lines 0 comments Download

Messages

Total messages: 31 (19 generated)
braveyao
Hi miu@, please take a look!
3 years, 9 months ago (2017-03-23 00:53:01 UTC) #7
miu
I missed this code review in my e-mail scan today, and came up with a ...
3 years, 9 months ago (2017-03-23 21:59:19 UTC) #8
braveyao
Thanks so much for the patch! Mine was created in a rush... My two cents: ...
3 years, 9 months ago (2017-03-24 18:31:39 UTC) #13
miu
On 2017/03/24 18:31:39, braveyao wrote: > Thanks so much for the patch! Mine was created ...
3 years, 9 months ago (2017-03-24 21:14:00 UTC) #14
miu
https://codereview.chromium.org/2770923003/diff/20001/media/capture/content/video_capture_oracle.cc File media/capture/content/video_capture_oracle.cc (right): https://codereview.chromium.org/2770923003/diff/20001/media/capture/content/video_capture_oracle.cc#newcode235 media/capture/content/video_capture_oracle.cc:235: if (last_event_causing_capture_ != kPassiveRefreshRequest) Per discussion, this shouldn't be ...
3 years, 9 months ago (2017-03-24 21:17:28 UTC) #15
miu
https://codereview.chromium.org/2770923003/diff/20001/media/capture/content/video_capture_oracle_unittest.cc File media/capture/content/video_capture_oracle_unittest.cc (right): https://codereview.chromium.org/2770923003/diff/20001/media/capture/content/video_capture_oracle_unittest.cc#newcode354 media/capture/content/video_capture_oracle_unittest.cc:354: // refresh request to force an active refresh. nit: ...
3 years, 9 months ago (2017-03-24 21:19:39 UTC) #16
braveyao
Thanks for taking my idea. All addressed! PTAL Not important: my understanding to the MouseCursorUpdate ...
3 years, 9 months ago (2017-03-24 23:12:27 UTC) #19
miu
PS3 lgtm
3 years, 8 months ago (2017-03-28 23:27:35 UTC) #22
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/2770923003/40001
3 years, 8 months ago (2017-03-28 23:29:56 UTC) #24
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/418647)
3 years, 8 months ago (2017-03-29 01:11:45 UTC) #26
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/2770923003/40001
3 years, 8 months ago (2017-03-29 15:22:34 UTC) #28
commit-bot: I haz the power
3 years, 8 months ago (2017-03-29 18:08:17 UTC) #31
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/2d7baa9276da1713abbbb01cf8b2...

Powered by Google App Engine
This is Rietveld 408576698