2011-05-12 Gregg Tavares <gman@chromium.org>

        Reviewed by Kenneth Russell.

        Add option to select GraphicsContext3D implementation.
        https://bugs.webkit.org/show_bug.cgi?id=60297

        * Source/WebKit/chromium/DEPS:
        * Tools/DumpRenderTree/chromium/DumpRenderTree.cpp:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@86403 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent f7be5262
2011-05-12 Gregg Tavares <gman@chromium.org>
Reviewed by Kenneth Russell.
Add option to select GraphicsContext3D implementation.
https://bugs.webkit.org/show_bug.cgi?id=60297
* Source/WebKit/chromium/DEPS:
* Tools/DumpRenderTree/chromium/DumpRenderTree.cpp:
2011-05-12 Lucas De Marchi <lucas.demarchi@profusion.mobi>
Reviewed by Antonio Gomes.
......
......@@ -32,7 +32,7 @@
vars = {
'chromium_svn': 'http://src.chromium.org/svn/trunk/src',
'chromium_rev': '84264'
'chromium_rev': '84365'
}
deps = {
......
......@@ -59,6 +59,7 @@ static const char optionEnableAccelerated2DCanvas[] = "--enable-accelerated-2d-c
static const char optionEnableLegacyAccelerated2DCanvas[] = "--enable-legacy-accelerated-2d-canvas";
static const char optionEnableAcceleratedDrawing[] = "--enable-accelerated-drawing";
static const char optionEnableCompositeToTexture[] = "--enable-composite-to-texture";
static const char optionUseGraphicsContext3DImplementation[] = "--use-graphics-context-3d-implementation=";
static const char optionStressOpt[] = "--stress-opt";
static const char optionStressDeopt[] = "--stress-deopt";
......@@ -184,7 +185,15 @@ int main(int argc, char* argv[])
legacyAccelerated2DCanvasEnabled = true;
else if (argument == optionEnableAcceleratedDrawing)
acceleratedDrawingEnabled = true;
else if (argument == optionStressOpt)
else if (!argument.find(optionUseGraphicsContext3DImplementation)) {
string implementation = argument.substr(strlen(optionUseGraphicsContext3DImplementation));
if (!implementation.compare("IN_PROCESS"))
webkit_support::SetGraphicsContext3DImplementation(webkit_support::IN_PROCESS);
else if (!implementation.compare("IN_PROCESS_COMMAND_BUFFER"))
webkit_support::SetGraphicsContext3DImplementation(webkit_support::IN_PROCESS_COMMAND_BUFFER);
else
fprintf(stderr, "Unknown GraphicContext3D implementation %s\n", implementation.c_str());
} else if (argument == optionStressOpt)
stressOpt = true;
else if (argument == optionStressDeopt)
stressDeopt = true;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment