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