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

Issue 2468063004: Mac: Fix flickering while entering/leaving fullscreen low power video (Closed)

Created:
4 years, 1 month ago by ccameron
Modified:
4 years, 1 month ago
Reviewers:
spqchan, erikchen
CC:
chromium-reviews, mac-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Mac: Fix flickering while entering/leaving fullscreen low power video Change the low power transition to be 3-state. The states are - not in FSLP mode, FSLP window is hidden - warming up FSLP mode, FSLP window is visible and in the fullscreen state, but is behind the main window - in FSLP mode. the FLSP window is in front of the main window From my experiments, adding up this "warming up" state, makes it so that the flahses when entering FSLP mode go away. When exiting FSLP mode, it used to be that we would call -[AVSampleBufferDisplayLayer flushAndRemoveImage] immediately, since it never caused any issues. I was able to see some black flashes on Sierra. If I change it so that we wait for 15 frames to do this, then the flashes go away. BUG=661691 Committed: https://crrev.com/d8ca506c965aa6331149055e421c9d2e9c2b14ab Cr-Commit-Position: refs/heads/master@{#429515}

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+121 lines, -55 lines) Patch
M chrome/browser/ui/cocoa/fullscreen_low_power_coordinator.h View 3 chunks +17 lines, -6 lines 0 comments Download
M chrome/browser/ui/cocoa/fullscreen_low_power_coordinator.mm View 4 chunks +71 lines, -31 lines 1 comment Download
M chrome/browser/ui/cocoa/fullscreen_low_power_coordinator_unittest.mm View 8 chunks +17 lines, -10 lines 0 comments Download
M ui/accelerated_widget_mac/ca_layer_tree_coordinator.h View 1 chunk +4 lines, -1 line 0 comments Download
M ui/accelerated_widget_mac/ca_layer_tree_coordinator.mm View 2 chunks +12 lines, -7 lines 0 comments Download

Messages

Total messages: 15 (7 generated)
ccameron
This fixes some of the FSLP transition issues that we have. Not all of the ...
4 years, 1 month ago (2016-11-03 01:23:59 UTC) #2
erikchen
On 2016/11/03 01:23:59, ccameron wrote: > This fixes some of the FSLP transition issues that ...
4 years, 1 month ago (2016-11-03 01:33:41 UTC) #5
erikchen
On 2016/11/03 01:33:41, erikchen wrote: > On 2016/11/03 01:23:59, ccameron wrote: > > This fixes ...
4 years, 1 month ago (2016-11-03 01:34:08 UTC) #6
ccameron
Thanks! /facepalm about the Sierra false alarm...
4 years, 1 month ago (2016-11-03 02:05:26 UTC) #9
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/2468063004/1
4 years, 1 month ago (2016-11-03 02:09:08 UTC) #11
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 1 month ago (2016-11-03 02:15:30 UTC) #12
commit-bot: I haz the power
Patchset 1 (id:??) landed as https://crrev.com/d8ca506c965aa6331149055e421c9d2e9c2b14ab Cr-Commit-Position: refs/heads/master@{#429515}
4 years, 1 month ago (2016-11-03 02:18:10 UTC) #14
erikchen
4 years, 1 month ago (2016-11-03 18:20:01 UTC) #15
Message was sent while issue was closed.
https://codereview.chromium.org/2468063004/diff/1/chrome/browser/ui/cocoa/ful...
File chrome/browser/ui/cocoa/fullscreen_low_power_coordinator.mm (right):

https://codereview.chromium.org/2468063004/diff/1/chrome/browser/ui/cocoa/ful...
chrome/browser/ui/cocoa/fullscreen_low_power_coordinator.mm:95: // crashes.
system being Chrome or macOS?

Powered by Google App Engine
This is Rietveld 408576698