Changeset 261264 in webkit


Ignore:
Timestamp:
May 6, 2020, 8:40:42 PM (5 years ago)
Author:
Fujii Hironori
Message:

[Win] Implement DisplayRefreshMonitor by using RunLoop::Timer
https://bugs.webkit.org/show_bug.cgi?id=211431

Reviewed by Don Olmstead.

Source/WebCore:

  • PlatformWin.cmake:
  • platform/graphics/DisplayRefreshMonitor.cpp:

(WebCore::DisplayRefreshMonitor::createDefaultDisplayRefreshMonitor):

  • platform/graphics/win/DisplayRefreshMonitorWin.cpp: Added.

(WebCore::DisplayRefreshMonitorWin::create):
(WebCore::DisplayRefreshMonitorWin::DisplayRefreshMonitorWin):
(WebCore::DisplayRefreshMonitorWin::requestRefreshCallback):
(WebCore::DisplayRefreshMonitorWin::displayLinkFired):

  • platform/graphics/win/DisplayRefreshMonitorWin.h: Added.

Source/WTF:

USE_REQUEST_ANIMATION_FRAME_DISPLAY_MONITOR is turned off only for Windows ports.
Turn it on, and add DisplayRefreshMonitorWin.

I'll remove USE_REQUEST_ANIMATION_FRAME_DISPLAY_MONITOR macro in a follow-up patch.

  • wtf/PlatformUse.h:
Location:
trunk/Source
Files:
2 added
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WTF/ChangeLog

    r261257 r261264  
     12020-05-06  Yoshiaki Jitsukawa  <yoshiaki.jitsukawa@sony.com> and Fujii Hironori  <Hironori.Fujii@sony.com>
     2
     3        [Win] Implement DisplayRefreshMonitor by using RunLoop::Timer
     4        https://bugs.webkit.org/show_bug.cgi?id=211431
     5
     6        Reviewed by Don Olmstead.
     7
     8        USE_REQUEST_ANIMATION_FRAME_DISPLAY_MONITOR is turned off only for Windows ports.
     9        Turn it on, and add DisplayRefreshMonitorWin.
     10
     11        I'll remove USE_REQUEST_ANIMATION_FRAME_DISPLAY_MONITOR macro in a follow-up patch.
     12
     13        * wtf/PlatformUse.h:
     14
    1152020-05-06  Darin Adler  <darin@apple.com>
    216
  • trunk/Source/WTF/wtf/PlatformUse.h

    r261234 r261264  
    188188#endif
    189189
    190 #if !PLATFORM(WIN)
    191190#define USE_REQUEST_ANIMATION_FRAME_DISPLAY_MONITOR 1
    192 #endif
    193191
    194192#if !defined(USE_ZLIB)
  • trunk/Source/WebCore/ChangeLog

    r261261 r261264  
     12020-05-06  Yoshiaki Jitsukawa  <yoshiaki.jitsukawa@sony.com> and Fujii Hironori  <Hironori.Fujii@sony.com>
     2
     3        [Win] Implement DisplayRefreshMonitor by using RunLoop::Timer
     4        https://bugs.webkit.org/show_bug.cgi?id=211431
     5
     6        Reviewed by Don Olmstead.
     7
     8        * PlatformWin.cmake:
     9        * platform/graphics/DisplayRefreshMonitor.cpp:
     10        (WebCore::DisplayRefreshMonitor::createDefaultDisplayRefreshMonitor):
     11        * platform/graphics/win/DisplayRefreshMonitorWin.cpp: Added.
     12        (WebCore::DisplayRefreshMonitorWin::create):
     13        (WebCore::DisplayRefreshMonitorWin::DisplayRefreshMonitorWin):
     14        (WebCore::DisplayRefreshMonitorWin::requestRefreshCallback):
     15        (WebCore::DisplayRefreshMonitorWin::displayLinkFired):
     16        * platform/graphics/win/DisplayRefreshMonitorWin.h: Added.
     17
    1182020-05-06  Zalan Bujtas  <zalan@apple.com>
    219
  • trunk/Source/WebCore/PlatformWin.cmake

    r256892 r261264  
    5353    platform/graphics/win/ComplexTextControllerUniscribe.cpp
    5454    platform/graphics/win/DIBPixelData.cpp
     55    platform/graphics/win/DisplayRefreshMonitorWin.cpp
    5556    platform/graphics/win/FloatPointDirect2D.cpp
    5657    platform/graphics/win/FloatRectDirect2D.cpp
  • trunk/Source/WebCore/platform/graphics/DisplayRefreshMonitor.cpp

    r260752 r261264  
    3939#elif PLATFORM(GTK)
    4040#include "DisplayRefreshMonitorGtk.h"
     41#elif PLATFORM(WIN)
     42#include "DisplayRefreshMonitorWin.h"
    4143#endif
    4244
     
    5355#if PLATFORM(GTK) && !USE(GTK4)
    5456    return DisplayRefreshMonitorGtk::create(displayID);
     57#endif
     58#if PLATFORM(WIN)
     59    return DisplayRefreshMonitorWin::create(displayID);
    5560#endif
    5661    UNUSED_PARAM(displayID);
Note: See TracChangeset for help on using the changeset viewer.