Lines Matching refs:readback
88 std::unique_ptr<uint8_t[]> readback(new uint8_t[nonZeroRowBytes * Y_SIZE]); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local
90 memset(readback.get(), kClearValue, nonZeroRowBytes * Y_SIZE); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
93 result = sContext->readPixels(ii, readback.get(), rowBytes, 0, 0); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
99 validate_alpha_data(reporter, X_SIZE, Y_SIZE, readback.get(), nonZeroRowBytes, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
114 memset(readback.get(), kClearValue, nonZeroRowBytes * Y_SIZE); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
115 result = surf->readPixels(ii, readback.get(), nonZeroRowBytes, 0, 0); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
121 uint8_t rbValue = readback.get()[y * nonZeroRowBytes + x]; in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
184 std::unique_ptr<uint8_t[]> readback(new uint8_t[nonZeroRowBytes * Y_SIZE]); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local
186 memset(readback.get(), kClearValue, nonZeroRowBytes * Y_SIZE); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
189 bool result = sContext->readPixels(dstInfo, readback.get(), rowBytes, 0, 0); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
195 validate_alpha_data(reporter, X_SIZE, Y_SIZE, readback.get(), nonZeroRowBytes, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()