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

Unified Diff: mojo/gles2/gles2_context.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_context.cc
diff --git a/mojo/gles2/gles2_context.cc b/mojo/gles2/gles2_context.cc
index 701b0fed13d50d06bf72aab87664511be8fac4a4..c454aed439b3dbf23604cde3824c8ce475e55f78 100644
--- a/mojo/gles2/gles2_context.cc
+++ b/mojo/gles2/gles2_context.cc
@@ -23,11 +23,9 @@ const size_t kDefaultMaxTransferBufferSize = 16 * 1024 * 1024;
GLES2Context::GLES2Context(const MojoAsyncWaiter* async_waiter,
ScopedMessagePipeHandle command_buffer_handle,
MojoGLES2ContextLost lost_callback,
- MojoGLES2DrawAnimationFrame animation_callback,
void* closure)
: command_buffer_(this, async_waiter, command_buffer_handle.Pass()),
lost_callback_(lost_callback),
- animation_callback_(animation_callback),
closure_(closure) {}
GLES2Context::~GLES2Context() {}
@@ -57,17 +55,7 @@ bool GLES2Context::Initialize() {
gpu::gles2::GLES2Implementation::kNoLimit);
}
-void GLES2Context::RequestAnimationFrames() {
- command_buffer_.RequestAnimationFrames();
-}
-
-void GLES2Context::CancelAnimationFrames() {
- command_buffer_.CancelAnimationFrames();
-}
-
void GLES2Context::ContextLost() { lost_callback_(closure_); }
-void GLES2Context::DrawAnimationFrame() { animation_callback_(closure_); }
-
} // namespace gles2
} // namespace mojo

Powered by Google App Engine
This is Rietveld 408576698