| Index: gpu/command_buffer/service/gpu_processor_mac.cc
|
| ===================================================================
|
| --- gpu/command_buffer/service/gpu_processor_mac.cc (revision 67289)
|
| +++ gpu/command_buffer/service/gpu_processor_mac.cc (working copy)
|
| @@ -99,11 +99,22 @@
|
| return surface_->GetSurfaceId();
|
| }
|
|
|
| +uint64 GPUProcessor::swap_buffers_count() const {
|
| + return swap_buffers_count_;
|
| +}
|
| +
|
| +void GPUProcessor::set_acknowledged_swap_buffers_count(
|
| + uint64 acknowledged_swap_buffers_count) {
|
| + acknowledged_swap_buffers_count_ = acknowledged_swap_buffers_count;
|
| +}
|
| +
|
| void GPUProcessor::WillSwapBuffers() {
|
| DCHECK(decoder_.get());
|
| DCHECK(decoder_->GetGLContext());
|
| DCHECK(decoder_->GetGLContext()->IsCurrent());
|
|
|
| + ++swap_buffers_count_;
|
| +
|
| if (surface_.get()) {
|
| surface_->SwapBuffers();
|
| }
|
|
|