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/process_util.h" | 10 #include "base/process_util.h" |
(...skipping 443 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
454 sync_point, | 454 sync_point, |
455 signal_id))) { | 455 signal_id))) { |
456 return false; | 456 return false; |
457 } | 457 } |
458 | 458 |
459 signal_tasks_.insert(std::make_pair(signal_id, callback)); | 459 signal_tasks_.insert(std::make_pair(signal_id, callback)); |
460 | 460 |
461 return true; | 461 return true; |
462 } | 462 } |
463 | 463 |
| 464 |
| 465 bool CommandBufferProxyImpl::GenerateMailboxNames( |
| 466 unsigned num, |
| 467 std::vector<std::string>* names) { |
| 468 return channel_->GenerateMailboxNames(num, names); |
| 469 } |
| 470 |
464 bool CommandBufferProxyImpl::SetParent( | 471 bool CommandBufferProxyImpl::SetParent( |
465 CommandBufferProxy* parent_command_buffer, | 472 CommandBufferProxy* parent_command_buffer, |
466 uint32 parent_texture_id) { | 473 uint32 parent_texture_id) { |
467 if (last_state_.error != gpu::error::kNoError) | 474 if (last_state_.error != gpu::error::kNoError) |
468 return false; | 475 return false; |
469 | 476 |
470 bool result; | 477 bool result; |
471 if (parent_command_buffer) { | 478 if (parent_command_buffer) { |
472 if (!Send(new GpuCommandBufferMsg_SetParent( | 479 if (!Send(new GpuCommandBufferMsg_SetParent( |
473 route_id_, | 480 route_id_, |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
567 void CommandBufferProxyImpl::SendManagedMemoryStats( | 574 void CommandBufferProxyImpl::SendManagedMemoryStats( |
568 const GpuManagedMemoryStats& stats) { | 575 const GpuManagedMemoryStats& stats) { |
569 if (last_state_.error != gpu::error::kNoError) | 576 if (last_state_.error != gpu::error::kNoError) |
570 return; | 577 return; |
571 | 578 |
572 Send(new GpuCommandBufferMsg_SendClientManagedMemoryStats(route_id_, | 579 Send(new GpuCommandBufferMsg_SendClientManagedMemoryStats(route_id_, |
573 stats)); | 580 stats)); |
574 } | 581 } |
575 | 582 |
576 } // namespace content | 583 } // namespace content |
OLD | NEW |