OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2010, 2011 Research In Motion Limited. All rights reserved. | 2 * Copyright (C) 2010, 2011 Research In Motion Limited. All rights reserved. |
3 * | 3 * |
4 * This library is free software; you can redistribute it and/or | 4 * This library is free software; you can redistribute it and/or |
5 * modify it under the terms of the GNU Lesser General Public | 5 * modify it under the terms of the GNU Lesser General Public |
6 * License as published by the Free Software Foundation; either | 6 * License as published by the Free Software Foundation; either |
7 * version 2 of the License, or (at your option) any later version. | 7 * version 2 of the License, or (at your option) any later version. |
8 * | 8 * |
9 * This library is distributed in the hope that it will be useful, | 9 * This library is distributed in the hope that it will be useful, |
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 | 74 |
75 void DisplayRefreshMonitor::displayLinkFired() | 75 void DisplayRefreshMonitor::displayLinkFired() |
76 { | 76 { |
77 MutexLocker lock(m_mutex); | 77 MutexLocker lock(m_mutex); |
78 | 78 |
79 if (!m_scheduled || !m_previousFrameDone) | 79 if (!m_scheduled || !m_previousFrameDone) |
80 return; | 80 return; |
81 | 81 |
82 m_previousFrameDone = false; | 82 m_previousFrameDone = false; |
83 | 83 |
84 m_monotonicAnimationStartTime = monotonicallyIncreasingTime(); | 84 m_timestamp = currentTime(); |
85 | 85 |
86 callOnMainThread(refreshDisplayOnMainThread, this); | 86 callOnMainThread(refreshDisplayOnMainThread, this); |
87 } | 87 } |
88 | 88 |
89 } | 89 } |
90 | 90 |
91 #endif // USE(REQUEST_ANIMATION_FRAME_DISPLAY_MONITOR) | 91 #endif // USE(REQUEST_ANIMATION_FRAME_DISPLAY_MONITOR) |
OLD | NEW |