| 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 Renderbuffer* renderbuffer) const = 0; | 45 Renderbuffer* renderbuffer) const = 0; |
| 46 virtual bool CanRenderTo() const = 0; | 46 virtual bool CanRenderTo() const = 0; |
| 47 virtual void DetachFromFramebuffer(Framebuffer* framebuffer) const = 0; | 47 virtual void DetachFromFramebuffer(Framebuffer* framebuffer) const = 0; |
| 48 virtual bool ValidForAttachmentType( | 48 virtual bool ValidForAttachmentType( |
| 49 GLenum attachment_type, uint32 max_color_attachments) = 0; | 49 GLenum attachment_type, uint32 max_color_attachments) = 0; |
| 50 virtual size_t GetSignatureSize(TextureManager* texture_manager) const = 0; | 50 virtual size_t GetSignatureSize(TextureManager* texture_manager) const = 0; |
| 51 virtual void AddToSignature( | 51 virtual void AddToSignature( |
| 52 TextureManager* texture_manager, std::string* signature) const = 0; | 52 TextureManager* texture_manager, std::string* signature) const = 0; |
| 53 virtual void OnWillRenderTo() const = 0; | 53 virtual void OnWillRenderTo() const = 0; |
| 54 virtual void OnDidRenderTo() const = 0; | 54 virtual void OnDidRenderTo() const = 0; |
| 55 virtual bool FormsFeedbackLoop(TextureRef* texture, GLint level) const = 0; |
| 55 | 56 |
| 56 protected: | 57 protected: |
| 57 friend class base::RefCounted<Attachment>; | 58 friend class base::RefCounted<Attachment>; |
| 58 virtual ~Attachment() {} | 59 virtual ~Attachment() {} |
| 59 }; | 60 }; |
| 60 | 61 |
| 61 Framebuffer(FramebufferManager* manager, GLuint service_id); | 62 Framebuffer(FramebufferManager* manager, GLuint service_id); |
| 62 | 63 |
| 63 GLuint service_id() const { | 64 GLuint service_id() const { |
| 64 return service_id_; | 65 return service_id_; |
| (...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 308 typedef std::vector<TextureDetachObserver*> TextureDetachObserverVector; | 309 typedef std::vector<TextureDetachObserver*> TextureDetachObserverVector; |
| 309 TextureDetachObserverVector texture_detach_observers_; | 310 TextureDetachObserverVector texture_detach_observers_; |
| 310 | 311 |
| 311 DISALLOW_COPY_AND_ASSIGN(FramebufferManager); | 312 DISALLOW_COPY_AND_ASSIGN(FramebufferManager); |
| 312 }; | 313 }; |
| 313 | 314 |
| 314 } // namespace gles2 | 315 } // namespace gles2 |
| 315 } // namespace gpu | 316 } // namespace gpu |
| 316 | 317 |
| 317 #endif // GPU_COMMAND_BUFFER_SERVICE_FRAMEBUFFER_MANAGER_H_ | 318 #endif // GPU_COMMAND_BUFFER_SERVICE_FRAMEBUFFER_MANAGER_H_ |
| OLD | NEW |