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

Unified Diff: ui/compositor/compositor.h

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
« no previous file with comments | « ui/aura/root_window.cc ('k') | ui/compositor/compositor.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/compositor/compositor.h
diff --git a/ui/compositor/compositor.h b/ui/compositor/compositor.h
index aa773b25e7c330e3ad10c1908666fe60ed8e61e5..ef2f494e79a9628666d17d1b4e23d50eb1fbe7eb 100644
--- a/ui/compositor/compositor.h
+++ b/ui/compositor/compositor.h
@@ -215,6 +215,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.
@@ -268,7 +270,8 @@ class COMPOSITOR_EXPORT Compositor
virtual void didCompleteSwapBuffers() OVERRIDE;
virtual void scheduleComposite() OVERRIDE;
virtual scoped_ptr<cc::FontAtlas> createFontAtlas() OVERRIDE;
-
+ virtual void onReceivedLatencyInfo(
+ const cc::LatencyInfo& latencyInfo) OVERRIDE;
int last_started_frame() { return last_started_frame_; }
int last_ended_frame() { return last_ended_frame_; }
@@ -310,6 +313,8 @@ class COMPOSITOR_EXPORT Compositor
int last_started_frame_;
int last_ended_frame_;
+ int64 frame_number_;
+
bool disable_schedule_composite_;
CompositorLock* compositor_lock_;
« no previous file with comments | « 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