Home
last modified time | relevance | path

Searched refs:GrSurfaceContext (Results 1 – 25 of 62) sorted by relevance

123

/external/skqp/src/gpu/
DGrSurfaceContextPriv.h21 explicit GrSurfaceContextPriv(GrSurfaceContext* surfaceContext) in GrSurfaceContextPriv()
32 GrSurfaceContext* fSurfaceContext;
34 friend class GrSurfaceContext; // to construct/copy this type. variable
37 inline GrSurfaceContextPriv GrSurfaceContext::surfPriv() { in surfPriv()
41 inline const GrSurfaceContextPriv GrSurfaceContext::surfPriv() const { in surfPriv()
42 return GrSurfaceContextPriv(const_cast<GrSurfaceContext*>(this)); in surfPriv()
DGrSurfaceContext.cpp23 GrSurfaceContext::GrSurfaceContext(GrContext* context, in GrSurfaceContext() function in GrSurfaceContext
39 bool GrSurfaceContext::readPixels(const SkImageInfo& dstInfo, void* dstBuffer, in readPixels()
60 bool GrSurfaceContext::writePixels(const SkImageInfo& srcInfo, const void* srcBuffer, in writePixels()
79 bool GrSurfaceContext::copy(GrSurfaceProxy* src, const SkIRect& srcRect, const SkIPoint& dstPoint) { in copy()
DGrSurfaceContext.h32 class SK_API GrSurfaceContext : public SkRefCnt {
34 ~GrSurfaceContext() override {} in ~GrSurfaceContext()
114 GrSurfaceContext(GrContext*, GrDrawingManager*, GrPixelConfig, sk_sp<SkColorSpace>,
DGrContextPriv.h51 sk_sp<GrSurfaceContext> makeWrappedSurfaceContext(sk_sp<GrSurfaceProxy>,
55 sk_sp<GrSurfaceContext> makeDeferredSurfaceContext(const GrBackendFormat&,
168 bool readSurfacePixels(GrSurfaceContext* src, int left, int top, int width, int height,
189 bool writeSurfacePixels(GrSurfaceContext* dst, int left, int top, int width, int height,
DGrTextureContext.h26 class SK_API GrTextureContext : public GrSurfaceContext {
58 typedef GrSurfaceContext INHERITED;
DGrTextureContext.cpp26 : GrSurfaceContext(context, drawingMgr, textureProxy->config(), std::move(colorSpace), in GrTextureContext()
DGrSurfaceProxy.cpp356 sk_sp<GrSurfaceContext> dstContext(context->contextPriv().makeDeferredSurfaceContext( in Copy()
377 sk_sp<GrSurfaceContext> GrSurfaceProxy::TestCopy(GrContext* context, const GrSurfaceDesc& dstDesc, in TestCopy()
386 sk_sp<GrSurfaceContext> dstContext(context->contextPriv().makeDeferredSurfaceContext( in TestCopy()
DGrContext.cpp397 bool GrContextPriv::writeSurfacePixels(GrSurfaceContext* dst, int left, int top, int width, in writeSurfacePixels()
583 bool GrContextPriv::readSurfacePixels(GrSurfaceContext* src, int left, int top, int width, in readSurfacePixels()
663 sk_sp<GrSurfaceContext> tempCtx; in readSurfacePixels()
824 sk_sp<GrSurfaceContext> GrContextPriv::makeWrappedSurfaceContext(sk_sp<GrSurfaceProxy> proxy, in makeWrappedSurfaceContext()
839 sk_sp<GrSurfaceContext> GrContextPriv::makeDeferredSurfaceContext(const GrBackendFormat& format, in makeDeferredSurfaceContext()
858 sk_sp<GrSurfaceContext> sContext = this->makeWrappedSurfaceContext(std::move(proxy), in makeDeferredSurfaceContext()
/external/skqp/tests/
DTestUtils.h11 class GrSurfaceContext; variable
17 GrSurfaceContext* srcContext, uint32_t expectedPixelValues[],
23 GrSurfaceContext* srcContext, bool expectedToWork, const char* testName);
33 GrSurfaceContext* dstContext, const char* testName);
DTestUtils.cpp21 GrSurfaceContext* srcContext, uint32_t expectedPixelValues[], in test_read_pixels()
44 GrSurfaceContext* dstContext, bool expectedToWork, in test_write_pixels()
90 sk_sp<GrSurfaceContext> dstContext( in test_copy_from_surface()
98 GrSurfaceContext* dstContext, const char* testName) { in test_copy_to_surface()
DGrUploadPixelsTests.cpp35 sk_sp<GrSurfaceContext> sContext = context->contextPriv().makeWrappedSurfaceContext(proxy); in basic_texture_test()
65 sk_sp<GrSurfaceContext> sContext = context->contextPriv().makeWrappedSurfaceContext(proxy); in basic_texture_test()
DRectangleTextureTest.cpp48 static void test_clear(skiatest::Reporter* reporter, GrSurfaceContext* rectContext) { in test_clear()
162 sk_sp<GrSurfaceContext> rectContext = context->contextPriv().makeWrappedSurfaceContext( in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
DReadWriteAlphaTest.cpp80 sk_sp<GrSurfaceContext> sContext(context->contextPriv().makeWrappedSurfaceContext( in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
198 sk_sp<GrSurfaceContext> sContext = context->contextPriv().makeWrappedSurfaceContext( in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
DFloatingPointTextureTest.cpp56 sk_sp<GrSurfaceContext> sContext = context->contextPriv().makeWrappedSurfaceContext( in runFPTest()
/external/skia/src/gpu/
DGrSurfaceContext.cpp36 std::unique_ptr<GrSurfaceContext> GrSurfaceContext::Make(GrRecordingContext* context, in Make()
49 std::unique_ptr<GrSurfaceContext> surfaceContext; in Make()
73 surfaceContext = std::make_unique<GrSurfaceContext>(context, std::move(readView), info); in Make()
79 std::unique_ptr<GrSurfaceContext> GrSurfaceContext::Make(GrRecordingContext* context, in Make()
113 return GrSurfaceContext::Make(context, std::move(view), info.colorInfo()); in Make()
116 std::unique_ptr<GrSurfaceContext> GrSurfaceContext::Make(GrRecordingContext* context, in Make()
139 GrSurfaceContext::GrSurfaceContext(GrRecordingContext* context, in GrSurfaceContext() function in GrSurfaceContext
146 const GrCaps* GrSurfaceContext::caps() const { return fContext->priv().caps(); } in caps()
148 GrAuditTrail* GrSurfaceContext::auditTrail() { in auditTrail()
152 GrDrawingManager* GrSurfaceContext::drawingManager() { in drawingManager()
[all …]
DGrSurfaceContext.h41 class GrSurfaceContext {
45 static std::unique_ptr<GrSurfaceContext> Make(GrRecordingContext*,
51 static std::unique_ptr<GrSurfaceContext> Make(GrRecordingContext*,
63 static std::unique_ptr<GrSurfaceContext> Make(GrRecordingContext*,
75 GrSurfaceContext(GrRecordingContext*, GrSurfaceProxyView readView, const GrColorInfo&);
77 virtual ~GrSurfaceContext() = default;
DGrSurfaceFillContext.h30 class GrSurfaceFillContext : public GrSurfaceContext {
251 using INHERITED = GrSurfaceContext;
/external/skia/tests/
DTestUtils.h15 class GrSurfaceContext; variable
20 void TestReadPixels(skiatest::Reporter*, GrDirectContext*, GrSurfaceContext* srcContext,
25 void TestWritePixels(skiatest::Reporter*, GrDirectContext*, GrSurfaceContext* srcContext,
DRectangleTextureTest.cpp41 GrSurfaceContext* rectContext) { in test_clear()
87 GrSurfaceContext* dstContext, in test_copy_to_surface()
185 auto rectContext = GrSurfaceContext::Make(dContext, std::move(view), grII.colorInfo()); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
DTestUtils.cpp26 GrSurfaceContext* srcContext, in TestReadPixels()
53 GrSurfaceContext* dstContext, in TestWritePixels()
95 auto dstContext = GrSurfaceContext::Make(dContext, in TestCopyFromSurface()
DGrSurfaceTest.cpp272 auto texCtx = GrSurfaceContext::Make(dContext, std::move(view), info); in DEF_GPUTEST()
289 std::unique_ptr<GrSurfaceContext> surfCtx; in DEF_GPUTEST()
300 surfCtx = GrSurfaceContext::Make(dContext, info, combo.fFormat, fit); in DEF_GPUTEST()
371 auto surfContext = GrSurfaceContext::Make(dContext, std::move(view), ii.colorInfo()); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
DFloatingPointTextureTest.cpp63 auto sContext = GrSurfaceContext::Make(dContext, std::move(fpView), info.colorInfo()); in runFPTest()
/external/skia/src/image/
DSkImage_GpuBase.cpp116 auto sContext = GrSurfaceContext::Make(dContext, std::move(view), std::move(colorInfo)); in getROPixels()
176 auto sContext = GrSurfaceContext::Make(dContext, std::move(view), colorInfo); in onReadPixels()
/external/skqp/src/image/
DSkImage_GpuBase.cpp93 sk_sp<GrSurfaceContext> sContext = fContext->contextPriv().makeWrappedSurfaceContext( in getROPixels()
125 sk_sp<GrSurfaceContext> sContext(fContext->contextPriv().makeDeferredSurfaceContext( in onMakeSubset()
187 sk_sp<GrSurfaceContext> sContext = fContext->contextPriv().makeWrappedSurfaceContext( in onReadPixels()
/external/skia/tools/gpu/
DProxyUtils.cpp81 auto sContext = GrSurfaceContext::Make(dContext, std::move(view), pixmap.colorInfo()); in MakeTextureProxyViewFromData()

123