OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "mojo/gles2/command_buffer_client_impl.h" | 5 #include "mojo/gles2/command_buffer_client_impl.h" |
6 | 6 |
7 #include <limits> | 7 #include <limits> |
8 | 8 |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "base/process/process_handle.h" | 10 #include "base/process/process_handle.h" |
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
184 void CommandBufferClientImpl::DestroyTransferBuffer(int32 id) { | 184 void CommandBufferClientImpl::DestroyTransferBuffer(int32 id) { |
185 command_buffer_->DestroyTransferBuffer(id); | 185 command_buffer_->DestroyTransferBuffer(id); |
186 } | 186 } |
187 | 187 |
188 gpu::Capabilities CommandBufferClientImpl::GetCapabilities() { | 188 gpu::Capabilities CommandBufferClientImpl::GetCapabilities() { |
189 // TODO(piman) | 189 // TODO(piman) |
190 NOTIMPLEMENTED(); | 190 NOTIMPLEMENTED(); |
191 return gpu::Capabilities(); | 191 return gpu::Capabilities(); |
192 } | 192 } |
193 | 193 |
194 gfx::GpuMemoryBuffer* CommandBufferClientImpl::CreateGpuMemoryBuffer( | 194 int32_t CommandBufferClientImpl::CreateImage(ClientBuffer buffer, |
| 195 size_t width, |
| 196 size_t height, |
| 197 unsigned internalformat) { |
| 198 // TODO(piman) |
| 199 NOTIMPLEMENTED(); |
| 200 return -1; |
| 201 } |
| 202 |
| 203 void CommandBufferClientImpl::DestroyImage(int32 id) { |
| 204 // TODO(piman) |
| 205 NOTIMPLEMENTED(); |
| 206 } |
| 207 |
| 208 int32_t CommandBufferClientImpl::CreateGpuMemoryBufferImage( |
195 size_t width, | 209 size_t width, |
196 size_t height, | 210 size_t height, |
197 unsigned internalformat, | 211 unsigned internalformat, |
198 unsigned usage, | 212 unsigned usage) { |
199 int32* id) { | |
200 // TODO(piman) | |
201 NOTIMPLEMENTED(); | |
202 return NULL; | |
203 } | |
204 | |
205 void CommandBufferClientImpl::DestroyGpuMemoryBuffer(int32 id) { | |
206 // TODO(piman) | 213 // TODO(piman) |
207 NOTIMPLEMENTED(); | 214 NOTIMPLEMENTED(); |
208 } | 215 } |
209 | 216 |
210 uint32 CommandBufferClientImpl::InsertSyncPoint() { | 217 uint32 CommandBufferClientImpl::InsertSyncPoint() { |
211 // TODO(jamesr): Optimize this. | 218 // TODO(jamesr): Optimize this. |
212 WaitForGetOffsetInRange(last_put_offset_, last_put_offset_); | 219 WaitForGetOffsetInRange(last_put_offset_, last_put_offset_); |
213 return 0; | 220 return 0; |
214 } | 221 } |
215 | 222 |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
277 DidDestroy(); | 284 DidDestroy(); |
278 return; | 285 return; |
279 } | 286 } |
280 | 287 |
281 if (state->generation - last_state_.generation < 0x80000000U) | 288 if (state->generation - last_state_.generation < 0x80000000U) |
282 last_state_ = state.To<State>(); | 289 last_state_ = state.To<State>(); |
283 } | 290 } |
284 | 291 |
285 } // namespace gles2 | 292 } // namespace gles2 |
286 } // namespace mojo | 293 } // namespace mojo |
OLD | NEW |