• ccameron@chromium.org's avatar
    Make delegated software renderer work on Mac · 7b4bff53
    ccameron@chromium.org authored
    Add a device scale factor parameter to SoftwareOutputDevice::Resize and
    plumb that parameter through to the contentsScale property of the CALayer
    that is used to draw the software frame.
    
    Change the way that RWHVMac draws software frames (both delegated and
    non-delegated) so that the CALayer for the software frame has setContents
    called on it with a CGImageRef of the software frame, instead of drawing
    the CGImageRef to the inside the CALayer's displayInContext function. This
    is the way that things should have been done to begin with (it involves a lot
    less copying and a lot more idle time in the browser main thread), but wasn't
    compatible with the (now-defunct) legacy software path.
    
    Change the software rendering path to set the contentsScale of the software
    CALayer at the time that the software frame is received, when the contents
    are updated, instead of in RWHVMac::LayoutLayers.
    
    BUG=314190
    
    Review URL: https://codereview.chromium.org/297573003
    
    git-svn-id: svn://svn.chromium.org/chrome/trunk/src@271839 0039d316-1c4b-4281-b951-d872f2087c98
    7b4bff53
pixel_test_software_output_device.h 758 Bytes