Lines Matching refs:kW
809 const int kW = surface->width(); in test_surface_draw_partially() local
814 surface->getCanvas()->drawRect(SkRect::MakeWH(SkIntToScalar(kW), SkIntToScalar(kH)/2), in test_surface_draw_partially()
816 std::unique_ptr<uint32_t[]> pixels(new uint32_t[kW * kH]); in test_surface_draw_partially()
817 sk_memset32(pixels.get(), ~origColor, kW * kH); in test_surface_draw_partially()
819 SkImageInfo readInfo = SkImageInfo::Make(kW, kH, kRGBA_8888_SkColorType, kPremul_SkAlphaType); in test_surface_draw_partially()
820 SkAssertResult(surface->readPixels(readInfo, pixels.get(), kW * sizeof(uint32_t), 0, 0)); in test_surface_draw_partially()
831 for (int x = 0; x < kW && !stop; ++x) { in test_surface_draw_partially()
832 REPORTER_ASSERT(reporter, rectColorPM == pixels[x + y * kW]); in test_surface_draw_partially()
833 if (rectColorPM != pixels[x + y * kW]) { in test_surface_draw_partially()
840 for (int x = 0; x < kW && !stop; ++x) { in test_surface_draw_partially()
841 REPORTER_ASSERT(reporter, origColorPM == pixels[x + y * kW]); in test_surface_draw_partially()
842 if (origColorPM != pixels[x + y * kW]) { in test_surface_draw_partially()