Last active
December 18, 2015 10:09
-
-
Save zenoalbisser/5766278 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/Source/WebKit2/UIProcess/API/qt/qquickwebpage.cpp b/Source/WebKit2/UIProcess/API/qt/qquickwebpage.cpp | |
index e8e646a..fdde3d2 100644 | |
--- a/Source/WebKit2/UIProcess/API/qt/qquickwebpage.cpp | |
+++ b/Source/WebKit2/UIProcess/API/qt/qquickwebpage.cpp | |
@@ -32,6 +32,8 @@ | |
#include <WKPage.h> | |
#include <WebCore/CoordinatedGraphicsScene.h> | |
+#include <QDateTime> | |
+ | |
using namespace WebKit; | |
QQuickWebPage::QQuickWebPage(QQuickWebView* viewportItem) | |
@@ -68,6 +70,15 @@ void QQuickWebPagePrivate::paint(QPainter* painter) | |
QSGNode* QQuickWebPage::updatePaintNode(QSGNode* oldNode, UpdatePaintNodeData*) | |
{ | |
+ // fprintf(stderr, "QQuickWebPage::updatePaintNode\n"); | |
+ static uint64_t prev_msec = 0; | |
+ uint64_t msec = QDateTime::currentMSecsSinceEpoch(); | |
+ if (prev_msec) { | |
+ fprintf(stderr, "dt: %lld\n", msec - prev_msec); | |
+ } | |
+ prev_msec = msec; | |
+ | |
+ update(); | |
QQuickWebViewPrivate* webViewPrivate = QQuickWebViewPrivate::get(d->viewportItem); | |
WebCore::CoordinatedGraphicsScene* scene = webViewPrivate->coordinatedGraphicsScene(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment