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

Side by Side Diff: ppapi/proxy/ppapi_command_buffer_proxy.cc

Issue 1345813002: Added a unique command buffer ID for command buffers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Moved functions to GpuControl Created 5 years, 3 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "ppapi/proxy/ppapi_command_buffer_proxy.h" 5 #include "ppapi/proxy/ppapi_command_buffer_proxy.h"
6 6
7 #include "base/numerics/safe_conversions.h" 7 #include "base/numerics/safe_conversions.h"
8 #include "ppapi/proxy/ppapi_messages.h" 8 #include "ppapi/proxy/ppapi_messages.h"
9 #include "ppapi/shared_impl/api_id.h" 9 #include "ppapi/shared_impl/api_id.h"
10 #include "ppapi/shared_impl/host_resource.h" 10 #include "ppapi/shared_impl/host_resource.h"
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 170
171 void PpapiCommandBufferProxy::SetLock(base::Lock*) { 171 void PpapiCommandBufferProxy::SetLock(base::Lock*) {
172 NOTIMPLEMENTED(); 172 NOTIMPLEMENTED();
173 } 173 }
174 174
175 bool PpapiCommandBufferProxy::IsGpuChannelLost() { 175 bool PpapiCommandBufferProxy::IsGpuChannelLost() {
176 NOTIMPLEMENTED(); 176 NOTIMPLEMENTED();
177 return false; 177 return false;
178 } 178 }
179 179
180 gpu::CommandBufferNamespace PpapiCommandBufferProxy::GetNamespaceID() const {
181 NOTIMPLEMENTED();
182 return gpu::kCommandBufferNamespace_Invalid;
183 }
184
185 uint64_t PpapiCommandBufferProxy::GetCommandBufferID() const {
186 NOTIMPLEMENTED();
187 return 0;
188 }
189
180 uint32 PpapiCommandBufferProxy::InsertSyncPoint() { 190 uint32 PpapiCommandBufferProxy::InsertSyncPoint() {
181 uint32 sync_point = 0; 191 uint32 sync_point = 0;
182 if (last_state_.error == gpu::error::kNoError) { 192 if (last_state_.error == gpu::error::kNoError) {
183 Send(new PpapiHostMsg_PPBGraphics3D_InsertSyncPoint( 193 Send(new PpapiHostMsg_PPBGraphics3D_InsertSyncPoint(
184 ppapi::API_ID_PPB_GRAPHICS_3D, resource_, &sync_point)); 194 ppapi::API_ID_PPB_GRAPHICS_3D, resource_, &sync_point));
185 } 195 }
186 return sync_point; 196 return sync_point;
187 } 197 }
188 198
189 uint32 PpapiCommandBufferProxy::InsertFutureSyncPoint() { 199 uint32 PpapiCommandBufferProxy::InsertFutureSyncPoint() {
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
294 // cached last_state_ with out-of-date data. 304 // cached last_state_ with out-of-date data.
295 message->set_unblock(true); 305 message->set_unblock(true);
296 Send(message); 306 Send(message);
297 307
298 flush_info_->flush_pending = false; 308 flush_info_->flush_pending = false;
299 flush_info_->resource.SetHostResource(0, 0); 309 flush_info_->resource.SetHostResource(0, 0);
300 } 310 }
301 311
302 } // namespace proxy 312 } // namespace proxy
303 } // namespace ppapi 313 } // namespace ppapi
OLDNEW
« mojo/gles2/command_buffer_client_impl.cc ('K') | « ppapi/proxy/ppapi_command_buffer_proxy.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698