summaryrefslogtreecommitdiffstats
path: root/webkit/support/webkit_support.cc
diff options
context:
space:
mode:
authorkbr@chromium.org <kbr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-09-17 22:35:08 +0000
committerkbr@chromium.org <kbr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-09-17 22:35:08 +0000
commitfff02adb4d0a2c2ae24aa8c65fbcb637c8816465 (patch)
treed597ebb98b3a5f79490dcca814ea2880747e7544 /webkit/support/webkit_support.cc
parent63df2dbd0eb9b3ba307557e7e527fbe50ad54a77 (diff)
downloadchromium_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.cc5
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.