Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(36)

Unified Diff: webkit/support/webkit_support.cc

Issue 6258001: Add support for DumpRenderTree to use the GPU rather than software renderer (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/webkit/tools/layout_tests
Patch Set: Splitting patch into two, to keep current software initialization working Created 9 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webkit/support/webkit_support.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/support/webkit_support.cc
diff --git a/webkit/support/webkit_support.cc b/webkit/support/webkit_support.cc
index e9eed2e6318364388e8c29e3abc0f2425cda96a5..3b02a55d8ca812d71aa350431edf6da81df713b2 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_context.h"
#include "app/gfx/gl/gl_implementation.h"
#include "base/at_exit.h"
#include "base/base64.h"
@@ -289,6 +290,19 @@ WebKit::WebString GetWebKitRootDir() {
return WebKit::WebString::fromUTF8(WideToUTF8(path.ToWStringHack()).c_str());
}
+void SetUpGLBindings(GLBindingPreferences bindingPref) {
+ switch(bindingPref) {
+ case GL_BINDING_DEFAULT:
+ gfx::GLContext::InitializeOneOff();
+ break;
+ case GL_BINDING_SOFTWARE_RENDERER:
+ gfx::InitializeGLBindings(gfx::kGLImplementationOSMesaGL);
+ break;
+ default:
+ NOTREACHED();
+ }
+}
+
void RegisterMockedURL(const WebKit::WebURL& url,
const WebKit::WebURLResponse& response,
const WebKit::WebString& file_path) {
« no previous file with comments | « webkit/support/webkit_support.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698