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

Side by Side Diff: gpu/command_buffer/service/framebuffer_manager.h

Issue 14188053: gpu: Change Produce/ConsumeTexture to allow texture sharing (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
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 #ifndef GPU_COMMAND_BUFFER_SERVICE_FRAMEBUFFER_MANAGER_H_ 5 #ifndef GPU_COMMAND_BUFFER_SERVICE_FRAMEBUFFER_MANAGER_H_
6 #define GPU_COMMAND_BUFFER_SERVICE_FRAMEBUFFER_MANAGER_H_ 6 #define GPU_COMMAND_BUFFER_SERVICE_FRAMEBUFFER_MANAGER_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/hash_tables.h" 9 #include "base/hash_tables.h"
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 13 matching lines...) Expand all
24 24
25 // Info about a particular Framebuffer. 25 // Info about a particular Framebuffer.
26 class GPU_EXPORT Framebuffer : public base::RefCounted<Framebuffer> { 26 class GPU_EXPORT Framebuffer : public base::RefCounted<Framebuffer> {
27 public: 27 public:
28 class Attachment : public base::RefCounted<Attachment> { 28 class Attachment : public base::RefCounted<Attachment> {
29 public: 29 public:
30 virtual GLsizei width() const = 0; 30 virtual GLsizei width() const = 0;
31 virtual GLsizei height() const = 0; 31 virtual GLsizei height() const = 0;
32 virtual GLenum internal_format() const = 0; 32 virtual GLenum internal_format() const = 0;
33 virtual GLsizei samples() const = 0; 33 virtual GLsizei samples() const = 0;
34 virtual GLuint object_name() const = 0;
34 virtual bool cleared() const = 0; 35 virtual bool cleared() const = 0;
35 virtual void SetCleared( 36 virtual void SetCleared(
36 RenderbufferManager* renderbuffer_manager, 37 RenderbufferManager* renderbuffer_manager,
37 TextureManager* texture_manager, 38 TextureManager* texture_manager,
38 bool cleared) = 0; 39 bool cleared) = 0;
39 virtual bool IsTexture(TextureRef* texture) const = 0; 40 virtual bool IsTexture(TextureRef* texture) const = 0;
40 virtual bool IsRenderbuffer( 41 virtual bool IsRenderbuffer(
41 Renderbuffer* renderbuffer) const = 0; 42 Renderbuffer* renderbuffer) const = 0;
42 virtual bool CanRenderTo() const = 0; 43 virtual bool CanRenderTo() const = 0;
43 virtual void DetachFromFramebuffer() const = 0; 44 virtual void DetachFromFramebuffer() const = 0;
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after
237 uint32 max_draw_buffers_; 238 uint32 max_draw_buffers_;
238 uint32 max_color_attachments_; 239 uint32 max_color_attachments_;
239 240
240 DISALLOW_COPY_AND_ASSIGN(FramebufferManager); 241 DISALLOW_COPY_AND_ASSIGN(FramebufferManager);
241 }; 242 };
242 243
243 } // namespace gles2 244 } // namespace gles2
244 } // namespace gpu 245 } // namespace gpu
245 246
246 #endif // GPU_COMMAND_BUFFER_SERVICE_FRAMEBUFFER_MANAGER_H_ 247 #endif // GPU_COMMAND_BUFFER_SERVICE_FRAMEBUFFER_MANAGER_H_
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/context_group.cc ('k') | gpu/command_buffer/service/framebuffer_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698