| 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 <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 138 } | 138 } |
| 139 | 139 |
| 140 void MarkAsValid() { | 140 void MarkAsValid() { |
| 141 has_been_bound_ = true; | 141 has_been_bound_ = true; |
| 142 } | 142 } |
| 143 | 143 |
| 144 bool IsValid() const { | 144 bool IsValid() const { |
| 145 return has_been_bound_ && !IsDeleted(); | 145 return has_been_bound_ && !IsDeleted(); |
| 146 } | 146 } |
| 147 | 147 |
| 148 bool HasColorAttachment(int index) const; |
| 148 bool HasDepthAttachment() const; | 149 bool HasDepthAttachment() const; |
| 149 bool HasStencilAttachment() const; | 150 bool HasStencilAttachment() const; |
| 150 GLenum GetDepthFormat() const; | 151 GLenum GetDepthFormat() const; |
| 151 GLenum GetStencilFormat() const; | 152 GLenum GetStencilFormat() const; |
| 152 GLenum GetDrawBufferInternalFormat() const; | 153 GLenum GetDrawBufferInternalFormat() const; |
| 153 GLenum GetReadBufferInternalFormat() const; | 154 GLenum GetReadBufferInternalFormat() const; |
| 154 // If the color attachment is a texture, returns its type; otherwise, | 155 // If the color attachment is a texture, returns its type; otherwise, |
| 155 // returns 0. | 156 // returns 0. |
| 156 GLenum GetReadBufferTextureType() const; | 157 GLenum GetReadBufferTextureType() const; |
| 157 | 158 |
| (...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 332 | 333 |
| 333 scoped_refptr<FramebufferCompletenessCache> framebuffer_combo_complete_cache_; | 334 scoped_refptr<FramebufferCompletenessCache> framebuffer_combo_complete_cache_; |
| 334 | 335 |
| 335 DISALLOW_COPY_AND_ASSIGN(FramebufferManager); | 336 DISALLOW_COPY_AND_ASSIGN(FramebufferManager); |
| 336 }; | 337 }; |
| 337 | 338 |
| 338 } // namespace gles2 | 339 } // namespace gles2 |
| 339 } // namespace gpu | 340 } // namespace gpu |
| 340 | 341 |
| 341 #endif // GPU_COMMAND_BUFFER_SERVICE_FRAMEBUFFER_MANAGER_H_ | 342 #endif // GPU_COMMAND_BUFFER_SERVICE_FRAMEBUFFER_MANAGER_H_ |
| OLD | NEW |