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

Unified Diff: mojo/gles2/command_buffer_client_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/command_buffer_client_impl.cc
diff --git a/mojo/gles2/command_buffer_client_impl.cc b/mojo/gles2/command_buffer_client_impl.cc
index cc6b9d020346bf204fdd31c0dee1c20f2b1a5755..84c67ab3be5251f3bad286a37a8c56d92d3c3f94 100644
--- a/mojo/gles2/command_buffer_client_impl.cc
+++ b/mojo/gles2/command_buffer_client_impl.cc
@@ -44,7 +44,6 @@ bool CreateMapAndDupSharedBuffer(size_t size,
CommandBufferDelegate::~CommandBufferDelegate() {}
void CommandBufferDelegate::ContextLost() {}
-void CommandBufferDelegate::DrawAnimationFrame() {}
class CommandBufferClientImpl::SyncClientImpl
: public InterfaceImpl<CommandBufferSyncClient> {
@@ -252,14 +251,6 @@ uint32 CommandBufferClientImpl::CreateStreamTexture(uint32 texture_id) {
return 0;
}
-void CommandBufferClientImpl::RequestAnimationFrames() {
- command_buffer_->RequestAnimationFrames();
-}
-
-void CommandBufferClientImpl::CancelAnimationFrames() {
- command_buffer_->CancelAnimationFrames();
-}
-
void CommandBufferClientImpl::DidDestroy() {
LostContext(gpu::error::kUnknown);
}
@@ -271,10 +262,6 @@ void CommandBufferClientImpl::LostContext(int32_t lost_reason) {
delegate_->ContextLost();
}
-void CommandBufferClientImpl::DrawAnimationFrame() {
- delegate_->DrawAnimationFrame();
-}
-
void CommandBufferClientImpl::OnConnectionError() {
LostContext(gpu::error::kUnknown);
}

Powered by Google App Engine
This is Rietveld 408576698