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

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

Issue 896303004: gpu: Workaround Adreno 420 bug with deleting current FBO. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove AttachRenderbuffer call. Created 5 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 <vector> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 67
68 bool HasUnclearedAttachment(GLenum attachment) const; 68 bool HasUnclearedAttachment(GLenum attachment) const;
69 bool HasUnclearedColorAttachments() const; 69 bool HasUnclearedColorAttachments() const;
70 70
71 void MarkAttachmentAsCleared( 71 void MarkAttachmentAsCleared(
72 RenderbufferManager* renderbuffer_manager, 72 RenderbufferManager* renderbuffer_manager,
73 TextureManager* texture_manager, 73 TextureManager* texture_manager,
74 GLenum attachment, 74 GLenum attachment,
75 bool cleared); 75 bool cleared);
76 76
77 // Unbinds all attachments from this framebuffer. The framebuffer must be
78 // bound when calling this.
79 void UnbindAttachments(GLenum target);
no sievers 2015/02/17 22:49:54 Can you rename it to something so that it doesn't
vmiura 2015/02/18 17:43:18 Done.
80
77 // Attaches a renderbuffer to a particlar attachment. 81 // Attaches a renderbuffer to a particlar attachment.
78 // Pass null to detach. 82 // Pass null to detach.
79 void AttachRenderbuffer( 83 void AttachRenderbuffer(
80 GLenum attachment, Renderbuffer* renderbuffer); 84 GLenum attachment, Renderbuffer* renderbuffer);
81 85
82 // Attaches a texture to a particlar attachment. Pass null to detach. 86 // Attaches a texture to a particlar attachment. Pass null to detach.
83 void AttachTexture( 87 void AttachTexture(
84 GLenum attachment, TextureRef* texture_ref, GLenum target, 88 GLenum attachment, TextureRef* texture_ref, GLenum target,
85 GLint level, GLsizei samples); 89 GLint level, GLsizei samples);
86 90
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after
309 typedef std::vector<TextureDetachObserver*> TextureDetachObserverVector; 313 typedef std::vector<TextureDetachObserver*> TextureDetachObserverVector;
310 TextureDetachObserverVector texture_detach_observers_; 314 TextureDetachObserverVector texture_detach_observers_;
311 315
312 DISALLOW_COPY_AND_ASSIGN(FramebufferManager); 316 DISALLOW_COPY_AND_ASSIGN(FramebufferManager);
313 }; 317 };
314 318
315 } // namespace gles2 319 } // namespace gles2
316 } // namespace gpu 320 } // namespace gpu
317 321
318 #endif // GPU_COMMAND_BUFFER_SERVICE_FRAMEBUFFER_MANAGER_H_ 322 #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/config/gpu_driver_bug_list_json.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698