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 | 9 |
10 namespace gpu { | 10 namespace gpu { |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 } | 55 } |
56 | 56 |
57 void GpuControlService::DestroyGpuMemoryBuffer(int32 id) { | 57 void GpuControlService::DestroyGpuMemoryBuffer(int32 id) { |
58 GpuMemoryBufferMap::iterator it = gpu_memory_buffers_.find(id); | 58 GpuMemoryBufferMap::iterator it = gpu_memory_buffers_.find(id); |
59 if (it != gpu_memory_buffers_.end()) | 59 if (it != gpu_memory_buffers_.end()) |
60 gpu_memory_buffers_.erase(it); | 60 gpu_memory_buffers_.erase(it); |
61 | 61 |
62 gpu_memory_buffer_manager_->DestroyGpuMemoryBuffer(id); | 62 gpu_memory_buffer_manager_->DestroyGpuMemoryBuffer(id); |
63 } | 63 } |
64 | 64 |
| 65 uint32 GpuControlService::InsertSyncPoint() { |
| 66 NOTREACHED(); |
| 67 return 0u; |
| 68 } |
| 69 |
| 70 void GpuControlService::SignalSyncPoint(uint32 sync_point, |
| 71 const base::Closure& callback) { |
| 72 NOTREACHED(); |
| 73 } |
| 74 |
65 bool GpuControlService::RegisterGpuMemoryBuffer( | 75 bool GpuControlService::RegisterGpuMemoryBuffer( |
66 int32 id, | 76 int32 id, |
67 gfx::GpuMemoryBufferHandle buffer, | 77 gfx::GpuMemoryBufferHandle buffer, |
68 size_t width, | 78 size_t width, |
69 size_t height, | 79 size_t height, |
70 unsigned internalformat) { | 80 unsigned internalformat) { |
71 return gpu_memory_buffer_manager_->RegisterGpuMemoryBuffer(id, | 81 return gpu_memory_buffer_manager_->RegisterGpuMemoryBuffer(id, |
72 buffer, | 82 buffer, |
73 width, | 83 width, |
74 height, | 84 height, |
75 internalformat); | 85 internalformat); |
76 } | 86 } |
77 | 87 |
78 } // namespace gpu | 88 } // namespace gpu |
OLD | NEW |