Mac: Optimize toolbar/bookmark drawing during live resize
The default theme's background image is a subtle texture pattern that we can scale without being easily noticed. When using the default theme, let the layer get scaled during live resize and redraw at the end of resize. TabStripView is changed to no longer be a subclass of BackgroundGradientView because we don't want to scale its layer (it may draw a drop arrow). It is also inefficient for it to call cr_recursivelySetNeedsDisplay. With this optimization, the following views no longer redraw repeatedly during live resize (when using default theme): ToolbarView BookmarkBarToolbarView DownloadShelfView OmniboxPopupTopSeparatorView BUG=453996 Review URL: https://codereview.chromium.org/867273003 Cr-Commit-Position: refs/heads/master@{#314661}
Showing
Please register or sign in to comment