Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(424)

Unified Diff: webkit/compositor_bindings/web_layer_tree_view_impl.cc

Issue 11293121: Add latency measurement system (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: create cc::LatencyInfo Created 7 years, 12 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: webkit/compositor_bindings/web_layer_tree_view_impl.cc
diff --git a/webkit/compositor_bindings/web_layer_tree_view_impl.cc b/webkit/compositor_bindings/web_layer_tree_view_impl.cc
index 33f29bb0a5f401bfd1cc4c37fe00a4d9a244f84b..d104e9951bf0cd45e9174aac754b03640cc8a993 100644
--- a/webkit/compositor_bindings/web_layer_tree_view_impl.cc
+++ b/webkit/compositor_bindings/web_layer_tree_view_impl.cc
@@ -20,6 +20,7 @@
#include "third_party/WebKit/Source/Platform/chromium/public/WebSize.h"
#include "web_layer_impl.h"
#include "web_to_ccinput_handler_adapter.h"
+#include "webkit/compositor_bindings/web_latency_info_impl.h"
#include "webkit/compositor_bindings/web_rendering_stats_impl.h"
using namespace cc;
@@ -223,6 +224,11 @@ void WebLayerTreeViewImpl::loseCompositorContext(int numTimes)
m_layerTreeHost->loseOutputSurface(numTimes);
}
+void WebLayerTreeViewImpl::setLatencyInfo(const WebKit::WebLatencyInfo& latencyInfo)
+{
+ m_layerTreeHost->setLatencyInfo(static_cast<const WebKit::WebLatencyInfoImpl&>(latencyInfo).latency_info);
+}
+
void WebLayerTreeViewImpl::willBeginFrame()
{
m_client->willBeginFrame();
@@ -293,4 +299,11 @@ void WebLayerTreeViewImpl::scheduleComposite()
m_client->scheduleComposite();
}
+void WebLayerTreeViewImpl::onReceivedLatencyInfo(const cc::LatencyInfo& latencyInfo)
+{
+ WebKit::WebLatencyInfoImpl latencyInfoImpl;
+ latencyInfoImpl.latency_info = latencyInfo;
+ m_client->onReceivedLatencyInfo(static_cast<const WebKit::WebLatencyInfo&>(latencyInfoImpl));
+}
+
} // namespace WebKit
« no previous file with comments | « webkit/compositor_bindings/web_layer_tree_view_impl.h ('k') | webkit/compositor_bindings/web_to_ccinput_handler_adapter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698