There's a set probability that a linear pipeline of random procs will be created...
authorwangyix <wangyix@google.com>
Thu, 10 Sep 2015 13:57:05 +0000 (06:57 -0700)
committerCommit bot <commit-bot@chromium.org>
Thu, 10 Sep 2015 13:57:06 +0000 (06:57 -0700)
commit059dffae800a81351c93596187099dfe09f2ba56
tree90a0324a2cc36eb48d25b3e7b69460b2cbb3fdd1
parentce79a3a7440b881fdb9a3d0278815b8c45c32b28
There's a set probability that a linear pipeline of random procs will be created (old behavior), or a pipeline with a single proc tree (added behavior).

Had to move GrComposeEffect class definition from SkComposeShader.cpp to SkComposeShader.h so that GLProgramsTest can call GrComposeEffect::Create()

BUG=skia:4182

Review URL: https://codereview.chromium.org/1314923002
src/gpu/effects/GrXfermodeFragmentProcessor.cpp
tests/GLProgramsTest.cpp