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

Unified Diff: gpu/command_buffer/service/framebuffer_manager.h

Issue 1309333003: Get ReadPixels to work with INT and UNSIGNED_INT format. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 4 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 side-by-side diff with in-line comments
Download patch
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;

Powered by Google App Engine
This is Rietveld 408576698