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

Unified Diff: gpu/command_buffer/service/gles2_cmd_decoder.h

Issue 7518016: Revert 94743 - Allow the renderer process to map textures from one context into another. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 5 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/common/constants.h ('k') | gpu/command_buffer/service/gles2_cmd_decoder.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/service/gles2_cmd_decoder.h
===================================================================
--- gpu/command_buffer/service/gles2_cmd_decoder.h (revision 94806)
+++ gpu/command_buffer/service/gles2_cmd_decoder.h (working copy)
@@ -12,7 +12,6 @@
#include "base/callback.h"
#include "base/callback_old.h"
#include "build/build_config.h"
-#include "gpu/command_buffer/common/constants.h"
#include "gpu/command_buffer/service/common_decoder.h"
#include "ui/gfx/size.h"
@@ -78,26 +77,6 @@
// Destroys the graphics context.
virtual void Destroy() = 0;
- // Map a resource from an external context into this context. The source
- // context need not be in the same share group from the client's point of
- // view, allowing safe sharing between an "untrusted" context, like Pepper
- // and a compositor context.
- //
- // Currently only texture resources are supported. TODO(apatrick): generalize
- // this as appropriate.
- //
- // To unmap a previously mapped external resource, delete it in the
- // destination context group. This will not delete the underlying texture
- // object, just disassociate it with the id in the destination context group.
- //
- // The lifetime of the external resource is managed by the context group it
- // was originally created in. When the last context in that group is destroyed
- // the resource becomes invalid in all other context groups it is mapped into.
- virtual bool MapExternalResource(resource_type::ResourceType resource_type,
- uint32 resource_source_id,
- GLES2Decoder* source_decoder,
- uint32 resource_dest_id) = 0;
-
virtual bool SetParent(GLES2Decoder* parent_decoder,
uint32 parent_texture_id) = 0;
« no previous file with comments | « gpu/command_buffer/common/constants.h ('k') | gpu/command_buffer/service/gles2_cmd_decoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698