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

Issue 184433005: Give the browser window's content view a CALayers (Closed)

Created:
6 years, 9 months ago by ccameron
Modified:
6 years, 9 months ago
Reviewers:
Avi (use Gerrit)
CC:
chromium-reviews, Andre
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Give the browser window's content view a CALayers This is necessary to ensure correct ordering of the CALayers of the child NSViews of the window's content view. Most of the time the NSViews appeared in the correct order, but not all of the time (especially on 10.6). This fixes that issue. Remove code to dynamically do this when entering and leaving presentation mode. Update the FastResizeView to host a white CALayer instead of trying to call drawRect, and make the NSView opaque. This caused a performance drop last time it was tried, but other performance fixes, and the FastResizeView fix might make it so that this does not have an appreciable performance impact. BUG=348490 NOTRY=True Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=255150

Patch Set 1 #

Total comments: 4

Patch Set 2 : Incorproate reivew feedback #

Patch Set 3 : Remove unneeded include #

Total comments: 2

Patch Set 4 : Use scoped object #

Unified diffs Side-by-side diffs Delta from patch set Stats (+28 lines, -11 lines) Patch
M chrome/browser/ui/cocoa/browser_window_controller.mm View 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/fast_resize_view.mm View 1 2 3 2 chunks +24 lines, -1 line 0 comments Download
M chrome/browser/ui/cocoa/presentation_mode_controller.mm View 2 chunks +0 lines, -10 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
ccameron
While working on this, I diagrammed the NSView hierarchy. It may be useful when verifying ...
6 years, 9 months ago (2014-03-05 02:35:20 UTC) #1
Avi (use Gerrit)
Good luck with the performance hit. Wondering about the helper-ness of the functions. https://codereview.chromium.org/184433005/diff/1/chrome/browser/ui/cocoa/nsview_additions.h File ...
6 years, 9 months ago (2014-03-05 03:19:27 UTC) #2
ccameron
Thanks -- patch updated https://codereview.chromium.org/184433005/diff/1/chrome/browser/ui/cocoa/nsview_additions.h File chrome/browser/ui/cocoa/nsview_additions.h (right): https://codereview.chromium.org/184433005/diff/1/chrome/browser/ui/cocoa/nsview_additions.h#newcode48 chrome/browser/ui/cocoa/nsview_additions.h:48: - (void)cr_setHostsSolidWhiteLayer; On 2014/03/05 03:19:28, ...
6 years, 9 months ago (2014-03-05 07:59:31 UTC) #3
Avi (use Gerrit)
LGTM with change. https://codereview.chromium.org/184433005/diff/40001/chrome/browser/ui/cocoa/fast_resize_view.mm File chrome/browser/ui/cocoa/fast_resize_view.mm (right): https://codereview.chromium.org/184433005/diff/40001/chrome/browser/ui/cocoa/fast_resize_view.mm#newcode28 chrome/browser/ui/cocoa/fast_resize_view.mm:28: CALayer* layer = [[CALayer alloc] init]; ...
6 years, 9 months ago (2014-03-05 16:17:02 UTC) #4
ccameron
Thanks! https://codereview.chromium.org/184433005/diff/40001/chrome/browser/ui/cocoa/fast_resize_view.mm File chrome/browser/ui/cocoa/fast_resize_view.mm (right): https://codereview.chromium.org/184433005/diff/40001/chrome/browser/ui/cocoa/fast_resize_view.mm#newcode28 chrome/browser/ui/cocoa/fast_resize_view.mm:28: CALayer* layer = [[CALayer alloc] init]; On 2014/03/05 ...
6 years, 9 months ago (2014-03-05 18:18:40 UTC) #5
ccameron
The CQ bit was checked by ccameron@chromium.org
6 years, 9 months ago (2014-03-05 18:18:46 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ccameron@chromium.org/184433005/60001
6 years, 9 months ago (2014-03-05 18:20:22 UTC) #7
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-05 21:08:59 UTC) #8
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) unit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=275501
6 years, 9 months ago (2014-03-05 21:09:00 UTC) #9
ccameron
The CQ bit was checked by ccameron@chromium.org
6 years, 9 months ago (2014-03-05 21:15:38 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ccameron@chromium.org/184433005/60001
6 years, 9 months ago (2014-03-05 21:16:40 UTC) #11
commit-bot: I haz the power
6 years, 9 months ago (2014-03-05 21:18:58 UTC) #12
Message was sent while issue was closed.
Change committed as 255150

Powered by Google App Engine
This is Rietveld 408576698