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 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
234 | 234 |
235 int32_t PpapiCommandBufferProxy::GetExtraCommandBufferData() const { | 235 int32_t PpapiCommandBufferProxy::GetExtraCommandBufferData() const { |
236 return 0; | 236 return 0; |
237 } | 237 } |
238 | 238 |
239 void PpapiCommandBufferProxy::SignalQuery(uint32_t query, | 239 void PpapiCommandBufferProxy::SignalQuery(uint32_t query, |
240 const base::Closure& callback) { | 240 const base::Closure& callback) { |
241 NOTREACHED(); | 241 NOTREACHED(); |
242 } | 242 } |
243 | 243 |
244 void PpapiCommandBufferProxy::SetGpuControlClient(gpu::GpuControlClient*) { | |
245 // TODO(piman): The lost context callback skips past here and goes directly | |
246 // to the plugin instance. Make it more uniform and use the GpuControlClient. | |
247 } | |
248 | |
249 gpu::Capabilities PpapiCommandBufferProxy::GetCapabilities() { | 244 gpu::Capabilities PpapiCommandBufferProxy::GetCapabilities() { |
250 return capabilities_; | 245 return capabilities_; |
251 } | 246 } |
252 | 247 |
253 int32_t PpapiCommandBufferProxy::CreateImage(ClientBuffer buffer, | 248 int32_t PpapiCommandBufferProxy::CreateImage(ClientBuffer buffer, |
254 size_t width, | 249 size_t width, |
255 size_t height, | 250 size_t height, |
256 unsigned internalformat) { | 251 unsigned internalformat) { |
257 NOTREACHED(); | 252 NOTREACHED(); |
258 return -1; | 253 return -1; |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
326 message->set_unblock(true); | 321 message->set_unblock(true); |
327 Send(message); | 322 Send(message); |
328 | 323 |
329 flush_info_->flush_pending = false; | 324 flush_info_->flush_pending = false; |
330 flush_info_->resource.SetHostResource(0, 0); | 325 flush_info_->resource.SetHostResource(0, 0); |
331 flushed_fence_sync_release_ = pending_fence_sync_release_; | 326 flushed_fence_sync_release_ = pending_fence_sync_release_; |
332 } | 327 } |
333 | 328 |
334 } // namespace proxy | 329 } // namespace proxy |
335 } // namespace ppapi | 330 } // namespace ppapi |
OLD | NEW |