Lines Matching refs:kW
717 const int kW = surface->width(); in test_surface_draw_partially() local
722 surface->getCanvas()->drawRect(SkRect::MakeWH(SkIntToScalar(kW), SkIntToScalar(kH)/2), in test_surface_draw_partially()
724 std::unique_ptr<uint32_t[]> pixels(new uint32_t[kW * kH]); in test_surface_draw_partially()
725 sk_memset32(pixels.get(), ~origColor, kW * kH); in test_surface_draw_partially()
727 SkImageInfo readInfo = SkImageInfo::Make(kW, kH, kRGBA_8888_SkColorType, kPremul_SkAlphaType); in test_surface_draw_partially()
728 SkAssertResult(surface->readPixels(readInfo, pixels.get(), kW * sizeof(uint32_t), 0, 0)); in test_surface_draw_partially()
739 for (int x = 0; x < kW && !stop; ++x) { in test_surface_draw_partially()
740 REPORTER_ASSERT(reporter, rectColorPM == pixels[x + y * kW]); in test_surface_draw_partially()
741 if (rectColorPM != pixels[x + y * kW]) { in test_surface_draw_partially()
748 for (int x = 0; x < kW && !stop; ++x) { in test_surface_draw_partially()
749 REPORTER_ASSERT(reporter, origColorPM == pixels[x + y * kW]); in test_surface_draw_partially()
750 if (origColorPM != pixels[x + y * kW]) { in test_surface_draw_partially()