| 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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 virtual bool IsLayerValid() const = 0; | 61 virtual bool IsLayerValid() const = 0; |
| 62 | 62 |
| 63 virtual bool CanRenderTo(const FeatureInfo* feature_info) const = 0; | 63 virtual bool CanRenderTo(const FeatureInfo* feature_info) const = 0; |
| 64 virtual void DetachFromFramebuffer(Framebuffer* framebuffer) const = 0; | 64 virtual void DetachFromFramebuffer(Framebuffer* framebuffer) const = 0; |
| 65 virtual bool ValidForAttachmentType(GLenum attachment_type, | 65 virtual bool ValidForAttachmentType(GLenum attachment_type, |
| 66 ContextType context_type, | 66 ContextType context_type, |
| 67 uint32_t max_color_attachments) = 0; | 67 uint32_t max_color_attachments) = 0; |
| 68 virtual size_t GetSignatureSize(TextureManager* texture_manager) const = 0; | 68 virtual size_t GetSignatureSize(TextureManager* texture_manager) const = 0; |
| 69 virtual void AddToSignature( | 69 virtual void AddToSignature( |
| 70 TextureManager* texture_manager, std::string* signature) const = 0; | 70 TextureManager* texture_manager, std::string* signature) const = 0; |
| 71 virtual bool FormsFeedbackLoop(TextureRef* texture, GLint level) const = 0; | 71 virtual bool FormsFeedbackLoop( |
| 72 TextureRef* texture, GLint level, GLint layer) const = 0; |
| 72 virtual bool EmulatingRGB() const = 0; | 73 virtual bool EmulatingRGB() const = 0; |
| 73 | 74 |
| 74 protected: | 75 protected: |
| 75 friend class base::RefCounted<Attachment>; | 76 friend class base::RefCounted<Attachment>; |
| 76 virtual ~Attachment() {} | 77 virtual ~Attachment() {} |
| 77 }; | 78 }; |
| 78 | 79 |
| 79 Framebuffer(FramebufferManager* manager, GLuint service_id); | 80 Framebuffer(FramebufferManager* manager, GLuint service_id); |
| 80 | 81 |
| 81 GLuint service_id() const { | 82 GLuint service_id() const { |
| (...skipping 296 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 378 | 379 |
| 379 scoped_refptr<FramebufferCompletenessCache> framebuffer_combo_complete_cache_; | 380 scoped_refptr<FramebufferCompletenessCache> framebuffer_combo_complete_cache_; |
| 380 | 381 |
| 381 DISALLOW_COPY_AND_ASSIGN(FramebufferManager); | 382 DISALLOW_COPY_AND_ASSIGN(FramebufferManager); |
| 382 }; | 383 }; |
| 383 | 384 |
| 384 } // namespace gles2 | 385 } // namespace gles2 |
| 385 } // namespace gpu | 386 } // namespace gpu |
| 386 | 387 |
| 387 #endif // GPU_COMMAND_BUFFER_SERVICE_FRAMEBUFFER_MANAGER_H_ | 388 #endif // GPU_COMMAND_BUFFER_SERVICE_FRAMEBUFFER_MANAGER_H_ |
| OLD | NEW |