Title: [210663] trunk/Source/WebCore
Revision
210663
Author
commit-qu...@webkit.org
Date
2017-01-12 09:06:50 -0800 (Thu, 12 Jan 2017)

Log Message

[iOS][WK1] Fix initialization of CADisplayLink::preferredFramesPerSecond
https://bugs.webkit.org/show_bug.cgi?id=166956

Patch by Said Abou-Hallawa <sabouhall...@apple.com> on 2017-01-12
Reviewed by Tim Horton.

Set this option to 60fps instead of leaving set to the default.

* platform/graphics/ios/DisplayRefreshMonitorIOS.mm:
(-[WebDisplayLinkHandler initWithMonitor:]):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (210662 => 210663)


--- trunk/Source/WebCore/ChangeLog	2017-01-12 16:46:18 UTC (rev 210662)
+++ trunk/Source/WebCore/ChangeLog	2017-01-12 17:06:50 UTC (rev 210663)
@@ -1,3 +1,15 @@
+2017-01-12  Said Abou-Hallawa  <sabouhall...@apple.com>
+
+        [iOS][WK1] Fix initialization of CADisplayLink::preferredFramesPerSecond
+        https://bugs.webkit.org/show_bug.cgi?id=166956
+
+        Reviewed by Tim Horton.
+        
+        Set this option to 60fps instead of leaving set to the default.
+
+        * platform/graphics/ios/DisplayRefreshMonitorIOS.mm:
+        (-[WebDisplayLinkHandler initWithMonitor:]):
+
 2017-01-12  Yusuke Suzuki  <utatane....@gmail.com>
 
         Unreviewed, build fix for macOS ports

Modified: trunk/Source/WebCore/platform/graphics/ios/DisplayRefreshMonitorIOS.mm (210662 => 210663)


--- trunk/Source/WebCore/platform/graphics/ios/DisplayRefreshMonitorIOS.mm	2017-01-12 16:46:18 UTC (rev 210662)
+++ trunk/Source/WebCore/platform/graphics/ios/DisplayRefreshMonitorIOS.mm	2017-01-12 17:06:50 UTC (rev 210663)
@@ -57,6 +57,7 @@
         // Note that CADisplayLink retains its target (self), so a call to -invalidate is needed on teardown.
         m_displayLink = [CADisplayLink displayLinkWithTarget:self selector:@selector(handleDisplayLink:)];
         [m_displayLink addToRunLoop:WebThreadNSRunLoop() forMode:NSDefaultRunLoopMode];
+        m_displayLink.preferredFramesPerSecond = 60;
     }
     return self;
 }
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to