Lines Matching refs:kW
98 static const int kW = 256; in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local
100 static const size_t kRowBytes = sizeof(uint32_t) * kW; in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
104 baseDesc.fWidth = kW; in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
107 const SkImageInfo ii = SkImageInfo::MakeN32Premul(kW, kH); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
109 SkAutoTMalloc<uint32_t> srcPixels(kW * kH); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
111 for (int x = 0; x < kW; ++x) { in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
112 srcPixels.get()[y*kW+x] = SkPreMultiplyARGB(x, y, x, 0xFF); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
119 SkAutoTMalloc<uint32_t> read(kW * kH); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
145 sk_memset32(read.get(), 0, kW * kH); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
154 for (int x = 0; x < kW && !abort; ++x) { in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
155 uint32_t r = read.get()[y * kW + x]; in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
156 uint32_t s = srcPixels.get()[y * kW + x]; in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()