| 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 |
| 244 gpu::Capabilities PpapiCommandBufferProxy::GetCapabilities() { | 249 gpu::Capabilities PpapiCommandBufferProxy::GetCapabilities() { |
| 245 return capabilities_; | 250 return capabilities_; |
| 246 } | 251 } |
| 247 | 252 |
| 248 int32_t PpapiCommandBufferProxy::CreateImage(ClientBuffer buffer, | 253 int32_t PpapiCommandBufferProxy::CreateImage(ClientBuffer buffer, |
| 249 size_t width, | 254 size_t width, |
| 250 size_t height, | 255 size_t height, |
| 251 unsigned internalformat) { | 256 unsigned internalformat) { |
| 252 NOTREACHED(); | 257 NOTREACHED(); |
| 253 return -1; | 258 return -1; |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 321 message->set_unblock(true); | 326 message->set_unblock(true); |
| 322 Send(message); | 327 Send(message); |
| 323 | 328 |
| 324 flush_info_->flush_pending = false; | 329 flush_info_->flush_pending = false; |
| 325 flush_info_->resource.SetHostResource(0, 0); | 330 flush_info_->resource.SetHostResource(0, 0); |
| 326 flushed_fence_sync_release_ = pending_fence_sync_release_; | 331 flushed_fence_sync_release_ = pending_fence_sync_release_; |
| 327 } | 332 } |
| 328 | 333 |
| 329 } // namespace proxy | 334 } // namespace proxy |
| 330 } // namespace ppapi | 335 } // namespace ppapi |
| OLD | NEW |