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

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

Issue 1700433002: Complete disable_gl_rgb_format workaround for Mali-400 GPU (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Logic fixes from PS1 review comments Created 4 years, 10 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 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 void MarkAsValid() { 116 void MarkAsValid() {
117 has_been_bound_ = true; 117 has_been_bound_ = true;
118 } 118 }
119 119
120 bool IsValid() const { 120 bool IsValid() const {
121 return has_been_bound_ && !IsDeleted(); 121 return has_been_bound_ && !IsDeleted();
122 } 122 }
123 123
124 bool HasDepthAttachment() const; 124 bool HasDepthAttachment() const;
125 bool HasStencilAttachment() const; 125 bool HasStencilAttachment() const;
126 GLenum GetDrawBufferInternalFormat() const; 126 GLenum GetColorAttachment0Format() const;
127 GLenum GetReadBufferInternalFormat() const; 127 GLenum GetReadBufferInternalFormat() const;
128 // If the color attachment is a texture, returns its type; otherwise, 128 // If the color attachment is a texture, returns its type; otherwise,
129 // returns 0. 129 // returns 0.
130 GLenum GetReadBufferTextureType() const; 130 GLenum GetReadBufferTextureType() const;
131 131
132 // Verify all the rules in OpenGL ES 2.0.25 4.4.5 are followed. 132 // Verify all the rules in OpenGL ES 2.0.25 4.4.5 are followed.
133 // Returns GL_FRAMEBUFFER_COMPLETE if there are no reasons we know we can't 133 // Returns GL_FRAMEBUFFER_COMPLETE if there are no reasons we know we can't
134 // use this combination of attachments. Otherwise returns the value 134 // use this combination of attachments. Otherwise returns the value
135 // that glCheckFramebufferStatus should return for this set of attachments. 135 // that glCheckFramebufferStatus should return for this set of attachments.
136 // Note that receiving GL_FRAMEBUFFER_COMPLETE from this function does 136 // Note that receiving GL_FRAMEBUFFER_COMPLETE from this function does
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
312 312
313 scoped_refptr<FramebufferCompletenessCache> framebuffer_combo_complete_cache_; 313 scoped_refptr<FramebufferCompletenessCache> framebuffer_combo_complete_cache_;
314 314
315 DISALLOW_COPY_AND_ASSIGN(FramebufferManager); 315 DISALLOW_COPY_AND_ASSIGN(FramebufferManager);
316 }; 316 };
317 317
318 } // namespace gles2 318 } // namespace gles2
319 } // namespace gpu 319 } // namespace gpu
320 320
321 #endif // GPU_COMMAND_BUFFER_SERVICE_FRAMEBUFFER_MANAGER_H_ 321 #endif // GPU_COMMAND_BUFFER_SERVICE_FRAMEBUFFER_MANAGER_H_
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/context_state.cc ('k') | gpu/command_buffer/service/framebuffer_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698