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 |
216 uint32 PpapiCommandBufferProxy::InsertSyncPoint() { | 220 uint32 PpapiCommandBufferProxy::InsertSyncPoint() { |
217 uint32 sync_point = 0; | 221 uint32 sync_point = 0; |
218 if (last_state_.error == gpu::error::kNoError) { | 222 if (last_state_.error == gpu::error::kNoError) { |
219 Send(new PpapiHostMsg_PPBGraphics3D_InsertSyncPoint( | 223 Send(new PpapiHostMsg_PPBGraphics3D_InsertSyncPoint( |
220 ppapi::API_ID_PPB_GRAPHICS_3D, resource_, &sync_point)); | 224 ppapi::API_ID_PPB_GRAPHICS_3D, resource_, &sync_point)); |
221 } | 225 } |
222 return sync_point; | 226 return sync_point; |
223 } | 227 } |
224 | 228 |
225 uint32 PpapiCommandBufferProxy::InsertFutureSyncPoint() { | 229 uint32 PpapiCommandBufferProxy::InsertFutureSyncPoint() { |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
328 message->set_unblock(true); | 332 message->set_unblock(true); |
329 Send(message); | 333 Send(message); |
330 | 334 |
331 flush_info_->flush_pending = false; | 335 flush_info_->flush_pending = false; |
332 flush_info_->resource.SetHostResource(0, 0); | 336 flush_info_->resource.SetHostResource(0, 0); |
333 flushed_fence_sync_release_ = pending_fence_sync_release_; | 337 flushed_fence_sync_release_ = pending_fence_sync_release_; |
334 } | 338 } |
335 | 339 |
336 } // namespace proxy | 340 } // namespace proxy |
337 } // namespace ppapi | 341 } // namespace ppapi |
OLD | NEW |