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