Lines Matching refs:grad
67 SkShader* grad = SkGradientShader::CreateLinear(pts, colors, pos, count, in test_gradient() local
69 REPORTER_ASSERT(reporter, grad); in test_gradient()
70 REPORTER_ASSERT(reporter, grad->isOpaque()); in test_gradient()
71 grad->unref(); in test_gradient()
76 grad = SkGradientShader::CreateLinear(pts, colors, pos, count, mode); in test_gradient()
77 REPORTER_ASSERT(reporter, grad); in test_gradient()
78 REPORTER_ASSERT(reporter, !grad->isOpaque()); in test_gradient()
79 grad->unref(); in test_gradient()
84 grad = SkGradientShader::CreateLinear(pts, colors, pos, count, mode); in test_gradient()
85 REPORTER_ASSERT(reporter, grad); in test_gradient()
86 REPORTER_ASSERT(reporter, !grad->isOpaque()); in test_gradient()
87 grad->unref(); in test_gradient()
92 grad = SkGradientShader::CreateLinear(pts, colors, pos, count, mode); in test_gradient()
93 REPORTER_ASSERT(reporter, grad); in test_gradient()
94 REPORTER_ASSERT(reporter, !grad->isOpaque()); in test_gradient()
95 grad->unref(); in test_gradient()