Mac: Don't override drawRect to do nothing.
commitff5bc69dc74e290fae4768ac86ed218110c7c81b
authorandresantoso <andresantoso@chromium.org>
Tue, 3 Feb 2015 23:49:32 +0000 (3 15:49 -0800)
committerCommit bot <commit-bot@chromium.org>
Tue, 3 Feb 2015 23:50:23 +0000 (3 23:50 +0000)
tree2330fa1e95c741937461e1020b6d81cebca2b615
parentcce414abf88a958b1b42ae581ff4a12a7c46d43d
Mac: Don't override drawRect to do nothing.

TabStripControllerDragBlockingView is a transparent view.
Remove its drawRect override, it is not necessary and inefficient.
When running on >10.8, -[NSView wantsUpdateLayer] will return YES if there is
no drawRect override, skip it in the drawing pass, and also skip allocating a
backing buffer for its layer.

BUG=453996

Review URL: https://codereview.chromium.org/893313002

Cr-Commit-Position: refs/heads/master@{#314441}
chrome/browser/ui/cocoa/tabs/tab_strip_controller.mm