DM: --gpu and --cpu should only control top-level tasks.
authormtklein <mtklein@chromium.org>
Wed, 17 Sep 2014 19:26:18 +0000 (12:26 -0700)
committerCommit bot <commit-bot@chromium.org>
Wed, 17 Sep 2014 19:26:18 +0000 (12:26 -0700)
commit53e0be6d2b76321c2012085a73f1e7b269406c78
tree1b47c5c38910adf6193894a025f9bb627cdf79e5
parent6a5c7085bcebe263ac43486f1825407580662924
DM: --gpu and --cpu should only control top-level tasks.

This fixes a bug where we run some Android bots with --nocpu, and the
current behavior disables the (CPU-bound) WriteTasks the GPU bound GM
runs spawn off.  The WriteTasks don't run and we end up with "null" in
our .json files.

Tested locally: out/Release/dm --nocpu -w /tmp/out; ls /tmp/out
  dm.json  gpu/

BUG=skia:2938
R=jcgregorio@google.com, mtklein@google.com

Author: mtklein@chromium.org

Review URL: https://codereview.chromium.org/578033002
dm/DMTask.cpp