Lines Matching refs:kW
84 static const int kW = 256; in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local
86 static const size_t kRowBytes = sizeof(uint32_t) * kW; in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
90 baseDesc.fWidth = kW; in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
93 const SkImageInfo ii = SkImageInfo::MakeN32Premul(kW, kH); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
95 SkAutoTMalloc<uint32_t> srcPixels(kW * kH); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
97 for (int x = 0; x < kW; ++x) { in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
98 srcPixels.get()[y*kW+x] = SkPreMultiplyARGB(x, y, x, 0xFF); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
105 SkAutoTMalloc<uint32_t> read(kW * kH); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
131 sk_memset32(read.get(), 0, kW * kH); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
140 for (int x = 0; x < kW && !abort; ++x) { in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
141 uint32_t r = read.get()[y * kW + x]; in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
142 uint32_t s = srcPixels.get()[y * kW + x]; in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()