summaryrefslogtreecommitdiffstats
path: root/gpu/command_buffer/service/feature_info.h
diff options
context:
space:
mode:
authorskyostil@chromium.org <skyostil@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-09-19 13:04:11 +0000
committerskyostil@chromium.org <skyostil@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-09-19 13:04:11 +0000
commit50bcb3cb9d02bd24ad21cb95a6375a37e38aeec1 (patch)
treee33e32d293f984d7c940a22fefc96739c0314429 /gpu/command_buffer/service/feature_info.h
parent96946824b34885701dfe7fb36e035385fd859c0b (diff)
downloadchromium_src-50bcb3cb9d02bd24ad21cb95a6375a37e38aeec1.zip
chromium_src-50bcb3cb9d02bd24ad21cb95a6375a37e38aeec1.tar.gz
chromium_src-50bcb3cb9d02bd24ad21cb95a6375a37e38aeec1.tar.bz2
gpu: Upgrade DEPTH_COMPONENT16 to DEPTH_COMPONENT24 if possible
Upgrade the DEPTH_COMPONENT16 render buffer storage format to DEPTH_COMPONENT24 if the GLES implementation supports the OES_depth24 extension. This is done to improve content portability between desktop and mobile, since we already do a similar mapping from DEPTH_COMPONENT16 to the unsized DEPTH_COMPONENT on desktop GL. This means that for example WebGL content can end up relying on a higher precision depth buffer even though it only requested DEPTH_COMPONENT16. BUG=285400 TEST=http://www.khronos.org/registry/webgl/conformance-suites/1.0.1/webgl-conformance-tests.html on Nexus 4 Review URL: https://chromiumcodereview.appspot.com/24079010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@224117 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'gpu/command_buffer/service/feature_info.h')
-rw-r--r--gpu/command_buffer/service/feature_info.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/gpu/command_buffer/service/feature_info.h b/gpu/command_buffer/service/feature_info.h
index 782b3a8..7d5041f 100644
--- a/gpu/command_buffer/service/feature_info.h
+++ b/gpu/command_buffer/service/feature_info.h
@@ -32,6 +32,7 @@ class GPU_EXPORT FeatureInfo : public base::RefCounted<FeatureInfo> {
bool use_img_for_multisampled_render_to_texture;
bool oes_standard_derivatives;
bool oes_egl_image_external;
+ bool oes_depth24;
bool npot_ok;
bool enable_texture_float_linear;
bool enable_texture_half_float_linear;