Changeset 117214 in webkit
- Timestamp:
- May 15, 2012 9:07:52 PM (12 years ago)
- Location:
- trunk/Source
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r117211 r117214 1 2012-05-15 Tien-Ren Chen <trchen@chromium.org> 2 3 [Chromium] CCTimer::isActive() is incorrect inside tick callback 4 https://bugs.webkit.org/show_bug.cgi?id=86513 5 6 This patch implements CCTimer::isActive() by clearing the task pointer 7 when the timer fires. 8 9 Reviewed by James Robinson. 10 11 No new tests. Existing tests updated accordingly. 12 13 * platform/graphics/chromium/cc/CCTimer.cpp: 14 (WebCore::CCTimerTask::performTask): 15 * rendering/RenderLayerBacking.cpp: 16 1 17 2012-05-15 Kentaro Hara <haraken@chromium.org> 2 18 -
trunk/Source/WebCore/platform/graphics/chromium/cc/CCTimer.cpp
r111308 r117214 53 53 void performTask() 54 54 { 55 if (!m_timer || !m_timer->m_client)55 if (!m_timer) 56 56 return; 57 57 58 m_timer->m_client->onTimerFired(); 58 CCTimerClient* client = m_timer->m_client; 59 60 m_timer->stop(); 61 if (client) 62 client->onTimerFired(); 59 63 } 60 64 -
trunk/Source/WebKit/chromium/ChangeLog
r117213 r117214 1 2012-05-15 Tien-Ren Chen <trchen@chromium.org> 2 3 [Chromium] CCTimer::isActive() is incorrect inside tick callback 4 https://bugs.webkit.org/show_bug.cgi?id=86513 5 6 Update test cases to verify CCTimer::isActive() values. 7 8 Reviewed by James Robinson. 9 10 * tests/CCTimerTest.cpp: 11 (WebKitTests::TEST_F): 12 1 13 2012-05-15 Sheriff Bot <webkit.review.bot@gmail.com> 2 14 -
trunk/Source/WebKit/chromium/tests/CCTimerTest.cpp
r111308 r117214 56 56 CCTimer timer(&m_thread, this); 57 57 timer.startOneShot(0.001); 58 58 EXPECT_TRUE(timer.isActive()); 59 59 m_thread.runPendingTask(); 60 EXPECT_FALSE(timer.isActive()); 60 61 EXPECT_TRUE(m_flag); 61 62 EXPECT_FALSE(m_thread.hasPendingTask()); … … 66 67 CCTimer timer(&m_thread, this); 67 68 timer.startOneShot(0.001); 69 EXPECT_TRUE(timer.isActive()); 68 70 timer.stop(); 71 EXPECT_FALSE(timer.isActive()); 69 72 70 73 m_thread.runPendingTask();
Note: See TracChangeset
for help on using the changeset viewer.