Lines Matching refs:readback
260 static void readback(const SkBitmap& src, int* result, int resultCount) { in readback() function
261 SkBitmap readback; in readback() local
262 readback.allocN32Pixels(resultCount, 30); in readback()
264 readback.peekPixels(&pm); in readback()
284 readback(bitmap, result, resultCount); in cpu_blur_path()
558 SkBitmap readback; in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local
559 SkAssertResult(readback.tryAllocPixels(ii)); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
561 canvas->readPixels(readback, 0, 0); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
562 REPORTER_ASSERT(reporter, SkColorGetR(readback.getColor(15, 15)) > 128); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
563 REPORTER_ASSERT(reporter, SkColorGetG(readback.getColor(15, 15)) == 0); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
564 REPORTER_ASSERT(reporter, SkColorGetB(readback.getColor(15, 15)) == 0); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
565 REPORTER_ASSERT(reporter, readback.getColor(31, 31) == SK_ColorBLACK); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()