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

Unified Diff: ui/compositor/compositor.h

Issue 10453117: Tighter sync and faster ACK on SwapBuffers/PostSubBuffers (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 8 years, 7 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: ui/compositor/compositor.h
diff --git a/ui/compositor/compositor.h b/ui/compositor/compositor.h
index 33f6d6b6c3a9ef78348b56518b734b91809b4d01..03552de358fb22112c66eda0834b4b978490ea96 100644
--- a/ui/compositor/compositor.h
+++ b/ui/compositor/compositor.h
@@ -214,6 +214,10 @@ class COMPOSITOR_EXPORT Compositor
virtual void didCompleteSwapBuffers();
virtual void scheduleComposite();
+ int last_started_id() { return last_started_id_; }
+ int last_will_end_id() { return last_will_end_id_; }
+ int last_ended_id() { return last_ended_id_; }
+
private:
friend class base::RefCounted<Compositor>;
@@ -244,6 +248,10 @@ class COMPOSITOR_EXPORT Compositor
// The device scale factor of the monitor that this compositor is compositing
// layers on.
float device_scale_factor_;
+
+ int last_started_id_;
piman 2012/06/04 18:20:39 naming bikeshedding: mind calling these last_start
+ int last_will_end_id_;
+ int last_ended_id_;
};
} // namespace ui

Powered by Google App Engine
This is Rietveld 408576698