Changeset 271388 in webkit


Ignore:
Timestamp:
Jan 11, 2021 6:52:17 PM (18 months ago)
Author:
Simon Fraser
Message:

Safari 14 on 2x display renders NYS DMV page as blurry
https://bugs.webkit.org/show_bug.cgi?id=220528
<rdar://problem/71440246>

Reviewed by Tim Horton.

Source/WebCore:

Certain combinations of nested perspective and transform cause Core Animation to
rasterize at unit scale, which makes layers blurry on Retina displays.

Enable code that was already used on iOS to set layer rasterization scale.

Test: compositing/contents-scale/hidpi-tests/rasterization-scale.html

  • platform/graphics/ca/cocoa/PlatformCALayerCocoa.mm:

(WebCore::PlatformCALayerCocoa::setContentsScale):

LayoutTests:

  • compositing/contents-scale/hidpi-tests/rasterization-scale-expected.html: Added.
  • compositing/contents-scale/hidpi-tests/rasterization-scale.html: Added.
Location:
trunk
Files:
3 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r271386 r271388  
     12021-01-11  Simon Fraser  <simon.fraser@apple.com>
     2
     3        Safari 14 on 2x display renders NYS DMV page as blurry
     4        https://bugs.webkit.org/show_bug.cgi?id=220528
     5        <rdar://problem/71440246>
     6
     7        Reviewed by Tim Horton.
     8
     9        * compositing/contents-scale/hidpi-tests/rasterization-scale-expected.html: Added.
     10        * compositing/contents-scale/hidpi-tests/rasterization-scale.html: Added.
     11
    1122021-01-11  Megan Gardner  <megan_gardner@apple.com>
    213
  • trunk/Source/WebCore/ChangeLog

    r271387 r271388  
     12021-01-11  Simon Fraser  <simon.fraser@apple.com>
     2
     3        Safari 14 on 2x display renders NYS DMV page as blurry
     4        https://bugs.webkit.org/show_bug.cgi?id=220528
     5        <rdar://problem/71440246>
     6
     7        Reviewed by Tim Horton.
     8
     9        Certain combinations of nested perspective and transform cause Core Animation to
     10        rasterize at unit scale, which makes layers blurry on Retina displays.
     11
     12        Enable code that was already used on iOS to set layer rasterization scale.
     13
     14        Test: compositing/contents-scale/hidpi-tests/rasterization-scale.html
     15
     16        * platform/graphics/ca/cocoa/PlatformCALayerCocoa.mm:
     17        (WebCore::PlatformCALayerCocoa::setContentsScale):
     18
    1192021-01-11  Peng Liu  <peng.liu6@apple.com>
    220
  • trunk/Source/WebCore/platform/graphics/ca/cocoa/PlatformCALayerCocoa.mm

    r269616 r271388  
    916916    BEGIN_BLOCK_OBJC_EXCEPTIONS
    917917    [m_layer setContentsScale:value];
    918 #if PLATFORM(IOS_FAMILY)
    919918    [m_layer setRasterizationScale:value];
    920 #endif
    921919    END_BLOCK_OBJC_EXCEPTIONS
    922920}
Note: See TracChangeset for help on using the changeset viewer.