| OLD | NEW |
| 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 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 206 void PpapiCommandBufferProxy::SignalSyncToken(const gpu::SyncToken& sync_token, | 206 void PpapiCommandBufferProxy::SignalSyncToken(const gpu::SyncToken& sync_token, |
| 207 const base::Closure& callback) { | 207 const base::Closure& callback) { |
| 208 NOTIMPLEMENTED(); | 208 NOTIMPLEMENTED(); |
| 209 } | 209 } |
| 210 | 210 |
| 211 bool PpapiCommandBufferProxy::CanWaitUnverifiedSyncToken( | 211 bool PpapiCommandBufferProxy::CanWaitUnverifiedSyncToken( |
| 212 const gpu::SyncToken* sync_token) { | 212 const gpu::SyncToken* sync_token) { |
| 213 return false; | 213 return false; |
| 214 } | 214 } |
| 215 | 215 |
| 216 int32_t PpapiCommandBufferProxy::GetExtraCommandBufferData() const { | |
| 217 return 0; | |
| 218 } | |
| 219 | |
| 220 uint32 PpapiCommandBufferProxy::InsertSyncPoint() { | 216 uint32 PpapiCommandBufferProxy::InsertSyncPoint() { |
| 221 uint32 sync_point = 0; | 217 uint32 sync_point = 0; |
| 222 if (last_state_.error == gpu::error::kNoError) { | 218 if (last_state_.error == gpu::error::kNoError) { |
| 223 Send(new PpapiHostMsg_PPBGraphics3D_InsertSyncPoint( | 219 Send(new PpapiHostMsg_PPBGraphics3D_InsertSyncPoint( |
| 224 ppapi::API_ID_PPB_GRAPHICS_3D, resource_, &sync_point)); | 220 ppapi::API_ID_PPB_GRAPHICS_3D, resource_, &sync_point)); |
| 225 } | 221 } |
| 226 return sync_point; | 222 return sync_point; |
| 227 } | 223 } |
| 228 | 224 |
| 229 uint32 PpapiCommandBufferProxy::InsertFutureSyncPoint() { | 225 uint32 PpapiCommandBufferProxy::InsertFutureSyncPoint() { |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 332 message->set_unblock(true); | 328 message->set_unblock(true); |
| 333 Send(message); | 329 Send(message); |
| 334 | 330 |
| 335 flush_info_->flush_pending = false; | 331 flush_info_->flush_pending = false; |
| 336 flush_info_->resource.SetHostResource(0, 0); | 332 flush_info_->resource.SetHostResource(0, 0); |
| 337 flushed_fence_sync_release_ = pending_fence_sync_release_; | 333 flushed_fence_sync_release_ = pending_fence_sync_release_; |
| 338 } | 334 } |
| 339 | 335 |
| 340 } // namespace proxy | 336 } // namespace proxy |
| 341 } // namespace ppapi | 337 } // namespace ppapi |
| OLD | NEW |