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

Unified Diff: mojo/services/gles2/gles2_impl.cc

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_impl.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/services/gles2/gles2_impl.cc
diff --git a/mojo/services/gles2/gles2_impl.cc b/mojo/services/gles2/gles2_impl.cc
index b80d3d7c00fb7c399fd0ae01e6b947c8351c6fd4..6aac1d3965db4e90f760bd4e009e2cebe34d5476 100644
--- a/mojo/services/gles2/gles2_impl.cc
+++ b/mojo/services/gles2/gles2_impl.cc
@@ -19,6 +19,15 @@ GLES2Impl::GLES2Impl(ScopedMessagePipeHandle client)
GLES2Impl::~GLES2Impl() {
}
+void GLES2Impl::RequestAnimationFrames() {
+ timer_.Start(FROM_HERE, base::TimeDelta::FromMilliseconds(16),
+ this, &GLES2Impl::DrawAnimationFrame);
+}
+
+void GLES2Impl::CancelAnimationFrames() {
+ timer_.Stop();
+}
+
void GLES2Impl::Destroy() {
gl_context_.reset();
}
@@ -41,5 +50,9 @@ void GLES2Impl::OnGLContextLost() {
client_->ContextLost();
}
+void GLES2Impl::DrawAnimationFrame() {
+ client_->DrawAnimationFrame();
+}
+
} // namespace services
} // namespace mojo
« no previous file with comments | « mojo/services/gles2/gles2_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698