Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(87)

Side by Side Diff: mojo/gles2/command_buffer_client_impl.cc

Issue 480723002: Revert of Mojo multiple command buffer support and sample (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « mojo/examples/surfaces_app/surfaces_app.cc ('k') | mojo/gles2/gles2_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « mojo/examples/surfaces_app/surfaces_app.cc ('k') | mojo/gles2/gles2_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698