diff options
author | gman@chromium.org <gman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-09-30 21:29:11 +0000 |
---|---|---|
committer | gman@chromium.org <gman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-09-30 21:29:11 +0000 |
commit | 915a59a10d1a1bb008821fd4e4f2019a4c676142 (patch) | |
tree | bec2e4c963ea3f6da1e839799a144de14086945e /gpu/command_buffer/service/gles2_cmd_decoder.h | |
parent | d15e56c68d773261b98d20b61aeeb03cfa0fb24e (diff) | |
download | chromium_src-915a59a10d1a1bb008821fd4e4f2019a4c676142.zip chromium_src-915a59a10d1a1bb008821fd4e4f2019a4c676142.tar.gz chromium_src-915a59a10d1a1bb008821fd4e4f2019a4c676142.tar.bz2 |
A step in making it possible for WebGL to request no features
and the add them in as extensions are enabled.
The idea is when WebGL inits it's context it will pass ""
to FeatureInfo::Initialize. After that it can pass various
GL extension strings to FeatureInfo::AddFeatures
to turn on more features.
It can then call glGetString(GL_EXTENSIONS) to see if the
feature was turned on.
Questions: I started this CL trying to make it possible
so each context could have it's own FeatureInfo. I decided
against that. So that brings up the question, should I
get rid of FeatureInfo and just put this stuff back on
ContextGroup or leave it as is?
If I leave it as is, should I move all the max_XXX stuff
on ContextGroup to FeatureInfo?
TEST=unit tests
BUG=none
Review URL: http://codereview.chromium.org/3413038
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@61114 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'gpu/command_buffer/service/gles2_cmd_decoder.h')
-rw-r--r-- | gpu/command_buffer/service/gles2_cmd_decoder.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/gpu/command_buffer/service/gles2_cmd_decoder.h b/gpu/command_buffer/service/gles2_cmd_decoder.h index 694fa37..57ec8b5 100644 --- a/gpu/command_buffer/service/gles2_cmd_decoder.h +++ b/gpu/command_buffer/service/gles2_cmd_decoder.h @@ -48,10 +48,13 @@ class GLES2Decoder : public CommonDecoder { // Parameters: // context: the GL context to render to. // size: the size if the GL context is offscreen. + // allowed_features: A string in the same format as + // glGetString(GL_EXTENSIONS) that lists the extensions this context + // should allow. Passing NULL means allow all extensions. // parent: the GLES2 decoder that can access this decoder's front buffer - // through a texture ID in its namespace. + // through a texture ID in its namespace. // parent_client_texture_id: the texture ID of the front buffer in the - // parent's namespace. + // parent's namespace. // Returns: // true if successful. virtual bool Initialize(gfx::GLContext* context, |