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

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

Issue 128813002: Remove dependencies on base from SampleApp (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove unnecessary change Created 6 years, 11 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 | « mojo/examples/compositor_app/gles2_client_impl.cc ('k') | mojo/examples/sample_app/gles2_client_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 8dbc91d953b9652388d80007d1ddf64700ba644a..35f59ff541fe622e1d2dfc207aeb65f37ac42af7 100644
--- a/mojo/examples/sample_app/gles2_client_impl.h
+++ b/mojo/examples/sample_app/gles2_client_impl.h
@@ -5,8 +5,6 @@
#ifndef MOJO_EXAMPLES_SAMPLE_APP_GLES2_CLIENT_IMPL_H_
#define MOJO_EXAMPLES_SAMPLE_APP_GLES2_CLIENT_IMPL_H_
-#include "base/time/time.h"
-#include "base/timer/timer.h"
#include "mojo/examples/sample_app/spinning_cube.h"
#include "mojo/public/bindings/lib/remote_ptr.h"
#include "mojom/gles2.h"
@@ -28,16 +26,17 @@ class GLES2ClientImpl : public GLES2Client {
uint32_t width,
uint32_t height) MOJO_OVERRIDE;
virtual void ContextLost() MOJO_OVERRIDE;
+ virtual void DrawAnimationFrame() MOJO_OVERRIDE;
- void Draw();
- void StartTimer();
+ void RequestAnimationFrames();
+ void CancelAnimationFrames();
- base::Time last_time_;
- base::RepeatingTimer<GLES2ClientImpl> timer_;
+ MojoTimeTicks last_time_;
SpinningCube cube_;
gfx::PointF capture_point_;
gfx::PointF last_drag_point_;
- base::Time drag_start_time_;
+ MojoTimeTicks drag_start_time_;
+ bool getting_animation_frames_;
RemotePtr<GLES2> service_;
« no previous file with comments | « mojo/examples/compositor_app/gles2_client_impl.cc ('k') | mojo/examples/sample_app/gles2_client_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698