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

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

Issue 2120343002: command_buffer: correctly use glGetFramebufferAttachmentParameter (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address last comment? 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
« 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 <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 } 138 }
139 139
140 void MarkAsValid() { 140 void MarkAsValid() {
141 has_been_bound_ = true; 141 has_been_bound_ = true;
142 } 142 }
143 143
144 bool IsValid() const { 144 bool IsValid() const {
145 return has_been_bound_ && !IsDeleted(); 145 return has_been_bound_ && !IsDeleted();
146 } 146 }
147 147
148 bool HasColorAttachment(int index) const;
148 bool HasDepthAttachment() const; 149 bool HasDepthAttachment() const;
149 bool HasStencilAttachment() const; 150 bool HasStencilAttachment() const;
150 GLenum GetDepthFormat() const; 151 GLenum GetDepthFormat() const;
151 GLenum GetStencilFormat() const; 152 GLenum GetStencilFormat() const;
152 GLenum GetDrawBufferInternalFormat() const; 153 GLenum GetDrawBufferInternalFormat() const;
153 GLenum GetReadBufferInternalFormat() const; 154 GLenum GetReadBufferInternalFormat() const;
154 // If the color attachment is a texture, returns its type; otherwise, 155 // If the color attachment is a texture, returns its type; otherwise,
155 // returns 0. 156 // returns 0.
156 GLenum GetReadBufferTextureType() const; 157 GLenum GetReadBufferTextureType() const;
157 158
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
332 333
333 scoped_refptr<FramebufferCompletenessCache> framebuffer_combo_complete_cache_; 334 scoped_refptr<FramebufferCompletenessCache> framebuffer_combo_complete_cache_;
334 335
335 DISALLOW_COPY_AND_ASSIGN(FramebufferManager); 336 DISALLOW_COPY_AND_ASSIGN(FramebufferManager);
336 }; 337 };
337 338
338 } // namespace gles2 339 } // namespace gles2
339 } // namespace gpu 340 } // namespace gpu
340 341
341 #endif // GPU_COMMAND_BUFFER_SERVICE_FRAMEBUFFER_MANAGER_H_ 342 #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