Index: gpu/command_buffer/service/command_buffer_service.cc |
=================================================================== |
--- gpu/command_buffer/service/command_buffer_service.cc (revision 92876) |
+++ gpu/command_buffer/service/command_buffer_service.cc (working copy) |
@@ -104,6 +104,10 @@ |
return state; |
} |
+CommandBufferService::State CommandBufferService::GetLastState() { |
+ return GetState(); |
+} |
+ |
CommandBufferService::State CommandBufferService::FlushSync( |
int32 put_offset, int32 last_known_get) { |
if (put_offset < 0 || put_offset > num_entries_) { |
@@ -114,7 +118,7 @@ |
put_offset_ = put_offset; |
if (put_offset_change_callback_.get()) { |
- put_offset_change_callback_->Run(last_known_get == get_offset_); |
+ put_offset_change_callback_->Run(); |
} |
return GetState(); |
@@ -129,7 +133,7 @@ |
put_offset_ = put_offset; |
if (put_offset_change_callback_.get()) { |
- put_offset_change_callback_->Run(false); |
+ put_offset_change_callback_->Run(); |
} |
} |
@@ -261,7 +265,7 @@ |
} |
void CommandBufferService::SetPutOffsetChangeCallback( |
- Callback1<bool>::Type* callback) { |
+ Callback0::Type* callback) { |
put_offset_change_callback_.reset(callback); |
} |