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

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

Issue 1412613004: Set attachment for bound framebuffer in FramebufferTextureLayer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix WebGLTextureAttachment::attach Created 5 years, 1 month 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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 83
84 // Attaches a renderbuffer to a particlar attachment. 84 // Attaches a renderbuffer to a particlar attachment.
85 // Pass null to detach. 85 // Pass null to detach.
86 void AttachRenderbuffer( 86 void AttachRenderbuffer(
87 GLenum attachment, Renderbuffer* renderbuffer); 87 GLenum attachment, Renderbuffer* renderbuffer);
88 88
89 // Attaches a texture to a particlar attachment. Pass null to detach. 89 // Attaches a texture to a particlar attachment. Pass null to detach.
90 void AttachTexture( 90 void AttachTexture(
91 GLenum attachment, TextureRef* texture_ref, GLenum target, 91 GLenum attachment, TextureRef* texture_ref, GLenum target,
92 GLint level, GLsizei samples); 92 GLint level, GLsizei samples);
93 void AttachTextureLayer(
94 GLenum attachment, TextureRef* texture_ref, GLenum target,
95 GLint level, GLint layer);
93 96
94 // Unbinds the given renderbuffer if it is bound. 97 // Unbinds the given renderbuffer if it is bound.
95 void UnbindRenderbuffer( 98 void UnbindRenderbuffer(
96 GLenum target, Renderbuffer* renderbuffer); 99 GLenum target, Renderbuffer* renderbuffer);
97 100
98 // Unbinds the given texture if it is bound. 101 // Unbinds the given texture if it is bound.
99 void UnbindTexture( 102 void UnbindTexture(
100 GLenum target, TextureRef* texture_ref); 103 GLenum target, TextureRef* texture_ref);
101 104
102 const Attachment* GetAttachment(GLenum attachment) const; 105 const Attachment* GetAttachment(GLenum attachment) const;
(...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after
341 344
342 scoped_refptr<FramebufferCompletenessCache> framebuffer_combo_complete_cache_; 345 scoped_refptr<FramebufferCompletenessCache> framebuffer_combo_complete_cache_;
343 346
344 DISALLOW_COPY_AND_ASSIGN(FramebufferManager); 347 DISALLOW_COPY_AND_ASSIGN(FramebufferManager);
345 }; 348 };
346 349
347 } // namespace gles2 350 } // namespace gles2
348 } // namespace gpu 351 } // namespace gpu
349 352
350 #endif // GPU_COMMAND_BUFFER_SERVICE_FRAMEBUFFER_MANAGER_H_ 353 #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