OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "content/common/gpu/client/command_buffer_proxy_impl.h" | 5 #include "content/common/gpu/client/command_buffer_proxy_impl.h" |
6 | 6 |
7 #include "base/callback.h" | 7 #include "base/callback.h" |
8 #include "base/debug/trace_event.h" | 8 #include "base/debug/trace_event.h" |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "base/memory/shared_memory.h" | 10 #include "base/memory/shared_memory.h" |
(...skipping 344 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
355 transfer_buffers_[id] = buffer; | 355 transfer_buffers_[id] = buffer; |
356 | 356 |
357 return buffer; | 357 return buffer; |
358 } | 358 } |
359 | 359 |
360 void CommandBufferProxyImpl::SetToken(int32 token) { | 360 void CommandBufferProxyImpl::SetToken(int32 token) { |
361 // Not implemented in proxy. | 361 // Not implemented in proxy. |
362 NOTREACHED(); | 362 NOTREACHED(); |
363 } | 363 } |
364 | 364 |
| 365 void CommandBufferProxyImpl::SetSerial(uint32 serial) { |
| 366 // Not implemented in proxy. |
| 367 NOTREACHED(); |
| 368 } |
| 369 |
365 void CommandBufferProxyImpl::SetParseError( | 370 void CommandBufferProxyImpl::SetParseError( |
366 gpu::error::Error error) { | 371 gpu::error::Error error) { |
367 // Not implemented in proxy. | 372 // Not implemented in proxy. |
368 NOTREACHED(); | 373 NOTREACHED(); |
369 } | 374 } |
370 | 375 |
371 void CommandBufferProxyImpl::SetContextLostReason( | 376 void CommandBufferProxyImpl::SetContextLostReason( |
372 gpu::error::ContextLostReason reason) { | 377 gpu::error::ContextLostReason reason) { |
373 // Not implemented in proxy. | 378 // Not implemented in proxy. |
374 NOTREACHED(); | 379 NOTREACHED(); |
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
595 const GpuConsoleMessageCallback& callback) { | 600 const GpuConsoleMessageCallback& callback) { |
596 console_message_callback_ = callback; | 601 console_message_callback_ = callback; |
597 } | 602 } |
598 | 603 |
599 void CommandBufferProxyImpl::TryUpdateState() { | 604 void CommandBufferProxyImpl::TryUpdateState() { |
600 if (last_state_.error == gpu::error::kNoError) | 605 if (last_state_.error == gpu::error::kNoError) |
601 shared_state()->Read(&last_state_); | 606 shared_state()->Read(&last_state_); |
602 } | 607 } |
603 | 608 |
604 } // namespace content | 609 } // namespace content |
OLD | NEW |