diff options
author | 2015-04-28 13:31:18 -0700 | |
---|---|---|
committer | 2015-04-28 13:31:18 -0700 | |
commit | 4eaf9cef5a76098f78efac30beb966ac833d32c2 (patch) | |
tree | 6e00047af770562183852a2cce07e18c0c978cf4 /src/gpu/effects/GrBezierEffect.cpp | |
parent | 5190a481f9e74f024352743a8499b0ad858a1310 (diff) |
create GrTestUtils.h, move some common functions into it
BUG=skia:
Review URL: https://codereview.chromium.org/1117443002
Diffstat (limited to 'src/gpu/effects/GrBezierEffect.cpp')
-rw-r--r-- | src/gpu/effects/GrBezierEffect.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/gpu/effects/GrBezierEffect.cpp b/src/gpu/effects/GrBezierEffect.cpp index cb440d4bb0..6eeda90cdd 100644 --- a/src/gpu/effects/GrBezierEffect.cpp +++ b/src/gpu/effects/GrBezierEffect.cpp @@ -236,9 +236,9 @@ GrGeometryProcessor* GrConicEffect::TestCreate(SkRandom* random, do { GrPrimitiveEdgeType edgeType = static_cast<GrPrimitiveEdgeType>( random->nextULessThan(kGrProcessorEdgeTypeCnt)); - gp = GrConicEffect::Create(GrRandomColor(random), GrProcessorUnitTest::TestMatrix(random), + gp = GrConicEffect::Create(GrRandomColor(random), GrTest::TestMatrix(random), edgeType, caps, - GrProcessorUnitTest::TestMatrix(random)); + GrTest::TestMatrix(random)); } while (NULL == gp); return gp; } @@ -458,9 +458,9 @@ GrGeometryProcessor* GrQuadEffect::TestCreate(SkRandom* random, GrPrimitiveEdgeType edgeType = static_cast<GrPrimitiveEdgeType>( random->nextULessThan(kGrProcessorEdgeTypeCnt)); gp = GrQuadEffect::Create(GrRandomColor(random), - GrProcessorUnitTest::TestMatrix(random), + GrTest::TestMatrix(random), edgeType, caps, - GrProcessorUnitTest::TestMatrix(random)); + GrTest::TestMatrix(random)); } while (NULL == gp); return gp; } @@ -698,7 +698,7 @@ GrGeometryProcessor* GrCubicEffect::TestCreate(SkRandom* random, GrPrimitiveEdgeType edgeType = static_cast<GrPrimitiveEdgeType>( random->nextULessThan(kGrProcessorEdgeTypeCnt)); gp = GrCubicEffect::Create(GrRandomColor(random), - GrProcessorUnitTest::TestMatrix(random), edgeType, caps); + GrTest::TestMatrix(random), edgeType, caps); } while (NULL == gp); return gp; } |