Changeset 90952 in webkit


Ignore:
Timestamp:
Jul 13, 2011 2:51:14 PM (13 years ago)
Author:
jamesr@google.com
Message:

[chromium] No implementation defined for WTF::monotonicallyIncreasingTime
https://bugs.webkit.org/show_bug.cgi?id=64420

Reviewed by Tony Gentilcore.

Source/WebCore:

Removes some redundant time related code.

  • platform/chromium/PlatformBridge.h:
  • platform/chromium/SystemTimeChromium.cpp:

(WebCore::userIdleTime):

Source/WebKit/chromium:

Provides an implementation of WTF::monotonicallyIncreasingTime() alongside the implementation of
WTF::currentTime().

  • src/ChromiumCurrentTime.cpp:

(WTF::monotonicallyIncreasingTime):

  • src/PlatformBridge.cpp:
Location:
trunk/Source
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r90949 r90952  
     12011-07-13  James Robinson  <jamesr@chromium.org>
     2
     3        [chromium] No implementation defined for WTF::monotonicallyIncreasingTime
     4        https://bugs.webkit.org/show_bug.cgi?id=64420
     5
     6        Reviewed by Tony Gentilcore.
     7
     8        Removes some redundant time related code.
     9
     10        * platform/chromium/PlatformBridge.h:
     11        * platform/chromium/SystemTimeChromium.cpp:
     12        (WebCore::userIdleTime):
     13
    1142011-07-13  Vitaly Repeshko  <vitalyr@chromium.org>
    215
  • trunk/Source/WebCore/platform/chromium/PlatformBridge.h

    r90497 r90952  
    247247    static void suddenTerminationChanged(bool enabled);
    248248
    249     // SystemTime ---------------------------------------------------------
    250     static double currentTime();
    251     static double monotonicallyIncreasingTime();
    252 
    253249    // Theming ------------------------------------------------------------
    254250#if OS(WINDOWS)
  • trunk/Source/WebCore/platform/chromium/SystemTimeChromium.cpp

    r88745 r90952  
    3333
    3434#include "NotImplemented.h"
    35 #include "PlatformBridge.h"
    36 #include <wtf/CurrentTime.h>
    3735
    3836namespace WebCore {
    39 
    40 // Get the current time in seconds since epoch.
    41 double currentTime()
    42 {
    43     return PlatformBridge::currentTime();
    44 }
    45 
    46 double monotonicallyIncreasingTime()
    47 {
    48     return PlatformBridge::monotonicallyIncreasingTime();
    49 }
    5037
    5138float userIdleTime()
     
    5340    // Needed for back/forward cache, which we currently have disabled.
    5441    notImplemented();
    55     return 0.0F;
     42    return 0;
    5643}
    5744
  • trunk/Source/WebKit/chromium/ChangeLog

    r90905 r90952  
     12011-07-13  James Robinson  <jamesr@chromium.org>
     2
     3        [chromium] No implementation defined for WTF::monotonicallyIncreasingTime
     4        https://bugs.webkit.org/show_bug.cgi?id=64420
     5
     6        Reviewed by Tony Gentilcore.
     7
     8        Provides an implementation of WTF::monotonicallyIncreasingTime() alongside the implementation of
     9        WTF::currentTime().
     10
     11        * src/ChromiumCurrentTime.cpp:
     12        (WTF::monotonicallyIncreasingTime):
     13        * src/PlatformBridge.cpp:
     14
    1152011-07-13  Vsevolod Vlasov  <vsevik@chromium.org>
    216
  • trunk/Source/WebKit/chromium/src/ChromiumCurrentTime.cpp

    r50741 r90952  
    4242}
    4343
     44double monotonicallyIncreasingTime()
     45{
     46    return WebKit::webKitClient()->monotonicallyIncreasingTime();
     47}
     48
    4449}  // namespace WTF
  • trunk/Source/WebKit/chromium/src/PlatformBridge.cpp

    r90497 r90952  
    703703{
    704704    webKitClient()->suddenTerminationChanged(enabled);
    705 }
    706 
    707 // SystemTime -----------------------------------------------------------------
    708 
    709 double PlatformBridge::currentTime()
    710 {
    711     return webKitClient()->currentTime();
    712 }
    713 
    714 double PlatformBridge::monotonicallyIncreasingTime()
    715 {
    716     return webKitClient()->monotonicallyIncreasingTime();
    717705}
    718706
Note: See TracChangeset for help on using the changeset viewer.