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

Unified Diff: cc/layer_tree_host_impl.h

Issue 11293121: Add latency measurement system (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: minor input event changes Created 8 years 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: cc/layer_tree_host_impl.h
diff --git a/cc/layer_tree_host_impl.h b/cc/layer_tree_host_impl.h
index f59108087c69209783a0f69da546abbd31e5df69..5539445bcc43f65fe7d6bb227eacdb1bfb2167c6 100644
--- a/cc/layer_tree_host_impl.h
+++ b/cc/layer_tree_host_impl.h
@@ -47,6 +47,7 @@ public:
// Returns true if resources were deleted by this call.
virtual bool reduceContentsTextureMemoryOnImplThread(size_t limitBytes, int priorityCutoff) = 0;
virtual void sendManagedMemoryStats() = 0;
+ virtual void onReceivedLatencyInfo(const WebKit::WebLatencyInfoImpl& latencyInfo) = 0;
};
// PinchZoomViewport models the bounds and offset of the viewport that is used during a pinch-zoom operation.
@@ -121,7 +122,7 @@ public:
// InputHandlerClient implementation
virtual InputHandlerClient::ScrollStatus scrollBegin(gfx::Point, InputHandlerClient::ScrollInputType) OVERRIDE;
- virtual bool scrollBy(const gfx::Point&, const gfx::Vector2d&) OVERRIDE;
+ virtual bool scrollBy(int64 frame_number, const gfx::Point&, const gfx::Vector2d&) OVERRIDE;
virtual void scrollEnd() OVERRIDE;
virtual void pinchGestureBegin() OVERRIDE;
virtual void pinchGestureUpdate(float, gfx::Point) OVERRIDE;
@@ -170,6 +171,7 @@ public:
virtual void setManagedMemoryPolicy(const ManagedMemoryPolicy& policy) OVERRIDE;
virtual void enforceManagedMemoryPolicy(const ManagedMemoryPolicy& policy) OVERRIDE;
virtual bool hasImplThread() const OVERRIDE;
+ virtual void onReceivedLatencyInfo(const WebKit::WebLatencyInfoImpl& latency_info) OVERRIDE;
// TileManagerClient implementation.
virtual void ScheduleManageTiles() OVERRIDE;
@@ -255,6 +257,8 @@ public:
void renderingStats(RenderingStats*) const;
+ void setLatencyInfo(const WebKit::WebLatencyInfoImpl& latency_info);
+
void updateRootScrollLayerImplTransform();
void sendManagedMemoryStats(
@@ -399,6 +403,9 @@ private:
size_t m_lastSentMemoryVisibleAndNearbyBytes;
size_t m_lastSentMemoryUseBytes;
+ WebKit::WebLatencyInfoImpl m_latencyInfo;
+ bool m_createdFrame;
+
DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl);
};
« cc/gl_renderer.h ('K') | « cc/layer_tree_host_client.h ('k') | cc/layer_tree_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698