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

Unified Diff: ui/compositor/compositor.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: ui/compositor/compositor.h
diff --git a/ui/compositor/compositor.h b/ui/compositor/compositor.h
index 1a2324f1cf2a7d8d37490eea0b1a2e4738fbd697..3f7b1ea349a0e086afa922269d1d9360d75d8f43 100644
--- a/ui/compositor/compositor.h
+++ b/ui/compositor/compositor.h
@@ -210,6 +210,8 @@ class COMPOSITOR_EXPORT Compositor
// the whole frame needs to be drawn.
void ScheduleFullDraw();
+ int64 SetInputNumber(int64 input_number);
+
// Reads the region |bounds_in_pixel| of the contents of the last rendered
// frame into the given bitmap.
// Returns false if the pixels could not be read.
@@ -263,7 +265,8 @@ class COMPOSITOR_EXPORT Compositor
virtual void didCompleteSwapBuffers() OVERRIDE;
virtual void scheduleComposite() OVERRIDE;
virtual scoped_ptr<cc::FontAtlas> createFontAtlas() OVERRIDE;
-
+ virtual void onReceivedLatencyInfo(
+ const WebKit::WebLatencyInfoImpl& latencyInfo) OVERRIDE;
int last_started_frame() { return last_started_frame_; }
int last_ended_frame() { return last_ended_frame_; }
@@ -305,6 +308,8 @@ class COMPOSITOR_EXPORT Compositor
int last_started_frame_;
int last_ended_frame_;
+ int64 frame_number_;
+
bool disable_schedule_composite_;
CompositorLock* compositor_lock_;
« cc/gl_renderer.h ('K') | « ui/aura/root_window.cc ('k') | ui/compositor/compositor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698