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

Issue 2312133002: MacViews: Fix flashing of opaque non-modal windows on display. (Closed)

Created:
4 years, 3 months ago by karandeepb
Modified:
4 years, 3 months ago
Reviewers:
ccameron
CC:
chromium-reviews, tfarina, chrome-apps-syd-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

MacViews: Fix flashing of opaque non-modal windows on display. Currently, opaque non-modal windows like the Task Manager appear with a "flash", when displayed initially. This is because if the frame from the compositor hasn't arrived yet, the background color of the window shows through. When the frame arrives, the actual contents are displayed, causing a "flash". To get around this, for opaque non-modal windows, set the alpha value of the window to 0, till the correct frame from the compositor is received. Also, ignore mouse clicks till then. This also fixes the "black strip" that is displayed in the non webcontents area of the MacViewsBrowser, when it is displayed initially. BUG=623950, 645343 TEST=With chrome://flags/#mac-views-native-dialogs enabled, open the Task Manager. Observe it is not displayed with a Flash. (Record a screencast and observe frame by frame). TEST=Build with mac_views_browser=true. Open the browser and observe no black strip is displayed in the non web-contents area, when it is displayed initially. Committed: https://crrev.com/f6ac68b04228683aa3176ad4020e109fbde5abf6 Cr-Commit-Position: refs/heads/master@{#417863}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+24 lines, -0 lines) Patch
M ui/views/cocoa/bridged_native_widget.h View 1 chunk +5 lines, -0 lines 0 comments Download
M ui/views/cocoa/bridged_native_widget.mm View 2 chunks +19 lines, -0 lines 0 comments Download

Messages

Total messages: 15 (10 generated)
karandeepb
PTAL ccameron@. Can you please review this since Trent is OOO.
4 years, 3 months ago (2016-09-09 04:12:03 UTC) #8
ccameron
lgtm
4 years, 3 months ago (2016-09-11 20:43:18 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/2312133002/40001
4 years, 3 months ago (2016-09-12 01:04:34 UTC) #11
commit-bot: I haz the power
Committed patchset #1 (id:40001)
4 years, 3 months ago (2016-09-12 01:44:05 UTC) #13
commit-bot: I haz the power
4 years, 3 months ago (2016-09-12 01:46:10 UTC) #15
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/f6ac68b04228683aa3176ad4020e109fbde5abf6
Cr-Commit-Position: refs/heads/master@{#417863}

Powered by Google App Engine
This is Rietveld 408576698