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