Home | History | Annotate | Download | only in tests

Lines Matching full:x_size

17 static const int X_SIZE = 13;
37 unsigned char alphaData[X_SIZE * Y_SIZE];
40 static const size_t kRowBytes[] = {0, X_SIZE, X_SIZE + 1, 2 * X_SIZE - 1};
47 desc.fWidth = X_SIZE;
51 memset(alphaData, 0, X_SIZE * Y_SIZE);
63 for (int x = 0; x < X_SIZE; ++x) {
64 alphaData[y * X_SIZE + x] = y*X_SIZE+x;
73 size_t nonZeroRowBytes = rowBytes ? rowBytes : X_SIZE;
85 validate_alpha_data(reporter, X_SIZE, Y_SIZE, readback.get(), nonZeroRowBytes,
97 const SkRect rect = SkRect::MakeLTRB(-10, -10, X_SIZE + 10, Y_SIZE + 10);
109 for (int x = 0; x < X_SIZE && match; ++x) {
130 for (int x = 0; x < X_SIZE; ++x) {
131 alphaData[y * X_SIZE + x] = y*X_SIZE+x;
142 desc.fWidth = X_SIZE;
145 uint32_t rgbaData[X_SIZE * Y_SIZE];
148 for (int x = 0; x < X_SIZE; ++x) {
149 rgbaData[y * X_SIZE + x] = GrColorPackRGBA(6, 7, 8, alphaData[y * X_SIZE + x]);
163 size_t nonZeroRowBytes = rowBytes ? rowBytes : X_SIZE;
176 validate_alpha_data(reporter, X_SIZE, Y_SIZE, readback.get(), nonZeroRowBytes,