/third_party/skia/tests/ |
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() 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()
|
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()
|
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()
|
D | SurfaceTest.cpp | 758 skgpu::SurfaceContext* surfaceContext, in test_surface_context_clear() argument 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()
|
/third_party/flutter/skia/tests/ |
D | EGLImageTest.cpp | 159 sk_sp<GrTextureContext> surfaceContext = context0->priv().makeBackendTextureContext( in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS() local 163 if (!surfaceContext) { in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS() 169 GrTextureProxy* proxy = surfaceContext->asTextureProxy(); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS() 188 test_read_pixels(reporter, surfaceContext.get(), pixels.get(), "EGLImageTest-read"); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS() 191 test_write_pixels(reporter, surfaceContext.get(), false, "EGLImageTest-write"); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS() 195 test_copy_from_surface(reporter, context0, surfaceContext->asSurfaceProxy(), in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
|
D | SRGBReadWritePixelsTest.cpp | 191 auto surfaceContext = context->priv().makeDeferredRenderTargetContext( in make_surface_context() local 195 if (!surfaceContext) { in make_surface_context() 198 return surfaceContext; in make_surface_context() 204 auto surfaceContext = make_surface_context(contextEncoding, context, reporter); in test_write_read() local 205 if (!surfaceContext) { in test_write_read() 211 if (!surfaceContext->writePixels(writeII, data.get(), 0, {0, 0})) { in test_write_read() 222 read_and_check_pixels(reporter, surfaceContext.get(), data.get(), readII, check, error, in test_write_read()
|
D | GrTestingBackendTextureUploadTest.cpp | 77 auto surfaceContext = context->priv().makeWrappedSurfaceContext(std::move(wrappedProxy), grCT, in testing_only_texture_test() local 79 REPORTER_ASSERT(reporter, surfaceContext); in testing_only_texture_test() 81 bool result = surfaceContext->readPixels({grCT, kPremul_SkAlphaType, nullptr, kWidth, kHeight}, in testing_only_texture_test()
|
/third_party/flutter/skia/src/gpu/ |
D | GrSurfaceContextPriv.h | 21 explicit GrSurfaceContextPriv(GrSurfaceContext* surfaceContext) in GrSurfaceContextPriv() argument 22 : fSurfaceContext(surfaceContext) { in GrSurfaceContextPriv()
|
/third_party/skia/src/gpu/ |
D | GrDirectContext.cpp | 603 skgpu::SurfaceContext surfaceContext(context, std::move(view), src[0].info().colorInfo()); in update_texture_with_pixmaps() local 608 if (!surfaceContext.writePixels(context, tmpSrc.get(), numLevels)) { in update_texture_with_pixmaps() 612 GrSurfaceProxy* p = surfaceContext.asSurfaceProxy(); in update_texture_with_pixmaps()
|
/third_party/skia/src/image/ |
D | SkImage_Gpu.cpp | 763 skgpu::SurfaceContext surfaceContext( in MakeFromAHardwareBufferWithData() local 766 surfaceContext.writePixels(dContext, pixmap, {0, 0}); in MakeFromAHardwareBufferWithData() 768 GrSurfaceProxy* p[1] = {surfaceContext.asSurfaceProxy()}; in MakeFromAHardwareBufferWithData()
|
D | SkSurface_Gpu.cpp | 280 auto surfaceContext = fDevice->recordingContext(); in onDraw() local 285 if (canvasContext->priv().contextID() != surfaceContext->priv().contextID()) { in onDraw()
|