Changeset 110356 in webkit
- Timestamp:
- Mar 9, 2012 6:09:15 PM (12 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r110349 r110356 1 2012-03-09 Dan Bernstein <mitz@apple.com> 2 3 <rdar://problem/11018851> Crash in DisplayRefreshMonitor::notifyClients() 4 https://bugs.webkit.org/show_bug.cgi?id=80740 5 6 Reviewed by Sam Weinig. 7 8 No test, since this race condition cannot be reproduced reliably. 9 10 * platform/graphics/mac/DisplayRefreshMonitorMac.cpp: 11 (WebCore::DisplayRefreshMonitor::~DisplayRefreshMonitor): Changed to stop the display link 12 first, then cancel any outstanding calls to refreshDisplayOnMainThread(). When doing things 13 the other way around, the display link can fire after outstanding calls have been canceled, 14 and enqueue new calls on the main thread, which will be dispatched after monitor destruction. 15 1 16 2012-03-09 Pratik Solanki <psolanki@apple.com> 2 17 -
trunk/Source/WebCore/platform/graphics/mac/DisplayRefreshMonitorMac.cpp
r103361 r110356 49 49 DisplayRefreshMonitor::~DisplayRefreshMonitor() 50 50 { 51 cancelCallOnMainThread(DisplayRefreshMonitor::refreshDisplayOnMainThread, this);52 53 51 if (m_displayLink) { 54 52 CVDisplayLinkStop(m_displayLink); … … 56 54 m_displayLink = 0; 57 55 } 56 57 cancelCallOnMainThread(DisplayRefreshMonitor::refreshDisplayOnMainThread, this); 58 58 } 59 59
Note: See TracChangeset
for help on using the changeset viewer.