diff options
author | kbr@google.com <kbr@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-11-03 21:13:53 +0000 |
---|---|---|
committer | kbr@google.com <kbr@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-11-03 21:13:53 +0000 |
commit | 0daa69b89baf4369da28bfcfa3e06e3715afb9cb (patch) | |
tree | 92eaa1177a7323049784ff7e23ac99eca25bb240 /gpu | |
parent | 19de90f0acda975a59c8e1fd3be212246bc15dcc (diff) | |
download | chromium_src-0daa69b89baf4369da28bfcfa3e06e3715afb9cb.zip chromium_src-0daa69b89baf4369da28bfcfa3e06e3715afb9cb.tar.gz chromium_src-0daa69b89baf4369da28bfcfa3e06e3715afb9cb.tar.bz2 |
Advertise the GL_CHROMIUM_copy_texture_to_parent_texture and
GL_CHROMIUM_map_sub extensions by default. These are needed in
WebGraphicsContext3D instances in support of the accelerated 2D canvas
and video rendering functionality.
Associated WebKit bug is https://bugs.webkit.org/show_bug.cgi?id=46894 .
Tested on Linux with this refactoring, accelerated 2D canvas, and
HTML5 video.
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/4268004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@64963 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'gpu')
-rw-r--r-- | gpu/command_buffer/service/feature_info.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gpu/command_buffer/service/feature_info.cc b/gpu/command_buffer/service/feature_info.cc index 3edb49e..00fed83 100644 --- a/gpu/command_buffer/service/feature_info.cc +++ b/gpu/command_buffer/service/feature_info.cc @@ -95,6 +95,10 @@ void FeatureInfo::AddFeatures(const char* desired_features) { AddExtensionString("GL_CHROMIUM_map_sub"); } + if (ext.Desire("GL_CHROMIUM_copy_texture_to_parent_texture")) { + AddExtensionString("GL_CHROMIUM_copy_texture_to_parent_texture"); + } + // Only turn this feature on if it is requested. Not by default. if (desired_features && ext.Desire("GL_CHROMIUM_strict_attribs")) { AddExtensionString("GL_CHROMIUM_strict_attribs"); |