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

Issue 2219663003: MacViews: Claim -[NSView isOpaque] for the content view according to the root layer properties. (Closed)

Created:
4 years, 4 months ago by tapted
Modified:
4 years, 4 months ago
Reviewers:
karandeepb
CC:
chromium-reviews, tfarina, chrome-apps-syd-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

MacViews: Claim -[NSView isOpaque] for the content view according to the root layer properties. Once we start scrolling with Layers, most of the CPU taken up when scrolling is actually taken up by redrawing the window frame. This is because BridgedContentView currently always claims that it is transparent. So, when paint areas are invalidated, AppKit must first ask the window frame to redraw that region in case BridgedContentView wants to draw something transparent on top of that. For opaque windows, none of the window background shows through, so report YES from -[NSView isOpaque] in those cases. BUG=594907, 605131 Committed: https://crrev.com/b7720c4c053a09050c9abab73b0af528150dd42c Cr-Commit-Position: refs/heads/master@{#410012}

Patch Set 1 #

Total comments: 2

Patch Set 2 : _TRUE,_FALSE #

Unified diffs Side-by-side diffs Delta from patch set Stats (+33 lines, -0 lines) Patch
M ui/views/cocoa/bridged_content_view.mm View 1 chunk +8 lines, -0 lines 0 comments Download
M ui/views/widget/native_widget_mac_unittest.mm View 1 1 chunk +25 lines, -0 lines 0 comments Download

Messages

Total messages: 21 (14 generated)
tapted
Hi Karan, please take a look
4 years, 4 months ago (2016-08-05 05:17:39 UTC) #5
karandeepb
On 2016/08/05 05:17:39, tapted wrote: > Hi Karan, please take a look LGTM. What about ...
4 years, 4 months ago (2016-08-05 06:10:35 UTC) #8
karandeepb
https://codereview.chromium.org/2219663003/diff/1/ui/views/widget/native_widget_mac_unittest.mm File ui/views/widget/native_widget_mac_unittest.mm (right): https://codereview.chromium.org/2219663003/diff/1/ui/views/widget/native_widget_mac_unittest.mm#newcode1392 ui/views/widget/native_widget_mac_unittest.mm:1392: EXPECT_EQ(YES, [[window contentView] isOpaque]); nit: Maybe change to EXPECT_TRUE/FALSE ...
4 years, 4 months ago (2016-08-05 06:10:47 UTC) #9
tapted
On 2016/08/05 06:10:35, karandeepb wrote: > On 2016/08/05 05:17:39, tapted wrote: > > Hi Karan, ...
4 years, 4 months ago (2016-08-05 06:45:42 UTC) #12
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/2219663003/20001
4 years, 4 months ago (2016-08-05 06:46:26 UTC) #17
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 4 months ago (2016-08-05 07:17:35 UTC) #19
commit-bot: I haz the power
4 years, 4 months ago (2016-08-05 07:18:46 UTC) #21
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/b7720c4c053a09050c9abab73b0af528150dd42c
Cr-Commit-Position: refs/heads/master@{#410012}

Powered by Google App Engine
This is Rietveld 408576698