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

Unified Diff: mojo/services/gles2/command_buffer_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/services/gles2/command_buffer_impl.cc
diff --git a/mojo/services/gles2/command_buffer_impl.cc b/mojo/services/gles2/command_buffer_impl.cc
index 3039b6404a82500462dcb916085ea91bb68c1821..8674f121b236cc3dcb1aee8d06979ca4e042be91 100644
--- a/mojo/services/gles2/command_buffer_impl.cc
+++ b/mojo/services/gles2/command_buffer_impl.cc
@@ -170,22 +170,11 @@ void CommandBufferImpl::Echo(const Callback<void()>& callback) {
callback.Run();
}
-void CommandBufferImpl::RequestAnimationFrames() {
- timer_.Start(FROM_HERE,
- base::TimeDelta::FromMilliseconds(16),
- this,
- &CommandBufferImpl::DrawAnimationFrame);
-}
-
-void CommandBufferImpl::CancelAnimationFrames() { timer_.Stop(); }
-
void CommandBufferImpl::OnParseError() {
gpu::CommandBuffer::State state = command_buffer_->GetLastState();
client()->LostContext(state.context_lost_reason);
}
-void CommandBufferImpl::DrawAnimationFrame() { client()->DrawAnimationFrame(); }
-
void CommandBufferImpl::OnResize(gfx::Size size, float scale_factor) {
surface_->Resize(size);
}
« mojo/examples/sample_app/gles2_client_impl.cc ('K') | « mojo/services/gles2/command_buffer_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698