summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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.