Changeset 128756 in webkit


Ignore:
Timestamp:
Sep 17, 2012 8:00:42 AM (12 years ago)
Author:
commit-queue@webkit.org
Message:

[BlackBerry] To support "Frames View" of "TimeLine" panel in Inspector
https://bugs.webkit.org/show_bug.cgi?id=96077

Patch by Peter Wang <peter.wang@torchmobile.com.cn> on 2012-09-17
Reviewed by Rob Buis.

Invoke the "instrumentBeginFrame" and "instrumentCancelFrame" at the start and end of processing
render message to record one time of page's update.

  • Api/BackingStore.cpp:

(BlackBerry::WebKit::BackingStorePrivate::instrumentBeginFrame):
(WebKit):
(BlackBerry::WebKit::BackingStorePrivate::instrumentCancelFrame):

  • Api/BackingStore_p.h:
  • WebKitSupport/RenderQueue.cpp:

(BlackBerry::WebKit::RenderQueue::render):

Location:
trunk/Source/WebKit/blackberry
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/blackberry/Api/BackingStore.cpp

    r127650 r128756  
    2929#include "GraphicsContext.h"
    3030#include "InspectorController.h"
     31#include "InspectorInstrumentation.h"
    3132#include "Page.h"
    3233#include "SurfacePool.h"
     
    234235
    235236    pthread_mutex_destroy(&m_mutex);
     237}
     238
     239void BackingStorePrivate::instrumentBeginFrame()
     240{
     241    WebCore::InspectorInstrumentation::didBeginFrame(WebPagePrivate::core(m_webPage));
     242}
     243
     244void BackingStorePrivate::instrumentCancelFrame()
     245{
     246    WebCore::InspectorInstrumentation::didCancelFrame(WebPagePrivate::core(m_webPage));
    236247}
    237248
  • trunk/Source/WebKit/blackberry/Api/BackingStore_p.h

    r126878 r128756  
    102102    BackingStorePrivate();
    103103
     104    void instrumentBeginFrame();
     105    void instrumentCancelFrame();
     106
    104107    // Returns whether direct rendering is explicitly turned on or is
    105108    // required because the surface pool is not large enough to meet
  • trunk/Source/WebKit/blackberry/ChangeLog

    r128755 r128756  
     12012-09-17  Peter Wang  <peter.wang@torchmobile.com.cn>
     2
     3        [BlackBerry] To support "Frames View" of "TimeLine" panel in Inspector
     4        https://bugs.webkit.org/show_bug.cgi?id=96077
     5
     6        Reviewed by Rob Buis.
     7
     8        Invoke the "instrumentBeginFrame" and "instrumentCancelFrame" at the start and end of processing
     9        render message to record one time of page's update.
     10
     11        * Api/BackingStore.cpp:
     12        (BlackBerry::WebKit::BackingStorePrivate::instrumentBeginFrame):
     13        (WebKit):
     14        (BlackBerry::WebKit::BackingStorePrivate::instrumentCancelFrame):
     15        * Api/BackingStore_p.h:
     16        * WebKitSupport/RenderQueue.cpp:
     17        (BlackBerry::WebKit::RenderQueue::render):
     18
    1192012-09-17  Jakob Petsovits  <jpetsovits@rim.com>
    220
  • trunk/Source/WebKit/blackberry/WebKitSupport/RenderQueue.cpp

    r126878 r128756  
    565565#endif
    566566
     567    m_parent->instrumentBeginFrame();
     568
    567569    m_parent->requestLayoutIfNeeded();
    568570
     
    585587    } else if (!m_nonVisibleScrollJobs.empty())
    586588        renderNonVisibleScrollJob();
     589
     590    m_parent->instrumentCancelFrame();
    587591}
    588592
Note: See TracChangeset for help on using the changeset viewer.