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

Unified Diff: sky/shell/ui/animator.h

Issue 1230073002: Teach SkyShell.apk to stop posting frames when not visible (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 5 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: sky/shell/ui/animator.h
diff --git a/sky/shell/ui/animator.h b/sky/shell/ui/animator.h
index 15dd2f43f2ec8688de81e180ed1a62a5911b2ee8..cef6624cc6b8b52c91268578bbfdbb7e83ef789f 100644
--- a/sky/shell/ui/animator.h
+++ b/sky/shell/ui/animator.h
@@ -17,7 +17,9 @@ class Animator {
~Animator();
void RequestFrame();
- void CancelFrameRequest();
+
+ void Start();
+ void Stop();
private:
void BeginFrame();
@@ -27,6 +29,7 @@ class Animator {
Engine* engine_;
bool engine_requested_frame_;
bool frame_in_progress_;
+ bool paused_;
base::WeakPtrFactory<Animator> weak_factory_;

Powered by Google App Engine
This is Rietveld 408576698