Added TestCreate for SkComposeShader; will pick two random child procs that don...
authorwangyix <wangyix@google.com>
Tue, 8 Sep 2015 22:23:34 +0000 (15:23 -0700)
committerCommit bot <commit-bot@chromium.org>
Tue, 8 Sep 2015 22:23:35 +0000 (15:23 -0700)
commit036fd8e6f66b53cf87a5f91083cae82f0aeb3635
tree65b7f07cf2aba924c84cba7208efa6d5f2e38a78
parent894a2e436289077cd09cc89e857bfa0a2e590ee8
Added TestCreate for SkComposeShader;  will pick two random child procs that don't have children of their own.  This prevents creating an arbitrarily large tree of procs.  Also, it will choose a random coefficient mode for the xfermode.

BUG=skia:4182

Review URL: https://codereview.chromium.org/1306163002
src/core/SkComposeShader.cpp
src/gpu/GrProcessor.cpp