/external/skia/tests/ |
D | EGLImageTest.cpp | 168 auto surfaceContext = GrSurfaceContext::Make(context0, 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() 200 SkDebugf("type: %d\n", surfaceContext->asTextureProxy()->textureType()); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS() 202 TestWritePixels(reporter, context0, surfaceContext.get(), false, "EGLImageTest-write"); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS() 208 surfaceContext->asSurfaceProxyRef(), in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS() 209 surfaceContext->origin(), in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
|
D | SRGBReadWritePixelsTest.cpp | 194 auto surfaceContext = GrSurfaceDrawContext::Make( in make_surface_context() local 198 if (!surfaceContext) { in make_surface_context() 201 return std::move(surfaceContext); in make_surface_context() 207 auto surfaceContext = make_surface_context(contextEncoding, dContext, reporter); in test_write_read() local 208 if (!surfaceContext) { in test_write_read() 215 if (!surfaceContext->writePixels(dContext, dataPM, {0, 0})) { in test_write_read() 226 read_and_check_pixels(reporter, dContext, surfaceContext.get(), data.get(), readII, check, in test_write_read()
|
D | BackendAllocationTest.cpp | 285 auto surfaceContext = GrSurfaceContext::Make(dContext, readView, info); in check_base_readbacks() local 286 if (!surfaceContext) { in check_base_readbacks() 290 if (!surfaceContext->readPixels(dContext, actual, {0, 0})) { in check_base_readbacks()
|
D | SurfaceTest.cpp | 761 GrSurfaceContext* surfaceContext, uint32_t expectedValue) { in test_surface_context_clear() argument 762 int w = surfaceContext->width(); in test_surface_context_clear() 763 int h = surfaceContext->height(); in test_surface_context_clear() 771 surfaceContext->readPixels(dContext, readback, {0, 0}); in test_surface_context_clear()
|
/external/skqp/tests/ |
D | EGLImageTest.cpp | 160 sk_sp<GrTextureContext> surfaceContext = context0->contextPriv().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() 189 test_read_pixels(reporter, surfaceContext.get(), pixels.get(), "EGLImageTest-read"); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS() 192 test_write_pixels(reporter, surfaceContext.get(), false, "EGLImageTest-write"); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS() 196 test_copy_from_surface(reporter, context0, surfaceContext->asSurfaceProxy(), in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
|
D | SRGBReadWritePixelsTest.cpp | 210 auto surfaceContext = context->contextPriv().makeDeferredSurfaceContext( in make_surface_context() local 213 if (!surfaceContext) { in make_surface_context() 216 return surfaceContext; in make_surface_context() 222 auto surfaceContext = make_surface_context(contextEncoding, context, reporter); in test_write_read() local 223 if (!surfaceContext) { in test_write_read() 229 if (!surfaceContext->writePixels(writeII, data.get(), 0, 0, 0)) { in test_write_read() 240 read_and_check_pixels(reporter, surfaceContext.get(), data.get(), readII, check, error, in test_write_read()
|
/external/skqp/src/gpu/ |
D | GrSurfaceContextPriv.h | 21 explicit GrSurfaceContextPriv(GrSurfaceContext* surfaceContext) in GrSurfaceContextPriv() argument 22 : fSurfaceContext(surfaceContext) { in GrSurfaceContextPriv()
|
/external/skia/src/gpu/tessellate/ |
D | GrTessellationPathRenderer.cpp | 152 static GrOp::Owner make_op(GrRecordingContext* rContext, const GrSurfaceContext* surfaceContext, in make_op() argument 173 auto viewport = SkRect::MakeIWH(surfaceContext->width(), surfaceContext->height()); in make_op()
|
/external/skia/src/gpu/ |
D | GrSurfaceContext.cpp | 49 std::unique_ptr<GrSurfaceContext> surfaceContext; in Make() local 60 surfaceContext = std::make_unique<GrSurfaceDrawContext>(context, in Make() 67 surfaceContext = std::make_unique<GrSurfaceFillContext>(context, in Make() 73 surfaceContext = std::make_unique<GrSurfaceContext>(context, std::move(readView), info); in Make() 75 SkDEBUGCODE(surfaceContext->validate();) in Make() 76 return surfaceContext; in Make()
|
D | GrDirectContext.cpp | 531 GrSurfaceContext surfaceContext(context, std::move(view), src[0].info().colorInfo()); in update_texture_with_pixmaps() local 536 if (!surfaceContext.writePixels(context, tmpSrc.get(), numLevels)) { in update_texture_with_pixmaps() 540 GrSurfaceProxy* p = surfaceContext.asSurfaceProxy(); in update_texture_with_pixmaps()
|
/external/skia/src/image/ |
D | SkImage_Gpu.cpp | 769 GrSurfaceContext surfaceContext( in MakeFromAHardwareBufferWithData() local 772 surfaceContext.writePixels(dContext, pixmap, {0, 0}); in MakeFromAHardwareBufferWithData() 774 GrSurfaceProxy* p[1] = {surfaceContext.asSurfaceProxy()}; in MakeFromAHardwareBufferWithData()
|
D | SkSurface_Gpu.cpp | 285 auto surfaceContext = fDevice->recordingContext(); in onDraw() local 290 if (canvasContext->priv().contextID() != surfaceContext->priv().contextID()) { in onDraw()
|