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

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

Issue 14844004: gpu: Refactor to support cross-channel shared textures (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix accidentally reverted behavior Created 7 years, 7 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/service/context_state.h ('k') | gpu/command_buffer/service/framebuffer_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/service/framebuffer_manager.h
diff --git a/gpu/command_buffer/service/framebuffer_manager.h b/gpu/command_buffer/service/framebuffer_manager.h
index a5bdb3bd765587431c107db2389bffc784386645..9b7b13136e746f6593da778811a81a0b29150196 100644
--- a/gpu/command_buffer/service/framebuffer_manager.h
+++ b/gpu/command_buffer/service/framebuffer_manager.h
@@ -19,6 +19,7 @@ class FramebufferManager;
class Renderbuffer;
class RenderbufferManager;
class Texture;
+class TextureRef;
class TextureManager;
// Info about a particular Framebuffer.
@@ -35,7 +36,7 @@ class GPU_EXPORT Framebuffer : public base::RefCounted<Framebuffer> {
RenderbufferManager* renderbuffer_manager,
TextureManager* texture_manager,
bool cleared) = 0;
- virtual bool IsTexture(Texture* texture) const = 0;
+ virtual bool IsTexture(TextureRef* texture) const = 0;
virtual bool IsRenderbuffer(
Renderbuffer* renderbuffer) const = 0;
virtual bool CanRenderTo() const = 0;
@@ -71,7 +72,7 @@ class GPU_EXPORT Framebuffer : public base::RefCounted<Framebuffer> {
// Attaches a texture to a particlar attachment. Pass null to detach.
void AttachTexture(
- GLenum attachment, Texture* texture, GLenum target,
+ GLenum attachment, TextureRef* texture_ref, GLenum target,
GLint level);
// Unbinds the given renderbuffer if it is bound.
@@ -80,7 +81,7 @@ class GPU_EXPORT Framebuffer : public base::RefCounted<Framebuffer> {
// Unbinds the given texture if it is bound.
void UnbindTexture(
- GLenum target, Texture* texture);
+ GLenum target, TextureRef* texture_ref);
const Attachment* GetAttachment(GLenum attachment) const;
« no previous file with comments | « gpu/command_buffer/service/context_state.h ('k') | gpu/command_buffer/service/framebuffer_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698