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

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

Issue 2159183002: Attaching an image to many color attachment points is unsupported (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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
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 <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 virtual GLuint object_name() const = 0; 44 virtual GLuint object_name() const = 0;
45 virtual bool cleared() const = 0; 45 virtual bool cleared() const = 0;
46 virtual void SetCleared( 46 virtual void SetCleared(
47 RenderbufferManager* renderbuffer_manager, 47 RenderbufferManager* renderbuffer_manager,
48 TextureManager* texture_manager, 48 TextureManager* texture_manager,
49 bool cleared) = 0; 49 bool cleared) = 0;
50 virtual bool IsPartiallyCleared() const = 0; 50 virtual bool IsPartiallyCleared() const = 0;
51 virtual bool IsTextureAttachment() const = 0; 51 virtual bool IsTextureAttachment() const = 0;
52 virtual bool IsRenderbufferAttachment() const = 0; 52 virtual bool IsRenderbufferAttachment() const = 0;
53 virtual bool IsTexture(TextureRef* texture) const = 0; 53 virtual bool IsTexture(TextureRef* texture) const = 0;
54 virtual bool IsRenderbuffer( 54 virtual bool IsRenderbuffer(Renderbuffer* renderbuffer) const = 0;
55 Renderbuffer* renderbuffer) const = 0; 55 virtual bool IsSameAttachment(const Attachment* attachment) const = 0;
56 virtual bool Is3D() const = 0; 56 virtual bool Is3D() const = 0;
57 57
58 // If it's a 3D texture attachment, return true if 58 // If it's a 3D texture attachment, return true if
59 // FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER is smaller than the number of 59 // FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER is smaller than the number of
60 // layers in the texture. 60 // layers in the texture.
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,
(...skipping 11 matching lines...) Expand all
77 }; 77 };
78 78
79 Framebuffer(FramebufferManager* manager, GLuint service_id); 79 Framebuffer(FramebufferManager* manager, GLuint service_id);
80 80
81 GLuint service_id() const { 81 GLuint service_id() const {
82 return service_id_; 82 return service_id_;
83 } 83 }
84 84
85 bool HasUnclearedAttachment(GLenum attachment) const; 85 bool HasUnclearedAttachment(GLenum attachment) const;
86 bool HasUnclearedColorAttachments() const; 86 bool HasUnclearedColorAttachments() const;
87 bool HasDuplicateColorAttachments() const;
Zhenyao Mo 2016/07/19 20:39:15 nit: HasDuplicatedAttachments.
qiankun 2016/07/20 08:53:33 Done.
87 88
88 bool HasSRGBAttachments() const; 89 bool HasSRGBAttachments() const;
89 90
90 void ClearUnclearedIntOr3DTexturesOrPartiallyClearedTextures( 91 void ClearUnclearedIntOr3DTexturesOrPartiallyClearedTextures(
91 GLES2Decoder* decoder, 92 GLES2Decoder* decoder,
92 TextureManager* texture_manager); 93 TextureManager* texture_manager);
93 94
94 bool HasUnclearedIntRenderbufferAttachments() const; 95 bool HasUnclearedIntRenderbufferAttachments() const;
95 96
96 void ClearUnclearedIntRenderbufferAttachments( 97 void ClearUnclearedIntRenderbufferAttachments(
(...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after
377 378
378 scoped_refptr<FramebufferCompletenessCache> framebuffer_combo_complete_cache_; 379 scoped_refptr<FramebufferCompletenessCache> framebuffer_combo_complete_cache_;
379 380
380 DISALLOW_COPY_AND_ASSIGN(FramebufferManager); 381 DISALLOW_COPY_AND_ASSIGN(FramebufferManager);
381 }; 382 };
382 383
383 } // namespace gles2 384 } // namespace gles2
384 } // namespace gpu 385 } // namespace gpu
385 386
386 #endif // GPU_COMMAND_BUFFER_SERVICE_FRAMEBUFFER_MANAGER_H_ 387 #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') | gpu/command_buffer/service/framebuffer_manager.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698