Changeset 141599 in webkit


Ignore:
Timestamp:
Feb 1, 2013 9:18:16 AM (11 years ago)
Author:
Carlos Garcia Campos
Message:

[GTK] Adapt WorkQueueGtk to the latest changes in WebKit2 after r141497
https://bugs.webkit.org/show_bug.cgi?id=108607

Reviewed by Anders Carlsson.

  • Platform/gtk/WorkQueueGtk.cpp:

(WorkQueue::EventSource::executeEventSource): Remove the is valid
work queue check.
(WorkQueue::EventSource): WorkQueue is now refcounted, so keep a
reference when a new job is scheduled and unref it when it
finishes.

Location:
trunk/Source/WebKit2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r141587 r141599  
     12013-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
    1152013-02-01  Sheriff Bot  <webkit.review.bot@gmail.com>
    216
  • trunk/Source/WebKit2/Platform/gtk/WorkQueueGtk.cpp

    r141580 r141599  
    4343    {
    4444    }
    45     ~EventSource()
    46     {
    47         m_workQueue->deref();
    48     }
    4945
    5046    void cancel()
     
    9288public:
    9389    Function<void()> m_function;
    94     WorkQueue* m_workQueue;
     90    RefPtr<WorkQueue> m_workQueue;
    9591    GCancellable* m_cancellable;
    9692};
     
    204200void WorkQueue::dispatch(const Function<void()>& function)
    205201{
    206     ref();
    207202    GRefPtr<GSource> dispatchSource = adoptGRef(g_idle_source_new());
    208203    ASSERT(dispatchSource);
     
    214209void WorkQueue::dispatchAfterDelay(const Function<void()>& function, double delay)
    215210{
    216     ref();
    217211    GRefPtr<GSource> dispatchSource = adoptGRef(g_timeout_source_new(static_cast<guint>(delay * 1000)));
    218212    ASSERT(dispatchSource);
     
    223217void WorkQueue::dispatchOnTermination(WebKit::PlatformProcessIdentifier process, const Function<void()>& function)
    224218{
    225     ref();
    226219    GRefPtr<GSource> dispatchSource = adoptGRef(g_child_watch_source_new(process));
    227220    ASSERT(dispatchSource);
Note: See TracChangeset for help on using the changeset viewer.