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 <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/numerics/safe_conversions.h" | 9 #include "base/numerics/safe_conversions.h" |
10 #include "ppapi/proxy/ppapi_messages.h" | 10 #include "ppapi/proxy/ppapi_messages.h" |
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
166 NOTIMPLEMENTED(); | 166 NOTIMPLEMENTED(); |
167 } | 167 } |
168 | 168 |
169 void PpapiCommandBufferProxy::EnsureWorkVisible() { | 169 void PpapiCommandBufferProxy::EnsureWorkVisible() { |
170 DCHECK_GE(flushed_fence_sync_release_, validated_fence_sync_release_); | 170 DCHECK_GE(flushed_fence_sync_release_, validated_fence_sync_release_); |
171 Send(new PpapiHostMsg_PPBGraphics3D_EnsureWorkVisible( | 171 Send(new PpapiHostMsg_PPBGraphics3D_EnsureWorkVisible( |
172 ppapi::API_ID_PPB_GRAPHICS_3D, resource_)); | 172 ppapi::API_ID_PPB_GRAPHICS_3D, resource_)); |
173 validated_fence_sync_release_ = flushed_fence_sync_release_; | 173 validated_fence_sync_release_ = flushed_fence_sync_release_; |
174 } | 174 } |
175 | 175 |
| 176 void PpapiCommandBufferProxy::EnsureWorkVisibleAsync() {} |
| 177 |
176 gpu::CommandBufferNamespace PpapiCommandBufferProxy::GetNamespaceID() const { | 178 gpu::CommandBufferNamespace PpapiCommandBufferProxy::GetNamespaceID() const { |
177 return gpu::CommandBufferNamespace::GPU_IO; | 179 return gpu::CommandBufferNamespace::GPU_IO; |
178 } | 180 } |
179 | 181 |
180 gpu::CommandBufferId PpapiCommandBufferProxy::GetCommandBufferID() const { | 182 gpu::CommandBufferId PpapiCommandBufferProxy::GetCommandBufferID() const { |
181 return command_buffer_id_; | 183 return command_buffer_id_; |
182 } | 184 } |
183 | 185 |
184 uint64_t PpapiCommandBufferProxy::GenerateFenceSyncRelease() { | 186 uint64_t PpapiCommandBufferProxy::GenerateFenceSyncRelease() { |
185 return next_fence_sync_release_++; | 187 return next_fence_sync_release_++; |
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
312 message->set_unblock(true); | 314 message->set_unblock(true); |
313 Send(message); | 315 Send(message); |
314 | 316 |
315 flush_info_->flush_pending = false; | 317 flush_info_->flush_pending = false; |
316 flush_info_->resource.SetHostResource(0, 0); | 318 flush_info_->resource.SetHostResource(0, 0); |
317 flushed_fence_sync_release_ = pending_fence_sync_release_; | 319 flushed_fence_sync_release_ = pending_fence_sync_release_; |
318 } | 320 } |
319 | 321 |
320 } // namespace proxy | 322 } // namespace proxy |
321 } // namespace ppapi | 323 } // namespace ppapi |
OLD | NEW |