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

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

Issue 951673002: Revert "Pull chromium at 2c3ffb2355a27c32f45e508ef861416b820c823b" (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: 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 for workaround
78 // 'unbind_attachments_on_bound_render_fbo_delete'. The Framebuffer must be
79 // bound when calling this.
80 void DoUnbindGLAttachmentsForWorkaround(GLenum target);
81
82 // Attaches a renderbuffer to a particlar attachment. 77 // Attaches a renderbuffer to a particlar attachment.
83 // Pass null to detach. 78 // Pass null to detach.
84 void AttachRenderbuffer( 79 void AttachRenderbuffer(
85 GLenum attachment, Renderbuffer* renderbuffer); 80 GLenum attachment, Renderbuffer* renderbuffer);
86 81
87 // Attaches a texture to a particlar attachment. Pass null to detach. 82 // Attaches a texture to a particlar attachment. Pass null to detach.
88 void AttachTexture( 83 void AttachTexture(
89 GLenum attachment, TextureRef* texture_ref, GLenum target, 84 GLenum attachment, TextureRef* texture_ref, GLenum target,
90 GLint level, GLsizei samples); 85 GLint level, GLsizei samples);
91 86
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after
314 typedef std::vector<TextureDetachObserver*> TextureDetachObserverVector; 309 typedef std::vector<TextureDetachObserver*> TextureDetachObserverVector;
315 TextureDetachObserverVector texture_detach_observers_; 310 TextureDetachObserverVector texture_detach_observers_;
316 311
317 DISALLOW_COPY_AND_ASSIGN(FramebufferManager); 312 DISALLOW_COPY_AND_ASSIGN(FramebufferManager);
318 }; 313 };
319 314
320 } // namespace gles2 315 } // namespace gles2
321 } // namespace gpu 316 } // namespace gpu
322 317
323 #endif // GPU_COMMAND_BUFFER_SERVICE_FRAMEBUFFER_MANAGER_H_ 318 #endif // GPU_COMMAND_BUFFER_SERVICE_FRAMEBUFFER_MANAGER_H_
OLDNEW
« no previous file with comments | « gpu/command_buffer/common/gles2_cmd_utils.cc ('k') | gpu/command_buffer/service/framebuffer_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698