Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[iOS WK2] Avoid setting contentsScale and rasterizationScale on CATra…
…nsformLayers

https://bugs.webkit.org/show_bug.cgi?id=172569

Reviewed by Dean Jackson.

Setting contentsScale and rasterizationScale on CATransformLayers is a waste of CPU time,
and triggers unwanted logging, so don't do it.

* WebProcess/WebPage/mac/PlatformCALayerRemote.cpp:
(WebKit::PlatformCALayerRemote::PlatformCALayerRemote):


Canonical link: https://commits.webkit.org/189506@main
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@217442 268f45cc-cd09-0410-ab3c-d52691b4dbfc
  • Loading branch information
smfr committed May 25, 2017
1 parent cf789c3 commit 8bb7a55
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
13 changes: 13 additions & 0 deletions Source/WebKit2/ChangeLog
@@ -1,3 +1,16 @@
2017-05-25 Simon Fraser <simon.fraser@apple.com>

[iOS WK2] Avoid setting contentsScale and rasterizationScale on CATransformLayers
https://bugs.webkit.org/show_bug.cgi?id=172569

Reviewed by Dean Jackson.

Setting contentsScale and rasterizationScale on CATransformLayers is a waste of CPU time,
and triggers unwanted logging, so don't do it.

* WebProcess/WebPage/mac/PlatformCALayerRemote.cpp:
(WebKit::PlatformCALayerRemote::PlatformCALayerRemote):

2017-05-25 Matt Lewis <jlewis3@apple.com>

Unreviewed, rolling out r217409.
Expand Down
Expand Up @@ -76,7 +76,7 @@ PlatformCALayerRemote::PlatformCALayerRemote(LayerType layerType, PlatformCALaye
: PlatformCALayer(layerType, owner)
, m_context(&context)
{
if (owner && layerType != LayerTypeContentsProvidedLayer) {
if (owner && layerType != LayerTypeContentsProvidedLayer && layerType != LayerTypeTransformLayer) {
m_properties.contentsScale = owner->platformCALayerDeviceScaleFactor();
m_properties.notePropertiesChanged(RemoteLayerTreeTransaction::ContentsScaleChanged);
}
Expand Down

0 comments on commit 8bb7a55

Please sign in to comment.