Lines Matching refs:X_SIZE
24 static const int X_SIZE = 13; variable
53 unsigned char alphaData[X_SIZE * Y_SIZE]; in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
58 static const size_t kRowBytes[] = {0, X_SIZE, X_SIZE + 1, 2 * X_SIZE - 1}; in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
63 desc.fWidth = X_SIZE; in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
67 memset(alphaData, 0, X_SIZE * Y_SIZE); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
69 const SkImageInfo ii = SkImageInfo::MakeA8(X_SIZE, Y_SIZE); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
87 for (int x = 0; x < X_SIZE; ++x) { in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
88 alphaData[y * X_SIZE + x] = y*X_SIZE+x; in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
98 size_t nonZeroRowBytes = rowBytes ? rowBytes : X_SIZE; in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
116 validate_alpha_data(reporter, X_SIZE, Y_SIZE, readback.get(), nonZeroRowBytes, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
125 const SkRect rect = SkRect::MakeLTRB(-10, -10, X_SIZE + 10, Y_SIZE + 10); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
144 for (int x = 0; x < X_SIZE && match; ++x) { in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
169 for (int x = 0; x < X_SIZE; ++x) { in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
170 alphaData[y * X_SIZE + x] = y*X_SIZE+x; in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
174 const SkImageInfo dstInfo = SkImageInfo::Make(X_SIZE, Y_SIZE, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
182 uint32_t rgbaData[X_SIZE * Y_SIZE]; in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
185 for (int x = 0; x < X_SIZE; ++x) { in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
186 rgbaData[y * X_SIZE + x] = GrColorPackRGBA(6, 7, 8, alphaData[y * X_SIZE + x]); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
191 auto proxy = sk_gpu_test::MakeTextureProxyFromData(context, rt, X_SIZE, Y_SIZE, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
202 size_t nonZeroRowBytes = rowBytes ? rowBytes : X_SIZE; in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
215 validate_alpha_data(reporter, X_SIZE, Y_SIZE, readback.get(), nonZeroRowBytes, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()