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

Issue 12315103: mac content shell drt: Hook up a dummy image transport (Closed)

Created:
7 years, 9 months ago by Nico
Modified:
7 years, 9 months ago
CC:
chromium-reviews, jam, sail+watch_chromium.org, joi+watch-content_chromium.org, darin-cc_chromium.org, apatrick_chromium, jochen+watch_chromium.org
Visibility:
Public.

Description

mac content shell drt: Hook up a dummy image transport WebKit's layout tests require running with osmesa to get reliable pixel results. Since content shell drt spins up a full gpu process, an image transport implementation is needed for osmesa. content shell drt reads pixel baselines off the renderer, so the implementation doesn't have to do much. To make sure it doesn't get picked accidentally, put it behind a off-by-default flag that's only toggled on in content shell drt. BUG=111316 TEST= `webkit/tools/layout_tests/run_webkit_tests.sh --driver-name 'Content Shell' --additional-drt-flag --dump-render-tree webgl/conformance/attribs/gl-disabled-vertex-attrib.html` passes `webkit/tools/layout_tests/run_webkit_tests.sh --driver-name 'Content Shell' --additional-drt-flag --dump-render-tree animations/3d/change-transform-in-end-event.html` has only minor text antialiasing pixel differences Note: Running `out/Release/Content\ Shell.app/Contents/MacOS/Content\ Shell third_party/WebKit/LayoutTests/animations/3d/change-transform-in-end-event.html --dump-render-tree` won't update the drt window correctly due to this being a dummy transport bitmap. Eventually --dump-render-tree will hide the window, so that should be ok. (And without --dump-render-tree, the test renders fine.) Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=184740

Patch Set 1 #

Total comments: 12

Patch Set 2 : jochen #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+51 lines, -2 lines) Patch
M content/common/gpu/image_transport_surface.h View 1 2 chunks +4 lines, -0 lines 0 comments Download
M content/common/gpu/image_transport_surface_mac.cc View 1 4 chunks +36 lines, -2 lines 0 comments Download
M content/public/test/layouttest_support.h View 1 1 chunk +2 lines, -0 lines 0 comments Download
M content/shell/shell_main_delegate.cc View 1 2 chunks +2 lines, -0 lines 2 comments Download
M content/test/layouttest_support.cc View 1 2 chunks +7 lines, -0 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
Nico
A different take on https://codereview.chromium.org/12326013/
7 years, 9 months ago (2013-02-26 13:57:28 UTC) #1
jochen (gone - plz use gerrit)
https://codereview.chromium.org/12315103/diff/1/content/common/gpu/image_transport_surface.h File content/common/gpu/image_transport_surface.h (right): https://codereview.chromium.org/12315103/diff/1/content/common/gpu/image_transport_surface.h#newcode73 content/common/gpu/image_transport_surface.h:73: CONTENT_EXPORT static void SetAllowOSMesa(bool allow); I would call the ...
7 years, 9 months ago (2013-02-26 14:12:07 UTC) #2
Nico
Thanks! https://codereview.chromium.org/12315103/diff/1/content/common/gpu/image_transport_surface_mac.cc File content/common/gpu/image_transport_surface_mac.cc (right): https://codereview.chromium.org/12315103/diff/1/content/common/gpu/image_transport_surface_mac.cc#newcode11 content/common/gpu/image_transport_surface_mac.cc:11: #include "content/shell/shell_switches.h" On 2013/02/26 14:12:07, jochen wrote: > ...
7 years, 9 months ago (2013-02-26 14:26:52 UTC) #3
jochen (gone - plz use gerrit)
lgtm https://codereview.chromium.org/12315103/diff/1/content/shell/shell_main_delegate.cc File content/shell/shell_main_delegate.cc (right): https://codereview.chromium.org/12315103/diff/1/content/shell/shell_main_delegate.cc#newcode11 content/shell/shell_main_delegate.cc:11: #include "content/common/gpu/image_transport_surface.h" On 2013/02/26 14:26:52, Nico wrote: > ...
7 years, 9 months ago (2013-02-26 14:35:17 UTC) #4
Nico
https://codereview.chromium.org/12315103/diff/7001/content/shell/shell_main_delegate.cc File content/shell/shell_main_delegate.cc (right): https://codereview.chromium.org/12315103/diff/7001/content/shell/shell_main_delegate.cc#newcode104 content/shell/shell_main_delegate.cc:104: SetAllowOSMesaImageTransportForTesting(); On 2013/02/26 14:35:18, jochen wrote: > this code ...
7 years, 9 months ago (2013-02-26 14:37:25 UTC) #5
Ken Russell (switch to Gerrit)
LGTM if this works for your purposes.
7 years, 9 months ago (2013-02-26 20:38:19 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/thakis@chromium.org/12315103/7001
7 years, 9 months ago (2013-02-26 20:41:18 UTC) #7
Nico
7 years, 9 months ago (2013-02-26 21:43:49 UTC) #8
Message was sent while issue was closed.
Committed patchset #2 manually as r184740 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698