Title: [289271] branches/safari-613-branch/Source/WebKit
Revision
289271
Author
[email protected]
Date
2022-02-07 18:53:01 -0800 (Mon, 07 Feb 2022)

Log Message

Cherry-pick r287995. rdar://problem/87458502

    Avoid unnecessary call to windowScreenDidChange
    https://bugs.webkit.org/show_bug.cgi?id=235198
    <rdar://87458502>

    Reviewed by Geoffrey Garen.

    It is a page load performance progression to avoid this call in initWithDrawingAreaProxy.

    * UIProcess/RemoteLayerTree/RemoteLayerTreeDrawingAreaProxy.mm:
    (-[WKOneShotDisplayLinkHandler initWithDrawingAreaProxy:]):

    git-svn-id: https://svn.webkit.org/repository/webkit/trunk@287995 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Modified Paths

Diff

Modified: branches/safari-613-branch/Source/WebKit/ChangeLog (289270 => 289271)


--- branches/safari-613-branch/Source/WebKit/ChangeLog	2022-02-08 02:52:58 UTC (rev 289270)
+++ branches/safari-613-branch/Source/WebKit/ChangeLog	2022-02-08 02:53:01 UTC (rev 289271)
@@ -1,5 +1,36 @@
 2022-02-07  Russell Epstein  <[email protected]>
 
+        Cherry-pick r287995. rdar://problem/87458502
+
+    Avoid unnecessary call to windowScreenDidChange
+    https://bugs.webkit.org/show_bug.cgi?id=235198
+    <rdar://87458502>
+    
+    Reviewed by Geoffrey Garen.
+    
+    It is a page load performance progression to avoid this call in initWithDrawingAreaProxy.
+    
+    * UIProcess/RemoteLayerTree/RemoteLayerTreeDrawingAreaProxy.mm:
+    (-[WKOneShotDisplayLinkHandler initWithDrawingAreaProxy:]):
+    
+    
+    git-svn-id: https://svn.webkit.org/repository/webkit/trunk@287995 268f45cc-cd09-0410-ab3c-d52691b4dbfc
+
+    2022-01-13  Per Arne Vollan  <[email protected]>
+
+            Avoid unnecessary call to windowScreenDidChange
+            https://bugs.webkit.org/show_bug.cgi?id=235198
+            <rdar://87458502>
+
+            Reviewed by Geoffrey Garen.
+
+            It is a page load performance progression to avoid this call in initWithDrawingAreaProxy.
+
+            * UIProcess/RemoteLayerTree/RemoteLayerTreeDrawingAreaProxy.mm:
+            (-[WKOneShotDisplayLinkHandler initWithDrawingAreaProxy:]):
+
+2022-02-07  Russell Epstein  <[email protected]>
+
         Cherry-pick r287970. rdar://problem/87423294
 
     PCM: Same-site triggering events should support ephemeral measurement

Modified: branches/safari-613-branch/Source/WebKit/UIProcess/RemoteLayerTree/RemoteLayerTreeDrawingAreaProxy.mm (289270 => 289271)


--- branches/safari-613-branch/Source/WebKit/UIProcess/RemoteLayerTree/RemoteLayerTreeDrawingAreaProxy.mm	2022-02-08 02:52:58 UTC (rev 289270)
+++ branches/safari-613-branch/Source/WebKit/UIProcess/RemoteLayerTree/RemoteLayerTreeDrawingAreaProxy.mm	2022-02-08 02:53:01 UTC (rev 289271)
@@ -71,12 +71,14 @@
         _displayLink.preferredFramesPerSecond = 60;
 
         if (drawingAreaProxy) {
-            auto minimumRefreshInterval = _displayLink.maximumRefreshRate;
-            if (minimumRefreshInterval > 0) {
-                auto& page = drawingAreaProxy->page();
-                if (auto displayId = page.displayId()) {
-                    WebCore::FramesPerSecond frameRate = std::round(1.0 / minimumRefreshInterval);
-                    page.windowScreenDidChange(*displayId, frameRate);
+            auto& page = drawingAreaProxy->page();
+            if (page.preferences().webAnimationsCustomFrameRateEnabled()) {
+                auto minimumRefreshInterval = _displayLink.maximumRefreshRate;
+                if (minimumRefreshInterval > 0) {
+                    if (auto displayId = page.displayId()) {
+                        WebCore::FramesPerSecond frameRate = std::round(1.0 / minimumRefreshInterval);
+                        page.windowScreenDidChange(*displayId, frameRate);
+                    }
                 }
             }
         }
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to