Home
last modified time | relevance | path

Searched refs:readback (Results 1 – 9 of 9) sorted by relevance

/external/skia/tests/
DReadWriteAlphaTest.cpp88 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()
[all …]
DBlurTest.cpp239 static void readback(SkCanvas* canvas, int* result, int resultCount) { in readback() function
240 SkBitmap readback; in readback() local
241 readback.allocN32Pixels(resultCount, 30); in readback()
242 canvas->readPixels(readback, 0, 0); in readback()
244 SkPMColor* pixels = (SkPMColor*) readback.getAddr32(0, 15); in readback()
261 readback(&canvas, result, resultCount); in cpu_blur_path()
282 readback(&canvas, result, resultCount);
DOnFlushCallbackTest.cpp513 SkColor readback = bm.getColor(x, kDrawnTileSize/2); in test_color() local
514 REPORTER_ASSERT(reporter, expected == readback); in test_color()
515 if (expected != readback) { in test_color()
516 SkDebugf("Color mismatch: %x %x\n", expected, readback); in test_color()
DResourceCacheTest.cpp65 SkBitmap readback; in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local
66 readback.allocN32Pixels(size.width(), size.height()); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
70 canvas->readPixels(readback, 0, 0); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
/external/mesa3d/src/gallium/drivers/virgl/
Dvirgl_resource.c44 bool readback = true; in virgl_res_needs_readback() local
46 readback = false; in virgl_res_needs_readback()
48 readback = false; in virgl_res_needs_readback()
51 readback = false; in virgl_res_needs_readback()
52 return readback; in virgl_res_needs_readback()
Dvirgl_buffer.c53 bool readback; in virgl_buffer_transfer_map() local
78 readback = virgl_res_needs_readback(vctx, &vbuf->base, usage); in virgl_buffer_transfer_map()
79 if (readback) in virgl_buffer_transfer_map()
85 if (doflushwait || readback) in virgl_buffer_transfer_map()
Dvirgl_texture.c135 boolean readback = TRUE; in virgl_texture_transfer_map() local
189 readback = virgl_res_needs_readback(vctx, &vtex->base, usage); in virgl_texture_transfer_map()
190 if (readback) in virgl_texture_transfer_map()
193 if (doflushwait || readback) in virgl_texture_transfer_map()
/external/skia/bench/
DGLBench.cpp169 SkAutoTArray<uint32_t> readback(screenWidth * screenHeight); in DumpImage() local
176 readback.get())); in DumpImage()
185 bm.setPixels(readback.get()); in DumpImage()
/external/eigen/unsupported/Eigen/CXX11/src/Tensor/
DTensorReductionCuda.h35 unsigned int readback; in atomicReduce() local
36 while ((readback = atomicCAS((unsigned int*)output, oldval, newval)) != oldval) { in atomicReduce()
37 oldval = readback; in atomicReduce()
52 unsigned long long readback; in atomicReduce() local
53 while ((readback = atomicCAS((unsigned long long*)output, oldval, newval)) != oldval) { in atomicReduce()
54 oldval = readback; in atomicReduce()
91 unsigned int readback; in atomicReduce() local
92 while ((readback = atomicCAS((unsigned int*)output, oldval, newval)) != oldval) { in atomicReduce()
93 oldval = readback; in atomicReduce()