aboutsummaryrefslogtreecommitdiff
path: root/src/libGLESv2/Framebuffer.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/libGLESv2/Framebuffer.h')
-rw-r--r--src/libGLESv2/Framebuffer.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/libGLESv2/Framebuffer.h b/src/libGLESv2/Framebuffer.h
index de84fbfe..d6dce690 100644
--- a/src/libGLESv2/Framebuffer.h
+++ b/src/libGLESv2/Framebuffer.h
@@ -10,6 +10,8 @@
#ifndef LIBGLESV2_FRAMEBUFFER_H_
#define LIBGLESV2_FRAMEBUFFER_H_
+#include <vector>
+
#include "common/angleutils.h"
#include "common/RefCountObject.h"
#include "constants.h"
@@ -28,6 +30,8 @@ class Stencilbuffer;
class DepthStencilbuffer;
struct Caps;
+typedef std::vector<FramebufferAttachment *> ColorbufferInfo;
+
class Framebuffer
{
public:
@@ -72,6 +76,11 @@ class Framebuffer
void invalidateSub(const Caps &caps, GLsizei numAttachments, const GLenum *attachments,
GLint x, GLint y, GLsizei width, GLsizei height);
+ // Use this method to retrieve the color buffer map when doing rendering.
+ // It will apply a workaround for poor shader performance on some systems
+ // by compacting the list to skip NULL values.
+ ColorbufferInfo getColorbuffersForRender() const;
+
protected:
rx::Renderer *mRenderer;