Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(156)

Side by Side Diff: gpu/command_buffer/service/framebuffer_manager.h

Issue 656613002: Generate INVALID_OPERATION if feedback loops exist in CopyTex{Sub}Image2D. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | gpu/command_buffer/service/framebuffer_manager.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « no previous file | gpu/command_buffer/service/framebuffer_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698