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

Unified Diff: mojo/gles2/gles2_support_impl.cc

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/gles2/gles2_support_impl.cc
diff --git a/mojo/gles2/gles2_support_impl.cc b/mojo/gles2/gles2_support_impl.cc
index 7fd86081dc29ae8d84725a2f9bcfc1c9f71c79a5..99e8bb44dadebc0759dd37261f361e9465ec16cd 100644
--- a/mojo/gles2/gles2_support_impl.cc
+++ b/mojo/gles2/gles2_support_impl.cc
@@ -61,13 +61,11 @@ void GLES2SupportImpl::Terminate() {
MojoGLES2Context GLES2SupportImpl::CreateContext(
MessagePipeHandle handle,
MojoGLES2ContextLost lost_callback,
- MojoGLES2DrawAnimationFrame animation_callback,
void* closure) {
ScopedMessagePipeHandle scoped_handle(handle);
scoped_ptr<GLES2Context> client(new GLES2Context(async_waiter_,
scoped_handle.Pass(),
lost_callback,
- animation_callback,
closure));
if (!client->Initialize())
client.reset();
@@ -92,14 +90,6 @@ void GLES2SupportImpl::SwapBuffers() {
g_gles2_interface.Get().gpu_interface()->SwapBuffers();
}
-void GLES2SupportImpl::RequestAnimationFrames(MojoGLES2Context context) {
- static_cast<GLES2Context*>(context)->RequestAnimationFrames();
-}
-
-void GLES2SupportImpl::CancelAnimationFrames(MojoGLES2Context context) {
- static_cast<GLES2Context*>(context)->CancelAnimationFrames();
-}
-
void* GLES2SupportImpl::GetGLES2Interface(MojoGLES2Context context) {
return static_cast<GLES2Context*>(context)->interface();
}

Powered by Google App Engine
This is Rietveld 408576698