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

Unified Diff: mojo/examples/sample_app/gles2_client_impl.h

Issue 384513003: Remove RequestAnimationFrame from mojo, add delayed tasks to RunLoop (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 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: mojo/examples/sample_app/gles2_client_impl.h
diff --git a/mojo/examples/sample_app/gles2_client_impl.h b/mojo/examples/sample_app/gles2_client_impl.h
index dbccbfb17c3427d9b3ebfae83b8d0c9a0313b231..1a968a00f163b609f58f5f1671db8aaa8793e180 100644
--- a/mojo/examples/sample_app/gles2_client_impl.h
+++ b/mojo/examples/sample_app/gles2_client_impl.h
@@ -19,15 +19,12 @@ class GLES2ClientImpl {
void SetSize(const mojo::Size& size);
void HandleInputEvent(const mojo::Event& event);
+ void Draw();
private:
void ContextLost();
static void ContextLostThunk(void* closure);
- void DrawAnimationFrame();
- static void DrawAnimationFrameThunk(void* closure);
-
- void RequestAnimationFrames();
- void CancelAnimationFrames();
+ void WantToDraw();
MojoTimeTicks last_time_;
mojo::Size size_;
@@ -35,7 +32,7 @@ class GLES2ClientImpl {
mojo::Point capture_point_;
mojo::Point last_drag_point_;
MojoTimeTicks drag_start_time_;
- bool getting_animation_frames_;
+ bool waiting_to_draw_;
MojoGLES2Context context_;

Powered by Google App Engine
This is Rietveld 408576698