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 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
201 NOTIMPLEMENTED(); | 201 NOTIMPLEMENTED(); |
202 return NULL; | 202 return NULL; |
203 } | 203 } |
204 | 204 |
205 void CommandBufferClientImpl::DestroyGpuMemoryBuffer(int32 id) { | 205 void CommandBufferClientImpl::DestroyGpuMemoryBuffer(int32 id) { |
206 // TODO(piman) | 206 // TODO(piman) |
207 NOTIMPLEMENTED(); | 207 NOTIMPLEMENTED(); |
208 } | 208 } |
209 | 209 |
210 uint32 CommandBufferClientImpl::InsertSyncPoint() { | 210 uint32 CommandBufferClientImpl::InsertSyncPoint() { |
211 // TODO(jamesr): Optimize this. | 211 // TODO(piman) |
212 WaitForGetOffsetInRange(last_put_offset_, last_put_offset_); | 212 NOTIMPLEMENTED(); |
213 return 0; | 213 return 0; |
214 } | 214 } |
215 | 215 |
216 uint32 CommandBufferClientImpl::InsertFutureSyncPoint() { | 216 uint32 CommandBufferClientImpl::InsertFutureSyncPoint() { |
217 // TODO(jamesr): Optimize this. | 217 // TODO(piman) |
218 WaitForGetOffsetInRange(last_put_offset_, last_put_offset_); | 218 NOTIMPLEMENTED(); |
219 return 0; | 219 return 0; |
220 } | 220 } |
221 | 221 |
222 void CommandBufferClientImpl::RetireSyncPoint(uint32 sync_point) { | 222 void CommandBufferClientImpl::RetireSyncPoint(uint32 sync_point) { |
223 // TODO(piman) | 223 // TODO(piman) |
224 NOTIMPLEMENTED(); | 224 NOTIMPLEMENTED(); |
225 } | 225 } |
226 | 226 |
227 void CommandBufferClientImpl::SignalSyncPoint(uint32 sync_point, | 227 void CommandBufferClientImpl::SignalSyncPoint(uint32 sync_point, |
228 const base::Closure& callback) { | 228 const base::Closure& callback) { |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
281 DidDestroy(); | 281 DidDestroy(); |
282 return; | 282 return; |
283 } | 283 } |
284 | 284 |
285 if (state->generation - last_state_.generation < 0x80000000U) | 285 if (state->generation - last_state_.generation < 0x80000000U) |
286 last_state_ = state.To<State>(); | 286 last_state_ = state.To<State>(); |
287 } | 287 } |
288 | 288 |
289 } // namespace gles2 | 289 } // namespace gles2 |
290 } // namespace mojo | 290 } // namespace mojo |
OLD | NEW |