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

Issue 171763002: Refactor device scale factor on Mac and fix CoreAnimation bug (Closed)

Created:
6 years, 10 months ago by ccameron
Modified:
6 years, 10 months ago
Reviewers:
jbauman
CC:
chromium-reviews, yusukes+watch_chromium.org, yukishiino+watch_chromium.org, jam, penghuang+watch_chromium.org, joi+watch-content_chromium.org, nona+watch_chromium.org, darin-cc_chromium.org, James Su, miu+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Refactor device scale factor on Mac and fix CoreAnimation bug Rename some functions to be more meaningful: - RWHVMac::scale_factor -> RWHVMac::ViewScaleFactor - RWHVCocoa::deviceScaleFactor_ -> RWHVMac::backing_store_scale_factor - ::ScaleFactor(NSView*) -> ScaleFactorForView(NSView*) Move code to update the scale factor of the backing store from being in RWHVCocoa::updateTabBackingStoreScaleFactor to be in RWHVMac::UpdateBackingStoreScaleFactor. Work around a bug where updating the contentsScale of a CAOpenGLLayer that dynamically changes its isAsynchronous property results in corruption by re-creating the CAOpenGLLayer when a change in scale factor is detected. BUG=245900 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=251982

Patch Set 1 #

Patch Set 2 : Clean up #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+60 lines, -77 lines) Patch
M content/browser/renderer_host/compositing_iosurface_layer_mac.h View 1 chunk +0 lines, -4 lines 0 comments Download
M content/browser/renderer_host/compositing_iosurface_layer_mac.mm View 1 chunk +4 lines, -21 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_mac.h View 1 1 chunk +9 lines, -1 line 0 comments Download
M content/browser/renderer_host/render_widget_host_view_mac.mm View 1 16 chunks +47 lines, -51 lines 1 comment Download

Messages

Total messages: 6 (0 generated)
ccameron
Mostly cleanup, and a small bugfix. https://codereview.chromium.org/171763002/diff/30001/content/browser/renderer_host/render_widget_host_view_mac.mm File content/browser/renderer_host/render_widget_host_view_mac.mm (left): https://codereview.chromium.org/171763002/diff/30001/content/browser/renderer_host/render_widget_host_view_mac.mm#oldcode500 content/browser/renderer_host/render_widget_host_view_mac.mm:500: if (compositing_iosurface_) { ...
6 years, 10 months ago (2014-02-19 00:52:05 UTC) #1
jbauman
lgtm
6 years, 10 months ago (2014-02-19 01:51:00 UTC) #2
ccameron
Thanks!
6 years, 10 months ago (2014-02-19 01:54:19 UTC) #3
ccameron
The CQ bit was checked by ccameron@chromium.org
6 years, 10 months ago (2014-02-19 01:54:24 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ccameron@chromium.org/171763002/30001
6 years, 10 months ago (2014-02-19 01:58:13 UTC) #5
commit-bot: I haz the power
6 years, 10 months ago (2014-02-19 07:54:13 UTC) #6
Message was sent while issue was closed.
Change committed as 251982

Powered by Google App Engine
This is Rietveld 408576698