| 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 <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 | 83 |
| 84 // Attaches a renderbuffer to a particlar attachment. | 84 // Attaches a renderbuffer to a particlar attachment. |
| 85 // Pass null to detach. | 85 // Pass null to detach. |
| 86 void AttachRenderbuffer( | 86 void AttachRenderbuffer( |
| 87 GLenum attachment, Renderbuffer* renderbuffer); | 87 GLenum attachment, Renderbuffer* renderbuffer); |
| 88 | 88 |
| 89 // Attaches a texture to a particlar attachment. Pass null to detach. | 89 // Attaches a texture to a particlar attachment. Pass null to detach. |
| 90 void AttachTexture( | 90 void AttachTexture( |
| 91 GLenum attachment, TextureRef* texture_ref, GLenum target, | 91 GLenum attachment, TextureRef* texture_ref, GLenum target, |
| 92 GLint level, GLsizei samples); | 92 GLint level, GLsizei samples); |
| 93 void AttachTextureLayer( |
| 94 GLenum attachment, TextureRef* texture_ref, GLenum target, |
| 95 GLint level, GLint layer); |
| 93 | 96 |
| 94 // Unbinds the given renderbuffer if it is bound. | 97 // Unbinds the given renderbuffer if it is bound. |
| 95 void UnbindRenderbuffer( | 98 void UnbindRenderbuffer( |
| 96 GLenum target, Renderbuffer* renderbuffer); | 99 GLenum target, Renderbuffer* renderbuffer); |
| 97 | 100 |
| 98 // Unbinds the given texture if it is bound. | 101 // Unbinds the given texture if it is bound. |
| 99 void UnbindTexture( | 102 void UnbindTexture( |
| 100 GLenum target, TextureRef* texture_ref); | 103 GLenum target, TextureRef* texture_ref); |
| 101 | 104 |
| 102 const Attachment* GetAttachment(GLenum attachment) const; | 105 const Attachment* GetAttachment(GLenum attachment) const; |
| (...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 341 | 344 |
| 342 scoped_refptr<FramebufferCompletenessCache> framebuffer_combo_complete_cache_; | 345 scoped_refptr<FramebufferCompletenessCache> framebuffer_combo_complete_cache_; |
| 343 | 346 |
| 344 DISALLOW_COPY_AND_ASSIGN(FramebufferManager); | 347 DISALLOW_COPY_AND_ASSIGN(FramebufferManager); |
| 345 }; | 348 }; |
| 346 | 349 |
| 347 } // namespace gles2 | 350 } // namespace gles2 |
| 348 } // namespace gpu | 351 } // namespace gpu |
| 349 | 352 |
| 350 #endif // GPU_COMMAND_BUFFER_SERVICE_FRAMEBUFFER_MANAGER_H_ | 353 #endif // GPU_COMMAND_BUFFER_SERVICE_FRAMEBUFFER_MANAGER_H_ |
| OLD | NEW |