Chromium Code Reviews| 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 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 140 } | 140 } |
| 141 | 141 |
| 142 void MarkAsValid() { | 142 void MarkAsValid() { |
| 143 has_been_bound_ = true; | 143 has_been_bound_ = true; |
| 144 } | 144 } |
| 145 | 145 |
| 146 bool IsValid() const { | 146 bool IsValid() const { |
| 147 return has_been_bound_ && !IsDeleted(); | 147 return has_been_bound_ && !IsDeleted(); |
| 148 } | 148 } |
| 149 | 149 |
| 150 bool ReadBufferHasNoImage() const; | |
| 151 bool DrawBuffersHaveNoImage(GLsizei& num, GLenum* buf) const; | |
|
Zhenyao Mo
2016/11/14 19:42:24
1) I think DrawBuffersHaveMissingImage is a better
yunchao
2016/11/15 16:21:59
Agreed.
| |
| 152 bool ColorBuffersHaveImage() const; | |
| 153 | |
| 150 bool HasColorAttachment(int index) const; | 154 bool HasColorAttachment(int index) const; |
| 151 bool HasDepthAttachment() const; | 155 bool HasDepthAttachment() const; |
| 152 bool HasStencilAttachment() const; | 156 bool HasStencilAttachment() const; |
| 153 GLenum GetDepthFormat() const; | 157 GLenum GetDepthFormat() const; |
| 154 GLenum GetStencilFormat() const; | 158 GLenum GetStencilFormat() const; |
| 155 GLenum GetDrawBufferInternalFormat() const; | 159 GLenum GetDrawBufferInternalFormat() const; |
| 156 GLenum GetReadBufferInternalFormat() const; | 160 GLenum GetReadBufferInternalFormat() const; |
| 157 // If the color attachment is a texture, returns its type; otherwise, | 161 // If the color attachment is a texture, returns its type; otherwise, |
| 158 // returns 0. | 162 // returns 0. |
| 159 GLenum GetReadBufferTextureType() const; | 163 GLenum GetReadBufferTextureType() const; |
| (...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 373 | 377 |
| 374 scoped_refptr<FramebufferCompletenessCache> framebuffer_combo_complete_cache_; | 378 scoped_refptr<FramebufferCompletenessCache> framebuffer_combo_complete_cache_; |
| 375 | 379 |
| 376 DISALLOW_COPY_AND_ASSIGN(FramebufferManager); | 380 DISALLOW_COPY_AND_ASSIGN(FramebufferManager); |
| 377 }; | 381 }; |
| 378 | 382 |
| 379 } // namespace gles2 | 383 } // namespace gles2 |
| 380 } // namespace gpu | 384 } // namespace gpu |
| 381 | 385 |
| 382 #endif // GPU_COMMAND_BUFFER_SERVICE_FRAMEBUFFER_MANAGER_H_ | 386 #endif // GPU_COMMAND_BUFFER_SERVICE_FRAMEBUFFER_MANAGER_H_ |
| OLD | NEW |