[iOS][WK1] Fix initialization of CADisplayLink::preferredFramesPerSecond
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 12 Jan 2017 17:06:50 +0000 (17:06 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 12 Jan 2017 17:06:50 +0000 (17:06 +0000)
https://bugs.webkit.org/show_bug.cgi?id=166956

Patch by Said Abou-Hallawa <sabouhallawa@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:]):

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

Source/WebCore/ChangeLog
Source/WebCore/platform/graphics/ios/DisplayRefreshMonitorIOS.mm

index 3a58d65..1703f82 100644 (file)
@@ -1,3 +1,15 @@
+2017-01-12  Said Abou-Hallawa  <sabouhallawa@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.tea@gmail.com>
 
         Unreviewed, build fix for macOS ports
index cd14864..ff4c2b6 100644 (file)
@@ -57,6 +57,7 @@ using namespace WebCore;
         // 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;
 }