Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(566)

Side by Side Diff: ppapi/proxy/ppapi_command_buffer_proxy.cc

Issue 1885903002: Revert of Make lost context and error message callbacks on GpuControl go to client (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ppapi/proxy/ppapi_command_buffer_proxy.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « ppapi/proxy/ppapi_command_buffer_proxy.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698