Home | History | Annotate | Download | only in gm

Lines Matching refs:matrix

16 static void set_color_matrix(SkPaint* paint, const SkColorMatrix& matrix) {
17 paint->setColorFilter(SkColorMatrixFilter::Create(matrix))->unref();
78 SkColorMatrix matrix;
84 matrix.setIdentity();
85 set_color_matrix(&paint, matrix);
88 matrix.setRotate(SkColorMatrix::kR_Axis, 90);
89 set_color_matrix(&paint, matrix);
92 matrix.setRotate(SkColorMatrix::kG_Axis, 90);
93 set_color_matrix(&paint, matrix);
96 matrix.setRotate(SkColorMatrix::kB_Axis, 90);
97 set_color_matrix(&paint, matrix);
100 matrix.setSaturation(0.0f);
101 set_color_matrix(&paint, matrix);
104 matrix.setSaturation(0.5f);
105 set_color_matrix(&paint, matrix);
108 matrix.setSaturation(1.0f);
109 set_color_matrix(&paint, matrix);
112 matrix.setSaturation(2.0f);
113 set_color_matrix(&paint, matrix);
116 matrix.setRGB2YUV();
117 set_color_matrix(&paint, matrix);
120 matrix.setYUV2RGB();
121 set_color_matrix(&paint, matrix);