Lines Matching refs:readback
100 std::unique_ptr<uint8_t[]> readback(new uint8_t[bufLen]); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local
102 memset(readback.get(), kClearValue, bufLen); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
105 result = sContext->readPixels(ii, readback.get(), rowBytes, 0, 0); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
116 validate_alpha_data(reporter, X_SIZE, Y_SIZE, readback.get(), nonZeroRowBytes, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
137 memset(readback.get(), kClearValue, bufLen); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
139 result = surf->readPixels(ii, readback.get(), nonZeroRowBytes, 0, 0); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
145 uint8_t rbValue = readback.get()[y * nonZeroRowBytes + x]; in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
204 std::unique_ptr<uint8_t[]> readback(new uint8_t[nonZeroRowBytes * Y_SIZE]); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local
206 memset(readback.get(), kClearValue, nonZeroRowBytes * Y_SIZE); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
209 bool result = sContext->readPixels(dstInfo, readback.get(), rowBytes, 0, 0); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
215 validate_alpha_data(reporter, X_SIZE, Y_SIZE, readback.get(), nonZeroRowBytes, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()