diff options
author | kbr@chromium.org <kbr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-09-17 22:35:08 +0000 |
---|---|---|
committer | kbr@chromium.org <kbr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-09-17 22:35:08 +0000 |
commit | fff02adb4d0a2c2ae24aa8c65fbcb637c8816465 (patch) | |
tree | d597ebb98b3a5f79490dcca814ea2880747e7544 /webkit/support/webkit_support.cc | |
parent | 63df2dbd0eb9b3ba307557e7e527fbe50ad54a77 (diff) | |
download | chromium_src-fff02adb4d0a2c2ae24aa8c65fbcb637c8816465.zip chromium_src-fff02adb4d0a2c2ae24aa8c65fbcb637c8816465.tar.gz chromium_src-fff02adb4d0a2c2ae24aa8c65fbcb637c8816465.tar.bz2 |
Force DumpRenderTree to use the Mesa backend for OpenGL as was
previously done for test_shell. Verified that Mesa will be used for
WebGL tests after DRT dependencies are updated.
BUG=none
TEST=none (ran a couple of WebGL tests in DRT via new-run-webkit-tests)
Review URL: http://codereview.chromium.org/3439007
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@59866 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/support/webkit_support.cc')
-rw-r--r-- | webkit/support/webkit_support.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/webkit/support/webkit_support.cc b/webkit/support/webkit_support.cc index 0d4d72a..744205a 100644 --- a/webkit/support/webkit_support.cc +++ b/webkit/support/webkit_support.cc @@ -4,6 +4,7 @@ #include "webkit/support/webkit_support.h" +#include "app/gfx/gl/gl_implementation.h" #include "base/at_exit.h" #include "base/base64.h" #include "base/command_line.h" @@ -105,6 +106,10 @@ class TestEnvironment { if (!unit_test_mode) { at_exit_manager_.reset(new base::AtExitManager); InitLogging(false); + + // Default to OSMesa for GL, for testing WebGL, 3D CSS and other + // GPU-related APIs. + gfx::InitializeGLBindings(gfx::kGLImplementationOSMesaGL); } main_message_loop_.reset(new MessageLoopForUI); // TestWebKitClient must be instantiated after the MessageLoopForUI. |