Layouttests in the compositing/ directory override the default preferences to enable accelerated 2d canvas (and enable mock scrollbars)[1]. These preferences are overridden in a hacky and non-obvious way and we should move these preference changes to a more common pattern.
I can think of two approaches that might work:
1) Add an internals api accessible from the testRunner javascript hooks to enable accelerated 2d canvas. We could then just add this line to the canvas tests in compositing/ that need it.
2) Move the canvas tests out of compositing and use the virtual test suite infrastructure to run them with --enable-accelerated-2d-canvas.
[1] https://cs.chromium.org/chromium/src/content/shell/browser/layout_test/blink_test_controller.cc?l=369
Comment 1 by sheriffbot@chromium.org
, Aug 10 2017Status: Untriaged (was: Available)