Lines Matching defs:matrix
26 "A color matrix shader benchmark for the simple scale/translate case, which has R, G, and B "
54 float matrix[20] = { 0 };
57 matrix[SkColorMatrix::kR_Scale] = 1.1f;
58 matrix[SkColorMatrix::kG_Scale] = 1.1f;
59 matrix[SkColorMatrix::kB_Scale] = 1.1f;
60 matrix[SkColorMatrix::kA_Scale] = 0.5f;
62 matrix[SkColorMatrix::kR_Trans] = 5.0f;
63 matrix[SkColorMatrix::kG_Trans] = 5.0f;
64 matrix[SkColorMatrix::kB_Trans] = 5.0f;
65 matrix[SkColorMatrix::kA_Trans] = 10.0f;
67 paint.setColorFilter(SkColorFilter::MakeMatrixFilterRowMajor255(matrix));
69 // set a shader so it's not likely for the matrix to be optimized away (since a clever