Changeset 141599 in webkit
- Timestamp:
- Feb 1, 2013 9:18:16 AM (11 years ago)
- Location:
- trunk/Source/WebKit2
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit2/ChangeLog
r141587 r141599 1 2013-02-01 Carlos Garcia Campos <cgarcia@igalia.com> 2 3 [GTK] Adapt WorkQueueGtk to the latest changes in WebKit2 after r141497 4 https://bugs.webkit.org/show_bug.cgi?id=108607 5 6 Reviewed by Anders Carlsson. 7 8 * Platform/gtk/WorkQueueGtk.cpp: 9 (WorkQueue::EventSource::executeEventSource): Remove the is valid 10 work queue check. 11 (WorkQueue::EventSource): WorkQueue is now refcounted, so keep a 12 reference when a new job is scheduled and unref it when it 13 finishes. 14 1 15 2013-02-01 Sheriff Bot <webkit.review.bot@gmail.com> 2 16 -
trunk/Source/WebKit2/Platform/gtk/WorkQueueGtk.cpp
r141580 r141599 43 43 { 44 44 } 45 ~EventSource()46 {47 m_workQueue->deref();48 }49 45 50 46 void cancel() … … 92 88 public: 93 89 Function<void()> m_function; 94 WorkQueue*m_workQueue;90 RefPtr<WorkQueue> m_workQueue; 95 91 GCancellable* m_cancellable; 96 92 }; … … 204 200 void WorkQueue::dispatch(const Function<void()>& function) 205 201 { 206 ref();207 202 GRefPtr<GSource> dispatchSource = adoptGRef(g_idle_source_new()); 208 203 ASSERT(dispatchSource); … … 214 209 void WorkQueue::dispatchAfterDelay(const Function<void()>& function, double delay) 215 210 { 216 ref();217 211 GRefPtr<GSource> dispatchSource = adoptGRef(g_timeout_source_new(static_cast<guint>(delay * 1000))); 218 212 ASSERT(dispatchSource); … … 223 217 void WorkQueue::dispatchOnTermination(WebKit::PlatformProcessIdentifier process, const Function<void()>& function) 224 218 { 225 ref();226 219 GRefPtr<GSource> dispatchSource = adoptGRef(g_child_watch_source_new(process)); 227 220 ASSERT(dispatchSource);
Note: See TracChangeset
for help on using the changeset viewer.