Lines Matching refs:readback
261 static void readback(const SkBitmap& src, int* result, int resultCount) { in readback() function
262 SkBitmap readback; in readback() local
263 readback.allocN32Pixels(resultCount, 30); in readback()
265 readback.peekPixels(&pm); in readback()
285 readback(bitmap, result, resultCount); in cpu_blur_path()
726 SkBitmap readback; in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local
727 SkAssertResult(readback.tryAllocPixels(ii)); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
729 canvas->readPixels(readback, 0, 0); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
730 REPORTER_ASSERT(reporter, SkColorGetR(readback.getColor(15, 15)) > 128); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
731 REPORTER_ASSERT(reporter, SkColorGetG(readback.getColor(15, 15)) == 0); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
732 REPORTER_ASSERT(reporter, SkColorGetB(readback.getColor(15, 15)) == 0); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
733 REPORTER_ASSERT(reporter, readback.getColor(31, 31) == SK_ColorBLACK); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()