Changeset 167536 in webkit


Ignore:
Timestamp:
Apr 19, 2014 10:36:22 AM (10 years ago)
Author:
Simon Fraser
Message:

[iOS WK2] Fuzzy layers on sites using perspective and transforms
https://bugs.webkit.org/show_bug.cgi?id=131873
<rdar://problem/16540576>

Reviewed by Sam Weinig.

Always set rasterizationScale on CALayers in the UI process
(as we do for WK1) so that layers are rasterized taking the
device scale into account. We can do unconditionally; this
is benign on layers that CA doesn't rasterize.

  • Shared/mac/RemoteLayerTreePropertyApplier.mm:

(WebKit::applyPropertiesToLayer):

Location:
trunk/Source/WebKit2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r167535 r167536  
     12014-04-19  Simon Fraser  <simon.fraser@apple.com>
     2
     3        [iOS WK2] Fuzzy layers on sites using perspective and transforms
     4        https://bugs.webkit.org/show_bug.cgi?id=131873
     5        <rdar://problem/16540576>
     6
     7        Reviewed by Sam Weinig.
     8       
     9        Always set rasterizationScale on CALayers in the UI process
     10        (as we do for WK1) so that layers are rasterized taking the
     11        device scale into account. We can do unconditionally; this
     12        is benign on layers that CA doesn't rasterize.
     13
     14        * Shared/mac/RemoteLayerTreePropertyApplier.mm:
     15        (WebKit::applyPropertiesToLayer):
     16
    1172014-04-18  Simon Fraser  <simon.fraser@apple.com>
    218
  • trunk/Source/WebKit2/Shared/mac/RemoteLayerTreePropertyApplier.mm

    r166542 r167536  
    168168        layer.contentsRect = properties.contentsRect;
    169169
    170     if (properties.changedProperties & RemoteLayerTreeTransaction::ContentsScaleChanged)
     170    if (properties.changedProperties & RemoteLayerTreeTransaction::ContentsScaleChanged) {
    171171        layer.contentsScale = properties.contentsScale;
     172        layer.rasterizationScale = properties.contentsScale;
     173    }
    172174
    173175    if (properties.changedProperties & RemoteLayerTreeTransaction::MinificationFilterChanged)
Note: See TracChangeset for help on using the changeset viewer.