ChangeLog

 12011-05-05 Gregg Tavares <gman@google.org>
 2
 3 Reviewed by Kenneth Russell
 4
 5 Adds a command line switch to the chromium version of DumpRenderTree
 6 so you can select a GraphicsContext3D implementation.
 7
 8 https://bugs.webkit.org/show_bug.cgi?id=60297
 9
 10 * ../../Tools/DumpRenderTree/chromium/DumpRenderTree.cpp:
 11
1122011-05-05 Prasanth Ullattil <prasanth.ullattil@nokia.com>
213
314 Reviewed by Simon Hausmann.
85893

Tools/DumpRenderTree/chromium/DumpRenderTree.cpp

@@static const char optionEnableAccelerate
5959static const char optionEnableLegacyAccelerated2DCanvas[] = "--enable-legacy-accelerated-2d-canvas";
6060static const char optionEnableAcceleratedDrawing[] = "--enable-accelerated-drawing";
6161static const char optionEnableCompositeToTexture[] = "--enable-composite-to-texture";
 62static const char optionUseGraphicsContext3DImplementation[] = "--use-graphics-context-3d-implementation=";
6263
6364static const char optionStressOpt[] = "--stress-opt";
6465static const char optionStressDeopt[] = "--stress-deopt";

@@int main(int argc, char* argv[])
184185 legacyAccelerated2DCanvasEnabled = true;
185186 else if (argument == optionEnableAcceleratedDrawing)
186187 acceleratedDrawingEnabled = true;
187  else if (argument == optionStressOpt)
 188 else if (!argument.find(optionUseGraphicsContext3DImplementation)) {
 189 string implementation = argument.substr(strlen(optionUseGraphicsContext3DImplementation));
 190 if (!implementation.compare("IN_PROCESS"))
 191 webkit_support::SetGraphicsContext3DImplementation(webkit_support::IN_PROCESS);
 192 else if (!implementation.compare("IN_PROCESS_COMMAND_BUFFER"))
 193 webkit_support::SetGraphicsContext3DImplementation(webkit_support::IN_PROCESS_COMMAND_BUFFER);
 194 else
 195 fprintf(stderr, "Unknown GraphicContext3D implementation %s\n", implementation.c_str());
 196 } else if (argument == optionStressOpt)
188197 stressOpt = true;
189198 else if (argument == optionStressDeopt)
190199 stressDeopt = true;
85878