• ccameron@chromium.org's avatar
    Refactor device scale factor on Mac and fix CoreAnimation bug · 1eaffaea
    ccameron@chromium.org authored
    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
    
    Review URL: https://codereview.chromium.org/171763002
    
    git-svn-id: svn://svn.chromium.org/chrome/trunk/src@251982 0039d316-1c4b-4281-b951-d872f2087c98
    1eaffaea
compositing_iosurface_layer_mac.mm 6.19 KB