Changeset 147594 in webkit


Ignore:
Timestamp:
Apr 3, 2013 3:58:32 PM (11 years ago)
Author:
commit-queue@webkit.org
Message:

[BlackBerry] Switch MediaPlayerPrivateBlackBerry.cpp's timer to use CLOCK_MONOTONIC
https://bugs.webkit.org/show_bug.cgi?id=113900

Patch by Otto Derek Cheung <otcheung@rim.com> on 2013-04-03
Reviewed by Rob Buis.
Internally Reviewed by Jeff Rogers.

Timers should use CLOCK_MONOTONIC to avoid undesirable effects when
the user switches the system time.

  • platform/graphics/blackberry/MediaPlayerPrivateBlackBerry.cpp:

(WebCore::MediaPlayerPrivate::drawBufferingAnimation):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r147591 r147594  
     12013-04-03  Otto Derek Cheung  <otcheung@rim.com>
     2
     3        [BlackBerry] Switch MediaPlayerPrivateBlackBerry.cpp's timer to use CLOCK_MONOTONIC
     4        https://bugs.webkit.org/show_bug.cgi?id=113900
     5
     6        Reviewed by Rob Buis.
     7        Internally Reviewed by Jeff Rogers.
     8
     9        Timers should use CLOCK_MONOTONIC to avoid undesirable effects when
     10        the user switches the system time.
     11
     12        * platform/graphics/blackberry/MediaPlayerPrivateBlackBerry.cpp:
     13        (WebCore::MediaPlayerPrivate::drawBufferingAnimation):
     14
    1152013-04-03  Dave Michael  <dmichael@chromium.org>
    216
  • trunk/Source/WebCore/platform/graphics/blackberry/MediaPlayerPrivateBlackBerry.cpp

    r145549 r147594  
    934934        // Rotate the buffering indicator so that it takes 1 second to do 1 revolution.
    935935        timespec time;
    936         clock_gettime(CLOCK_REALTIME, &time);
     936        clock_gettime(CLOCK_MONOTONIC, &time);
    937937        renderMatrix.rotate(time.tv_nsec / 1000000000.0 * 360.0);
    938938
Note: See TracChangeset for help on using the changeset viewer.