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

Unified Diff: ui/compositor/compositor.h

Issue 10537028: aura: Drop unnecessary composites (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: "" Created 8 years, 6 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 33f6d6b6c3a9ef78348b56518b734b91809b4d01..735954f4df030e9e21527205a25b4d08a0a7b966 100644
--- a/ui/compositor/compositor.h
+++ b/ui/compositor/compositor.h
@@ -214,6 +214,9 @@ class COMPOSITOR_EXPORT Compositor
virtual void didCompleteSwapBuffers();
virtual void scheduleComposite();
+ int last_started_frame() { return last_started_frame_; }
+ int last_ended_frame() { return last_ended_frame_; }
+
private:
friend class base::RefCounted<Compositor>;
@@ -244,6 +247,11 @@ 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_frame_;
+ int last_ended_frame_;
+
+ bool disable_schedule_composite_;
};
} // namespace ui
« 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