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

Unified Diff: mojo/services/gles2/gles2_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/services/gles2/gles2.mojom ('k') | mojo/services/gles2/gles2_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/services/gles2/gles2_impl.h
diff --git a/mojo/services/gles2/gles2_impl.h b/mojo/services/gles2/gles2_impl.h
index 63b698075c0615ad44cba538e415b0dbee81cdfa..ad97dae0365e1e0007b4f4d20540771749f7a3fb 100644
--- a/mojo/services/gles2/gles2_impl.h
+++ b/mojo/services/gles2/gles2_impl.h
@@ -6,6 +6,7 @@
#define MOJO_SERVICES_GLES2_GLES2_IMPL_H_
#include "base/memory/scoped_ptr.h"
+#include "base/timer/timer.h"
#include "mojo/public/bindings/lib/remote_ptr.h"
#include "mojo/public/system/core_cpp.h"
#include "mojom/gles2.h"
@@ -24,13 +25,17 @@ class GLES2Impl : public GLES2 {
explicit GLES2Impl(ScopedMessagePipeHandle client);
virtual ~GLES2Impl();
- virtual void Destroy() OVERRIDE;
-
void CreateContext(gfx::AcceleratedWidget widget, const gfx::Size& size);
private:
+ virtual void RequestAnimationFrames() OVERRIDE;
+ virtual void CancelAnimationFrames() OVERRIDE;
+ virtual void Destroy() OVERRIDE;
+
void OnGLContextLost();
+ void DrawAnimationFrame();
+ base::RepeatingTimer<GLES2Impl> timer_;
scoped_ptr<gpu::GLInProcessContext> gl_context_;
RemotePtr<GLES2Client> client_;
« no previous file with comments | « mojo/services/gles2/gles2.mojom ('k') | mojo/services/gles2/gles2_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698