Searched refs:surfaceContext (Results 1 - 7 of 7) sorted by relevance
/third_party/skia/tests/ |
H A D | EGLImageTest.cpp | 168 auto surfaceContext = context0->priv().makeSC(std::move(view), colorInfo); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS() local 170 if (!surfaceContext) { in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS() 176 GrTextureProxy* proxy = surfaceContext->asTextureProxy(); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS() 197 //TestReadPixels(reporter, context0, surfaceContext.get(), pixels.get(), "EGLImageTest-read"); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS() 199 SkDebugf("type: %d\n", (int)surfaceContext->asTextureProxy()->textureType()); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS() 201 TestWritePixels(reporter, context0, surfaceContext.get(), false, "EGLImageTest-write"); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS() 207 surfaceContext->asSurfaceProxyRef(), in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS() 208 surfaceContext->origin(), in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
|
H A D | SRGBReadWritePixelsTest.cpp | 213 auto surfaceContext = make_surface_context(contextEncoding, dContext, reporter); in test_write_read() local 214 if (!surfaceContext) { in test_write_read() 221 if (!surfaceContext->writePixels(dContext, dataPM, {0, 0})) { in test_write_read() 232 read_and_check_pixels(reporter, dContext, surfaceContext.get(), data.get(), readII, check, in test_write_read()
|
H A D | BackendAllocationTest.cpp | 286 auto surfaceContext = dContext->priv().makeSC(readView, info); in check_base_readbacks() local 287 if (!surfaceContext) { in check_base_readbacks() 291 if (!surfaceContext->readPixels(dContext, actual, {0, 0})) { in check_base_readbacks()
|
H A D | SurfaceTest.cpp | 758 skgpu::SurfaceContext* surfaceContext, in test_surface_context_clear() 760 int w = surfaceContext->width(); in test_surface_context_clear() 761 int h = surfaceContext->height(); in test_surface_context_clear() 769 surfaceContext->readPixels(dContext, readback, {0, 0}); in test_surface_context_clear() 756 test_surface_context_clear(skiatest::Reporter* reporter, GrDirectContext* dContext, skgpu::SurfaceContext* surfaceContext, uint32_t expectedValue) test_surface_context_clear() argument
|
/third_party/skia/src/image/ |
H A D | SkSurface_Gpu.cpp | 150 // above copy creates a kExact surfaceContext. in onNewImageSnapshot() 287 auto surfaceContext = fDevice->recordingContext(); in onDraw() 292 if (canvasContext->priv().contextID() != surfaceContext->priv().contextID()) { in onDraw()
|
H A D | SkImage_Gpu.cpp | 767 skgpu::SurfaceContext surfaceContext( in MakeFromAHardwareBufferWithData() 770 surfaceContext.writePixels(dContext, pixmap, {0, 0}); in MakeFromAHardwareBufferWithData() 772 GrSurfaceProxy* p[1] = {surfaceContext.asSurfaceProxy()}; in MakeFromAHardwareBufferWithData()
|
/third_party/skia/src/gpu/ |
H A D | GrDirectContext.cpp | 751 skgpu::SurfaceContext surfaceContext(context, std::move(view), src[0].info().colorInfo()); in update_texture_with_pixmaps() 756 if (!surfaceContext.writePixels(context, tmpSrc.get(), numLevels)) { in update_texture_with_pixmaps() 760 GrSurfaceProxy* p = surfaceContext.asSurfaceProxy(); in update_texture_with_pixmaps()
|
Completed in 12 milliseconds