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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 virtual GLsizei samples() const = 0; | 42 virtual GLsizei samples() const = 0; |
43 virtual GLuint object_name() const = 0; | 43 virtual GLuint object_name() const = 0; |
44 virtual bool cleared() const = 0; | 44 virtual bool cleared() const = 0; |
45 virtual void SetCleared( | 45 virtual void SetCleared( |
46 RenderbufferManager* renderbuffer_manager, | 46 RenderbufferManager* renderbuffer_manager, |
47 TextureManager* texture_manager, | 47 TextureManager* texture_manager, |
48 bool cleared) = 0; | 48 bool cleared) = 0; |
49 virtual bool IsPartiallyCleared() const = 0; | 49 virtual bool IsPartiallyCleared() const = 0; |
50 virtual bool IsTextureAttachment() const = 0; | 50 virtual bool IsTextureAttachment() const = 0; |
51 virtual bool IsRenderbufferAttachment() const = 0; | 51 virtual bool IsRenderbufferAttachment() const = 0; |
| 52 virtual bool IsTextureAttachmentImmutable() const = 0; |
52 virtual bool IsTexture(TextureRef* texture) const = 0; | 53 virtual bool IsTexture(TextureRef* texture) const = 0; |
53 virtual bool IsRenderbuffer(Renderbuffer* renderbuffer) const = 0; | 54 virtual bool IsRenderbuffer(Renderbuffer* renderbuffer) const = 0; |
54 virtual bool IsSameAttachment(const Attachment* attachment) const = 0; | 55 virtual bool IsSameAttachment(const Attachment* attachment) const = 0; |
55 virtual bool Is3D() const = 0; | 56 virtual bool Is3D() const = 0; |
56 | 57 |
57 // If it's a 3D texture attachment, return true if | 58 // If it's a 3D texture attachment, return true if |
58 // FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER is smaller than the number of | 59 // FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER is smaller than the number of |
59 // layers in the texture. | 60 // layers in the texture. |
60 virtual bool IsLayerValid() const = 0; | 61 virtual bool IsLayerValid() const = 0; |
61 | 62 |
(...skipping 310 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
372 | 373 |
373 scoped_refptr<FramebufferCompletenessCache> framebuffer_combo_complete_cache_; | 374 scoped_refptr<FramebufferCompletenessCache> framebuffer_combo_complete_cache_; |
374 | 375 |
375 DISALLOW_COPY_AND_ASSIGN(FramebufferManager); | 376 DISALLOW_COPY_AND_ASSIGN(FramebufferManager); |
376 }; | 377 }; |
377 | 378 |
378 } // namespace gles2 | 379 } // namespace gles2 |
379 } // namespace gpu | 380 } // namespace gpu |
380 | 381 |
381 #endif // GPU_COMMAND_BUFFER_SERVICE_FRAMEBUFFER_MANAGER_H_ | 382 #endif // GPU_COMMAND_BUFFER_SERVICE_FRAMEBUFFER_MANAGER_H_ |
OLD | NEW |