Title: [150082] trunk/Source/WebKit/blackberry
Revision
150082
Author
commit-qu...@webkit.org
Date
2013-05-14 12:39:39 -0700 (Tue, 14 May 2013)

Log Message

[BlackBerry] Hook up frame render begin/end in PerformanceMonitor
https://bugs.webkit.org/show_bug.cgi?id=116110

Patch by Andrew Lo <a...@rim.com> on 2013-05-14
Reviewed by Rob Buis.

Internally reviewed by Jeff Rogers, Jonathan Jiang.
Internal PR 299155.

Mark frame render begin & end for BlackBerry performance monitoring
in blitVisibleContents.

* Api/BackingStore.cpp:
(BlackBerry::WebKit::BackingStorePrivate::blitVisibleContents):

Modified Paths

Diff

Modified: trunk/Source/WebKit/blackberry/Api/BackingStore.cpp (150081 => 150082)


--- trunk/Source/WebKit/blackberry/Api/BackingStore.cpp	2013-05-14 18:03:11 UTC (rev 150081)
+++ trunk/Source/WebKit/blackberry/Api/BackingStore.cpp	2013-05-14 19:39:39 UTC (rev 150082)
@@ -45,6 +45,7 @@
 #include <BlackBerryPlatformLog.h>
 #include <BlackBerryPlatformMessage.h>
 #include <BlackBerryPlatformMessageClient.h>
+#include <BlackBerryPlatformPerformanceMonitor.h>
 #include <BlackBerryPlatformScreen.h>
 #include <BlackBerryPlatformSettings.h>
 #include <BlackBerryPlatformViewportAccessor.h>
@@ -1160,6 +1161,8 @@
     if (dstRect.isEmpty())
         return;
 
+    BlackBerry::Platform::PerformanceMonitor::instance()->reportFrameRenderBegin();
+
     const Platform::IntRect pixelViewportRect = viewportAccessor->pixelViewportRect();
     const Platform::FloatRect documentViewportRect = viewportAccessor->documentFromPixelContents(pixelViewportRect);
     Platform::IntRect pixelSrcRect = pixelViewportRect;
@@ -1351,6 +1354,8 @@
 #endif
 
     m_webPage->client()->postToSurface(dstRect);
+
+    BlackBerry::Platform::PerformanceMonitor::instance()->reportFrameRenderEnd(true /*didRender*/);
 }
 
 #if USE(ACCELERATED_COMPOSITING)

Modified: trunk/Source/WebKit/blackberry/ChangeLog (150081 => 150082)


--- trunk/Source/WebKit/blackberry/ChangeLog	2013-05-14 18:03:11 UTC (rev 150081)
+++ trunk/Source/WebKit/blackberry/ChangeLog	2013-05-14 19:39:39 UTC (rev 150082)
@@ -1,3 +1,19 @@
+2013-05-14  Andrew Lo  <a...@rim.com>
+
+        [BlackBerry] Hook up frame render begin/end in PerformanceMonitor
+        https://bugs.webkit.org/show_bug.cgi?id=116110
+
+        Reviewed by Rob Buis.
+
+        Internally reviewed by Jeff Rogers, Jonathan Jiang.
+        Internal PR 299155.
+
+        Mark frame render begin & end for BlackBerry performance monitoring
+        in blitVisibleContents.
+
+        * Api/BackingStore.cpp:
+        (BlackBerry::WebKit::BackingStorePrivate::blitVisibleContents):
+
 2013-05-14  Carlos Garcia Campos  <cgar...@igalia.com>
 
         [BlackBerry] Use requestAnimationFrame for animations
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to