| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "gpu/command_buffer/service/gpu_control_service.h" | 5 #include "gpu/command_buffer/service/gpu_control_service.h" |
| 6 | 6 |
| 7 #include "gpu/command_buffer/client/gpu_memory_buffer_factory.h" | 7 #include "gpu/command_buffer/client/gpu_memory_buffer_factory.h" |
| 8 #include "gpu/command_buffer/service/gpu_memory_buffer_manager.h" | 8 #include "gpu/command_buffer/service/gpu_memory_buffer_manager.h" |
| 9 #include "gpu/command_buffer/service/mailbox_manager.h" | 9 #include "gpu/command_buffer/service/mailbox_manager.h" |
| 10 #include "gpu/command_buffer/service/query_manager.h" | 10 #include "gpu/command_buffer/service/query_manager.h" |
| (...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 116 size_t width, | 116 size_t width, |
| 117 size_t height, | 117 size_t height, |
| 118 unsigned internalformat) { | 118 unsigned internalformat) { |
| 119 return gpu_memory_buffer_manager_->RegisterGpuMemoryBuffer(id, | 119 return gpu_memory_buffer_manager_->RegisterGpuMemoryBuffer(id, |
| 120 buffer, | 120 buffer, |
| 121 width, | 121 width, |
| 122 height, | 122 height, |
| 123 internalformat); | 123 internalformat); |
| 124 } | 124 } |
| 125 | 125 |
| 126 bool GpuControlService::GenerateMailboxNames( | |
| 127 unsigned num, std::vector<gpu::Mailbox>* names) { | |
| 128 DCHECK(names->empty()); | |
| 129 names->resize(num); | |
| 130 for (unsigned i = 0; i < num; ++i) | |
| 131 mailbox_manager_->GenerateMailbox(&(*names)[i]); | |
| 132 return true; | |
| 133 } | |
| 134 | |
| 135 } // namespace gpu | 126 } // namespace gpu |
| OLD | NEW |