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

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

Issue 15798014: Replace context parenting by sharing through mailboxes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 6 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 | Annotate | Revision Log
« 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 "ppapi/proxy/ppapi_messages.h" 7 #include "ppapi/proxy/ppapi_messages.h"
8 #include "ppapi/proxy/proxy_channel.h" 8 #include "ppapi/proxy/proxy_channel.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 27 matching lines...) Expand all
38 38
39 int PpapiCommandBufferProxy::GetRouteID() const { 39 int PpapiCommandBufferProxy::GetRouteID() const {
40 NOTIMPLEMENTED(); 40 NOTIMPLEMENTED();
41 return 0; 41 return 0;
42 } 42 }
43 43
44 bool PpapiCommandBufferProxy::Echo(const base::Closure& callback) { 44 bool PpapiCommandBufferProxy::Echo(const base::Closure& callback) {
45 return false; 45 return false;
46 } 46 }
47 47
48 bool PpapiCommandBufferProxy::SetParent( 48 bool PpapiCommandBufferProxy::ProduceFrontBuffer(const gpu::Mailbox& mailbox) {
49 CommandBufferProxy* parent_command_buffer,
50 uint32 parent_texture_id) {
51 // TODO(fsamuel): Need a proper implementation of this to support offscreen
52 // contexts in the guest renderer (WebGL, canvas, etc).
53 NOTIMPLEMENTED(); 49 NOTIMPLEMENTED();
54 return false; 50 return false;
55 } 51 }
56 52
57 void PpapiCommandBufferProxy::SetChannelErrorCallback( 53 void PpapiCommandBufferProxy::SetChannelErrorCallback(
58 const base::Closure& callback) { 54 const base::Closure& callback) {
59 channel_error_callback_ = callback; 55 channel_error_callback_ = callback;
60 } 56 }
61 57
62 bool PpapiCommandBufferProxy::Initialize() { 58 bool PpapiCommandBufferProxy::Initialize() {
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
254 last_state_ = state; 250 last_state_ = state;
255 } 251 }
256 } else { 252 } else {
257 last_state_.error = gpu::error::kLostContext; 253 last_state_.error = gpu::error::kLostContext;
258 ++last_state_.generation; 254 ++last_state_.generation;
259 } 255 }
260 } 256 }
261 257
262 } // namespace proxy 258 } // namespace proxy
263 } // namespace ppapi 259 } // 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