RESOLVED FIXED52333
Add support to DumpRenderTree to use the GPU rather than software renderer
https://bugs.webkit.org/show_bug.cgi?id=52333
Summary Add support to DumpRenderTree to use the GPU rather than software renderer
Vincent Scheib
Reported 2011-01-12 16:14:12 PST
Add support to DumpRenderTree to use the GPU rather than software renderer
Attachments
Patch (5.60 KB, patch)
2011-01-12 16:24 PST, Vincent Scheib
no flags
Patch (5.59 KB, patch)
2011-01-13 09:20 PST, Vincent Scheib
no flags
Patch (5.95 KB, patch)
2011-01-13 11:27 PST, Vincent Scheib
no flags
Patch (6.00 KB, patch)
2011-01-13 11:53 PST, Vincent Scheib
no flags
Patch (6.03 KB, patch)
2011-01-14 09:04 PST, Vincent Scheib
no flags
Vincent Scheib
Comment 1 2011-01-12 16:24:52 PST
WebKit Review Bot
Comment 2 2011-01-12 16:29:36 PST
Vincent Scheib
Comment 3 2011-01-12 16:31:32 PST
Initial review for work in progress, The chromium changes will need to land before the webkit changes. http://codereview.chromium.org/6258001 https://bugs.webkit.org/show_bug.cgi?id=52333
Vincent Scheib
Comment 4 2011-01-12 16:34:09 PST
Dirk, could you check on the simple switch additions to Tools/Scripts/webkitpy/layout_tests/...
Dirk Pranke
Comment 5 2011-01-12 18:30:37 PST
Comment on attachment 78754 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=78754&action=review The change looks fine. Semi-unrelated note: will we be able to remove the --accelerated-* flags (to new-run-webkit-tests, not to DRT/TestShell) at some point soon because those code paths should always be on? > Tools/Scripts/webkitpy/layout_tests/port/chromium.py:396 > + cmd.append('--test-on-GPU-hardware') Typically we wouldn't use mixed-case for this. I might call the switch something shorter like --use-hardware-gpu . > Tools/Scripts/webkitpy/layout_tests/run_webkit_tests.py:249 > + help="Run OpenGL commands on real GPU hardware vs software"), For now, this way of declaring things is fine. If we do something like what I discussed earlier, where default should vary depending on whether you use --platform chromium-win or --platform chromium-gpu-win, then you would want a default=None (not setting default= as an argument has the same effect) and then test for None explicitly in the Port code to see if the flag was set on the command line or if we need to specify the default. This is a result of the unfortunate fact of argument parsing happening before we get to execute any Port code (which I'll fix at some point, but not now).
Dirk Pranke
Comment 6 2011-01-12 18:31:00 PST
Mihai, you want to take a look at / review this?
Mihai Parparita
Comment 7 2011-01-12 18:39:04 PST
Comment on attachment 78754 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=78754&action=review > Tools/DumpRenderTree/chromium/DumpRenderTree.cpp:54 > +static const char optionHardwareAcceleratedGL[] = "--test-on-GPU-hardware"; I agree with Dirk, the flag name should be all lowercase.
Vincent Scheib
Comment 8 2011-01-13 09:20:19 PST
Vincent Scheib
Comment 9 2011-01-13 09:22:14 PST
Command line switch changed to --enable-hardware-gpu
WebKit Review Bot
Comment 10 2011-01-13 09:24:33 PST
Kenneth Russell
Comment 11 2011-01-13 11:07:06 PST
Comment on attachment 78818 [details] Patch The code changes look good. You need to roll forward the Chromium revision in WebKit/chromium/DEPS to the revision where you checked in the new webkit_support API in order for this to compile on the webkit.org Chromium builders.
Vincent Scheib
Comment 12 2011-01-13 11:27:40 PST
Mihai Parparita
Comment 13 2011-01-13 11:30:45 PST
Comment on attachment 78834 [details] Patch Please wait for the cr-linux EWS bot to process this patch before landing. View in context: https://bugs.webkit.org/attachment.cgi?id=78834&action=review > WebKit/chromium/ChangeLog:8 > + * WebKit.gyp: DumpRenderTree depends on Angle on windows Should update the ChangeLog to include the DEPS file.
Vincent Scheib
Comment 14 2011-01-13 11:53:57 PST
WebKit Review Bot
Comment 15 2011-01-13 12:05:50 PST
Mihai Parparita
Comment 16 2011-01-13 13:12:15 PST
(In reply to comment #15) > Attachment 78837 [details] did not build on chromium: > Build output: http://queues.webkit.org/results/7579020 Not sure I understand why this is happening: In file included from WebKit/chromium/webkit/tools/test_shell/mock_webclipboard_impl.cc:5: WebKit/chromium/webkit/tools/test_shell/mock_webclipboard_impl.h:13: fatal error: third_party/WebKit/WebKit/chromium/public/WebClipboard.h: No such file or directory If I roll to 71332 locally, things build fine. Perhaps the EWS bot is sick (if it's missing a file)?
Kent Tamura
Comment 17 2011-01-13 16:38:43 PST
(In reply to comment #16) > (In reply to comment #15) > > Attachment 78837 [details] [details] did not build on chromium: > > Build output: http://queues.webkit.org/results/7579020 > > Not sure I understand why this is happening: > > In file included from WebKit/chromium/webkit/tools/test_shell/mock_webclipboard_impl.cc:5: > WebKit/chromium/webkit/tools/test_shell/mock_webclipboard_impl.h:13: fatal error: third_party/WebKit/WebKit/chromium/public/WebClipboard.h: No such file or directory It looks my failure. webkit_support_common library should depend on setup_third_party.gyp:third_party_headers. I'll check it and fix.
Kent Tamura
Comment 18 2011-01-13 17:41:59 PST
> webkit_support_common library should depend on setup_third_party.gyp:third_party_headers. > I'll check it and fix. Fixed. Please use Chromium r71405 or later.
Vincent Scheib
Comment 19 2011-01-14 09:04:17 PST
Vincent Scheib
Comment 20 2011-01-14 09:04:57 PST
Chromium revision bumped to 71405
WebKit Commit Bot
Comment 21 2011-01-14 10:09:30 PST
Comment on attachment 78947 [details] Patch Clearing flags on attachment: 78947 Committed r75800: <http://trac.webkit.org/changeset/75800>
WebKit Commit Bot
Comment 22 2011-01-14 10:09:35 PST
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.