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

Unified Diff: gpu/ipc/command_buffer_proxy.h

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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gpu/command_buffer/tests/gl_texture_mailbox_unittests.cc ('k') | ppapi/proxy/ppapi_command_buffer_proxy.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/ipc/command_buffer_proxy.h
diff --git a/gpu/ipc/command_buffer_proxy.h b/gpu/ipc/command_buffer_proxy.h
index a992369e9aee9344fa3a2f1efa47a150e098870a..d33eae467e0355ecc9955e5c0f7089356d8f07fa 100644
--- a/gpu/ipc/command_buffer_proxy.h
+++ b/gpu/ipc/command_buffer_proxy.h
@@ -10,6 +10,7 @@
#include "base/callback.h"
#include "gpu/command_buffer/common/command_buffer.h"
#include "gpu/command_buffer/common/command_buffer_shared.h"
+#include "gpu/command_buffer/common/mailbox.h"
// Client side proxy that forwards messages synchronously to a
// CommandBufferStub.
@@ -28,12 +29,9 @@ class GPU_EXPORT CommandBufferProxy : public gpu::CommandBuffer {
// the task whether the echo succeeds or not.
virtual bool Echo(const base::Closure& callback) = 0;
- // Reparent a command buffer. TODO(apatrick): going forward, the notion of
- // the parent / child relationship between command buffers is going away in
- // favor of the notion of surfaces that can be drawn to in one command buffer
- // and bound as a texture in any other.
- virtual bool SetParent(CommandBufferProxy* parent_command_buffer,
- uint32 parent_texture_id) = 0;
+ // For offscreen contexts, produces the front buffer into a newly created
+ // mailbox.
+ virtual bool ProduceFrontBuffer(const gpu::Mailbox& mailbox) = 0;
virtual void SetChannelErrorCallback(const base::Closure& callback) = 0;
« no previous file with comments | « gpu/command_buffer/tests/gl_texture_mailbox_unittests.cc ('k') | ppapi/proxy/ppapi_command_buffer_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698