summaryrefslogtreecommitdiffstats
path: root/gpu/command_buffer/service/framebuffer_manager.h
diff options
context:
space:
mode:
authorpiman@chromium.org <piman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-05-29 22:28:10 +0000
committerpiman@chromium.org <piman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-05-29 22:28:10 +0000
commit62e65f0cc982cf66eb00a1a2fc40fb6d82510e31 (patch)
treea57c4c457c3acb0c93f4650c4ffb06d5e1a26c81 /gpu/command_buffer/service/framebuffer_manager.h
parent150c18a1e10ec3422780680d43ceb85867229bd9 (diff)
downloadchromium_src-62e65f0cc982cf66eb00a1a2fc40fb6d82510e31.zip
chromium_src-62e65f0cc982cf66eb00a1a2fc40fb6d82510e31.tar.gz
chromium_src-62e65f0cc982cf66eb00a1a2fc40fb6d82510e31.tar.bz2
gpu: Change Produce/ConsumeTexture to allow texture sharing
This changes the semantics of ProduceTexture to not replacing the current texture by a dud, but instead keeping the existing one, that it also puts into the mailbox. It changes the semantics of ConsumeTexture to deleting the current texture, and replacing it by the mailbox contents (without taking it out of the mailbox). The texture becomes shared. The mailbox is now effectively a weak pointer onto the texture. BUG=230137 Review URL: https://chromiumcodereview.appspot.com/14188053 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@202992 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'gpu/command_buffer/service/framebuffer_manager.h')
-rw-r--r--gpu/command_buffer/service/framebuffer_manager.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/gpu/command_buffer/service/framebuffer_manager.h b/gpu/command_buffer/service/framebuffer_manager.h
index 9b7b131..eb6125d 100644
--- a/gpu/command_buffer/service/framebuffer_manager.h
+++ b/gpu/command_buffer/service/framebuffer_manager.h
@@ -31,6 +31,7 @@ class GPU_EXPORT Framebuffer : public base::RefCounted<Framebuffer> {
virtual GLsizei height() const = 0;
virtual GLenum internal_format() const = 0;
virtual GLsizei samples() const = 0;
+ virtual GLuint object_name() const = 0;
virtual bool cleared() const = 0;
virtual void SetCleared(
RenderbufferManager* renderbuffer_manager,