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

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

Issue 253943002: Remove CommandBuffer::GetState (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: I forgot Poland^Wmojo Created 6 years, 8 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/gles2/command_buffer_client_impl.cc ('k') | ppapi/proxy/ppapi_command_buffer_proxy.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 6867183a1244203dd705b0ecec60326e7baa9296..09a187762ccd29ede0d5ab373db63477c89e4bcc 100644
--- a/mojo/services/gles2/command_buffer_impl.cc
+++ b/mojo/services/gles2/command_buffer_impl.cc
@@ -148,7 +148,7 @@ void CommandBufferImpl::Flush(int32_t put_offset) {
void CommandBufferImpl::MakeProgress(int32_t last_get_offset) {
// TODO(piman): handle out-of-order.
AllocationScope scope;
- sync_client_->DidMakeProgress(command_buffer_->GetState());
+ sync_client_->DidMakeProgress(command_buffer_->GetLastState());
}
void CommandBufferImpl::RegisterTransferBuffer(
@@ -184,7 +184,7 @@ void CommandBufferImpl::RequestAnimationFrames() {
void CommandBufferImpl::CancelAnimationFrames() { timer_.Stop(); }
void CommandBufferImpl::OnParseError() {
- gpu::CommandBuffer::State state = command_buffer_->GetState();
+ gpu::CommandBuffer::State state = command_buffer_->GetLastState();
client_->LostContext(state.context_lost_reason);
}
« no previous file with comments | « mojo/gles2/command_buffer_client_impl.cc ('k') | ppapi/proxy/ppapi_command_buffer_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698