Index: gpu/command_buffer/service/framebuffer_manager.h |
diff --git a/gpu/command_buffer/service/framebuffer_manager.h b/gpu/command_buffer/service/framebuffer_manager.h |
index 04325847146720f9c68478485e064d16f384f56c..d61edfb2126eabfb795b9c2fa2506b062a644fdf 100644 |
--- a/gpu/command_buffer/service/framebuffer_manager.h |
+++ b/gpu/command_buffer/service/framebuffer_manager.h |
@@ -150,6 +150,9 @@ class GPU_EXPORT Framebuffer : public base::RefCounted<Framebuffer> { |
// PrepareDrawBuffersForClear(). |
void RestoreDrawBuffersAfterClear() const; |
+ // Clear all the active INT or UINT type color buffers to (0, 0, 0, 0). |
+ void ClearIntegerBuffers(); |
+ |
// Return true if any draw buffers has an alpha channel. |
bool HasAlphaMRT() const; |
@@ -158,8 +161,11 @@ class GPU_EXPORT Framebuffer : public base::RefCounted<Framebuffer> { |
bool HasSameInternalFormatsMRT() const; |
void OnTextureRefDetached(TextureRef* texture); |
- void OnWillRenderTo() const; |
- void OnDidRenderTo() const; |
+ |
+ // If attachment is 0, apply to all attachments; otherwise, apply only to |
+ // the specified attachment. |
+ void OnWillRenderTo(GLenum attachment) const; |
+ void OnDidRenderTo(GLenum attachment) const; |
void set_read_buffer(GLenum read_buffer) { |
read_buffer_ = read_buffer; |