| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2010 Apple Inc. All rights reserved. | 2 * Copyright (C) 2010 Apple Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 DisplayRefreshMonitor::DisplayRefreshMonitor(PlatformDisplayID displayID) | 55 DisplayRefreshMonitor::DisplayRefreshMonitor(PlatformDisplayID displayID) |
| 56 : m_monotonicAnimationStartTime(0) | 56 : m_monotonicAnimationStartTime(0) |
| 57 , m_active(true) | 57 , m_active(true) |
| 58 , m_scheduled(false) | 58 , m_scheduled(false) |
| 59 , m_previousFrameDone(true) | 59 , m_previousFrameDone(true) |
| 60 , m_unscheduledFireCount(0) | 60 , m_unscheduledFireCount(0) |
| 61 , m_displayID(displayID) | 61 , m_displayID(displayID) |
| 62 #if PLATFORM(MAC) | 62 #if PLATFORM(MAC) |
| 63 , m_displayLink(0) | 63 , m_displayLink(0) |
| 64 #endif | 64 #endif |
| 65 #if PLATFORM(BLACKBERRY) | |
| 66 , m_animationClient(0) | |
| 67 #endif | |
| 68 { | 65 { |
| 69 } | 66 } |
| 70 | 67 |
| 71 void DisplayRefreshMonitor::handleDisplayRefreshedNotificationOnMainThread(void*
data) | 68 void DisplayRefreshMonitor::handleDisplayRefreshedNotificationOnMainThread(void*
data) |
| 72 { | 69 { |
| 73 DisplayRefreshMonitor* monitor = static_cast<DisplayRefreshMonitor*>(data); | 70 DisplayRefreshMonitor* monitor = static_cast<DisplayRefreshMonitor*>(data); |
| 74 monitor->displayDidRefresh(); | 71 monitor->displayDidRefresh(); |
| 75 } | 72 } |
| 76 | 73 |
| 77 void DisplayRefreshMonitor::addClient(DisplayRefreshMonitorClient* client) | 74 void DisplayRefreshMonitor::addClient(DisplayRefreshMonitorClient* client) |
| (...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 192 unregisterClient(client); | 189 unregisterClient(client); |
| 193 client->setDisplayID(displayID); | 190 client->setDisplayID(displayID); |
| 194 registerClient(client); | 191 registerClient(client); |
| 195 if (client->m_scheduled) | 192 if (client->m_scheduled) |
| 196 scheduleAnimation(client); | 193 scheduleAnimation(client); |
| 197 } | 194 } |
| 198 | 195 |
| 199 } | 196 } |
| 200 | 197 |
| 201 #endif // USE(REQUEST_ANIMATION_FRAME_DISPLAY_MONITOR) | 198 #endif // USE(REQUEST_ANIMATION_FRAME_DISPLAY_MONITOR) |
| OLD | NEW |