Index: gpu/command_buffer/service/context_group.h |
=================================================================== |
--- gpu/command_buffer/service/context_group.h (revision 187725) |
+++ gpu/command_buffer/service/context_group.h (working copy) |
@@ -103,6 +103,14 @@ |
return max_vertex_uniform_vectors_; |
} |
+ uint32 max_color_attachments() const { |
+ return max_color_attachments_; |
+ } |
+ |
+ uint32 max_draw_buffers() const { |
+ return max_draw_buffers_; |
+ } |
+ |
FeatureInfo* feature_info() { |
return feature_info_.get(); |
} |
@@ -150,6 +158,10 @@ |
// Loses all the context associated with this group. |
void LoseContexts(GLenum reset_status); |
+ // EXT_draw_buffer related states for backbuffer. |
+ GLenum GetDrawBuffer(GLenum draw_buffer) const; |
+ void SetDrawBuffers(GLsizei n, const GLenum* bufs); |
+ |
private: |
friend class base::RefCounted<ContextGroup>; |
~ContextGroup(); |
@@ -175,6 +187,8 @@ |
uint32 max_fragment_uniform_vectors_; |
uint32 max_varying_vectors_; |
uint32 max_vertex_uniform_vectors_; |
+ uint32 max_color_attachments_; |
+ uint32 max_draw_buffers_; |
ProgramCache* program_cache_; |
@@ -197,6 +211,8 @@ |
std::vector<base::WeakPtr<gles2::GLES2Decoder> > decoders_; |
+ scoped_array<GLenum> draw_buffers_; |
+ |
DISALLOW_COPY_AND_ASSIGN(ContextGroup); |
}; |