Home | History | Annotate | Download | only in gm

Lines Matching refs:matrix

17 static void set_color_matrix(SkPaint* paint, const SkColorMatrix& matrix) {
18 paint->setColorFilter(SkColorFilter::MakeMatrixFilterRowMajor255(matrix.fMat));
79 SkColorMatrix matrix;
85 matrix.setIdentity();
86 set_color_matrix(&paint, matrix);
89 matrix.setRotate(SkColorMatrix::kR_Axis, 90);
90 set_color_matrix(&paint, matrix);
93 matrix.setRotate(SkColorMatrix::kG_Axis, 90);
94 set_color_matrix(&paint, matrix);
97 matrix.setRotate(SkColorMatrix::kB_Axis, 90);
98 set_color_matrix(&paint, matrix);
101 matrix.setSaturation(0.0f);
102 set_color_matrix(&paint, matrix);
105 matrix.setSaturation(0.5f);
106 set_color_matrix(&paint, matrix);
109 matrix.setSaturation(1.0f);
110 set_color_matrix(&paint, matrix);
113 matrix.setSaturation(2.0f);
114 set_color_matrix(&paint, matrix);
117 matrix.setRGB2YUV();
118 set_color_matrix(&paint, matrix);
121 matrix.setYUV2RGB();
122 set_color_matrix(&paint, matrix);