Add a command line switch for emulating shader precision
commitaffd85abe31262f64241cc1462230a5dbe408bf1
authoroetuaho <oetuaho@nvidia.com>
Thu, 11 Dec 2014 09:47:09 +0000 (11 01:47 -0800)
committerCommit bot <commit-bot@chromium.org>
Thu, 11 Dec 2014 09:47:31 +0000 (11 09:47 +0000)
tree54da905b1731a889b458941e52342e7127c675b0
parentd15a2c134846cb7ef7d2a902ffe7cb1928b81de6
Add a command line switch for emulating shader precision

The switch sets Chrome to universally turn on ANGLE's precision
emulation. Currently it works only with the GL backends
(--use-gl=desktop on Windows). This feature is useful for testing and
debugging WebGL rendering corruption issues that appear on mobile
platforms.

Also moves gl-shader-interm-output switch to gpu_switches, where it
belongs.

BUG=438607

Review URL: https://codereview.chromium.org/784273003

Cr-Commit-Position: refs/heads/master@{#307880}
gpu/command_buffer/service/gles2_cmd_decoder.cc
gpu/command_buffer/service/gpu_switches.cc
gpu/command_buffer/service/gpu_switches.h
gpu/command_buffer/service/shader_translator.cc
ui/gl/gl_switches.cc
ui/gl/gl_switches.h