| OLD | NEW |
| 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/containers/hash_tables.h" | 9 #include "base/containers/hash_tables.h" |
| 10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 bool cleared); | 67 bool cleared); |
| 68 | 68 |
| 69 // Attaches a renderbuffer to a particlar attachment. | 69 // Attaches a renderbuffer to a particlar attachment. |
| 70 // Pass null to detach. | 70 // Pass null to detach. |
| 71 void AttachRenderbuffer( | 71 void AttachRenderbuffer( |
| 72 GLenum attachment, Renderbuffer* renderbuffer); | 72 GLenum attachment, Renderbuffer* renderbuffer); |
| 73 | 73 |
| 74 // Attaches a texture to a particlar attachment. Pass null to detach. | 74 // Attaches a texture to a particlar attachment. Pass null to detach. |
| 75 void AttachTexture( | 75 void AttachTexture( |
| 76 GLenum attachment, TextureRef* texture_ref, GLenum target, | 76 GLenum attachment, TextureRef* texture_ref, GLenum target, |
| 77 GLint level); | 77 GLint level, GLsizei samples); |
| 78 | 78 |
| 79 // Unbinds the given renderbuffer if it is bound. | 79 // Unbinds the given renderbuffer if it is bound. |
| 80 void UnbindRenderbuffer( | 80 void UnbindRenderbuffer( |
| 81 GLenum target, Renderbuffer* renderbuffer); | 81 GLenum target, Renderbuffer* renderbuffer); |
| 82 | 82 |
| 83 // Unbinds the given texture if it is bound. | 83 // Unbinds the given texture if it is bound. |
| 84 void UnbindTexture( | 84 void UnbindTexture( |
| 85 GLenum target, TextureRef* texture_ref); | 85 GLenum target, TextureRef* texture_ref); |
| 86 | 86 |
| 87 const Attachment* GetAttachment(GLenum attachment) const; | 87 const Attachment* GetAttachment(GLenum attachment) const; |
| (...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 241 uint32 max_draw_buffers_; | 241 uint32 max_draw_buffers_; |
| 242 uint32 max_color_attachments_; | 242 uint32 max_color_attachments_; |
| 243 | 243 |
| 244 DISALLOW_COPY_AND_ASSIGN(FramebufferManager); | 244 DISALLOW_COPY_AND_ASSIGN(FramebufferManager); |
| 245 }; | 245 }; |
| 246 | 246 |
| 247 } // namespace gles2 | 247 } // namespace gles2 |
| 248 } // namespace gpu | 248 } // namespace gpu |
| 249 | 249 |
| 250 #endif // GPU_COMMAND_BUFFER_SERVICE_FRAMEBUFFER_MANAGER_H_ | 250 #endif // GPU_COMMAND_BUFFER_SERVICE_FRAMEBUFFER_MANAGER_H_ |
| OLD | NEW |