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

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

Issue 12545014: Implement EXT_draw_buffers WebGL extention support in command buffer. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 years, 9 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
« no previous file with comments | « gpu/command_buffer/common/gles2_cmd_utils.cc ('k') | gpu/command_buffer/service/context_group.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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,14 @@
// Loses all the context associated with this group.
void LoseContexts(GLenum reset_status);
+ // EXT_draw_buffer related states for backbuffer.
+ GLenum draw_buffer() const {
+ return draw_buffer_;
+ }
+ void set_draw_buffer(GLenum buf) {
+ draw_buffer_ = buf;
+ }
+
private:
friend class base::RefCounted<ContextGroup>;
~ContextGroup();
@@ -175,6 +191,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 +215,8 @@
std::vector<base::WeakPtr<gles2::GLES2Decoder> > decoders_;
+ GLenum draw_buffer_;
+
DISALLOW_COPY_AND_ASSIGN(ContextGroup);
};
« no previous file with comments | « gpu/command_buffer/common/gles2_cmd_utils.cc ('k') | gpu/command_buffer/service/context_group.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698