Home
last modified time | relevance | path

Searched refs:GrSurfaceProxy (Results 1 – 25 of 171) sorted by relevance

1234567

/external/skqp/src/gpu/
DGrSurfaceProxy.cpp51 GrSurfaceProxy::GrSurfaceProxy(LazyInstantiateCallback&& callback, LazyInstantiationType lazyType, in GrSurfaceProxy() function in GrSurfaceProxy
83 GrSurfaceProxy::GrSurfaceProxy(sk_sp<GrSurface> surface, GrSurfaceOrigin origin, SkBackingFit fit) in GrSurfaceProxy() function in GrSurfaceProxy
102 GrSurfaceProxy::~GrSurfaceProxy() { in ~GrSurfaceProxy()
130 sk_sp<GrSurface> GrSurfaceProxy::createSurfaceImpl(GrResourceProvider* resourceProvider, in createSurfaceImpl()
134 SkASSERT(GrSurfaceProxy::LazyState::kNot == this->lazyInstantiationState()); in createSurfaceImpl()
194 bool GrSurfaceProxy::canSkipResourceAllocator() const { in canSkipResourceAllocator()
204 void GrSurfaceProxy::assign(sk_sp<GrSurface> surface) { in assign()
227 bool GrSurfaceProxy::instantiateImpl(GrResourceProvider* resourceProvider, int sampleCnt, in instantiateImpl()
255 void GrSurfaceProxy::deinstantiate() { in deinstantiate()
261 void GrSurfaceProxy::computeScratchKey(GrScratchKey* key) const { in computeScratchKey()
[all …]
DGrSurfaceProxyPriv.h59 GrSurfaceProxy::LazyInstantiationType lazyInstantiationType() const { in lazyInstantiationType()
66 GrSurfaceProxy::LazyInstantiationType::kDeinstantiate == lazyInstantiationType(); in isSafeToDeinstantiate()
73 explicit GrSurfaceProxyPriv(GrSurfaceProxy* proxy) : fProxy(proxy) {} in GrSurfaceProxyPriv()
81 GrSurfaceProxy* fProxy;
83 friend class GrSurfaceProxy; // to construct/copy this type. variable
86 inline GrSurfaceProxyPriv GrSurfaceProxy::priv() { return GrSurfaceProxyPriv(this); } in priv()
88 inline const GrSurfaceProxyPriv GrSurfaceProxy::priv () const { in priv()
89 return GrSurfaceProxyPriv(const_cast<GrSurfaceProxy*>(this)); in priv()
DGrResourceAllocator.h56 void addInterval(GrSurfaceProxy*, unsigned int start, unsigned int end
61 void addInterval(GrSurfaceProxy* proxy
93 sk_sp<GrSurface> findSurfaceFor(const GrSurfaceProxy* proxy, bool needsStencil);
109 Interval(GrSurfaceProxy* proxy, unsigned int start, unsigned int end) in Interval()
123 void resetTo(GrSurfaceProxy* proxy, unsigned int start, unsigned int end) { in resetTo()
143 const GrSurfaceProxy* proxy() const { return fProxy; } in proxy()
144 GrSurfaceProxy* proxy() { return fProxy; } in proxy()
173 GrSurfaceProxy* fProxy;
DGrSurfaceContext.h24 class GrSurfaceProxy; variable
54 bool copy(GrSurfaceProxy* src, const SkIRect& srcRect, const SkIPoint& dstPoint);
56 bool copy(GrSurfaceProxy* src) { in copy()
92 virtual GrSurfaceProxy* asSurfaceProxy() = 0;
93 virtual const GrSurfaceProxy* asSurfaceProxy() const = 0;
94 virtual sk_sp<GrSurfaceProxy> asSurfaceProxyRef() = 0;
DGrContextPriv.h21 class GrSurfaceProxy; variable
51 sk_sp<GrSurfaceContext> makeWrappedSurfaceContext(sk_sp<GrSurfaceProxy>,
101 void flush(GrSurfaceProxy*);
117 void flushSurfaceWrites(GrSurfaceProxy*);
123 void flushSurfaceIO(GrSurfaceProxy*);
133 void prepareSurfaceForExternalIO(GrSurfaceProxy*);
DGrDeinstantiateProxyTracker.cpp13 void GrDeinstantiateProxyTracker::addProxy(GrSurfaceProxy* proxy) { in addProxy()
15 using LazyType = GrSurfaceProxy::LazyInstantiationType; in addProxy()
26 GrSurfaceProxy* proxy = fProxies[i].get(); in deinstantiateAllProxies()
/external/skia/src/gpu/
DGrSurfaceProxy.cpp53 GrSurfaceProxy::GrSurfaceProxy(LazyInstantiateCallback&& callback, LazyInstantiationType lazyType, in GrSurfaceProxy() function in GrSurfaceProxy
85 GrSurfaceProxy::GrSurfaceProxy(sk_sp<GrSurface> surface, GrSurfaceOrigin origin, SkBackingFit fit) in GrSurfaceProxy() function in GrSurfaceProxy
104 GrSurfaceProxy::~GrSurfaceProxy() { in ~GrSurfaceProxy()
127 sk_sp<GrSurface> GrSurfaceProxy::createSurfaceImpl(GrResourceProvider* resourceProvider, in createSurfaceImpl()
131 SkASSERT(GrSurfaceProxy::LazyState::kNot == this->lazyInstantiationState()); in createSurfaceImpl()
191 bool GrSurfaceProxy::canSkipResourceAllocator() const { in canSkipResourceAllocator()
201 void GrSurfaceProxy::assign(sk_sp<GrSurface> surface) { in assign()
224 bool GrSurfaceProxy::instantiateImpl(GrResourceProvider* resourceProvider, int sampleCnt, in instantiateImpl()
252 void GrSurfaceProxy::deinstantiate() { in deinstantiate()
258 void GrSurfaceProxy::computeScratchKey(GrScratchKey* key) const { in computeScratchKey()
[all …]
DGrSurfaceProxyPriv.h59 GrSurfaceProxy::LazyInstantiationType lazyInstantiationType() const { in lazyInstantiationType()
65 GrSurfaceProxy::LazyInstantiationType::kDeinstantiate == lazyInstantiationType(); in isSafeToDeinstantiate()
72 explicit GrSurfaceProxyPriv(GrSurfaceProxy* proxy) : fProxy(proxy) {} in GrSurfaceProxyPriv()
80 GrSurfaceProxy* fProxy;
82 friend class GrSurfaceProxy; // to construct/copy this type. variable
85 inline GrSurfaceProxyPriv GrSurfaceProxy::priv() { return GrSurfaceProxyPriv(this); } in priv()
87 inline const GrSurfaceProxyPriv GrSurfaceProxy::priv () const { in priv()
88 return GrSurfaceProxyPriv(const_cast<GrSurfaceProxy*>(this)); in priv()
DGrResourceAllocator.h56 void addInterval(GrSurfaceProxy*, unsigned int start, unsigned int end
61 void addInterval(GrSurfaceProxy* proxy
93 sk_sp<GrSurface> findSurfaceFor(const GrSurfaceProxy* proxy, bool needsStencil);
109 Interval(GrSurfaceProxy* proxy, unsigned int start, unsigned int end) in Interval()
123 void resetTo(GrSurfaceProxy* proxy, unsigned int start, unsigned int end) { in resetTo()
143 const GrSurfaceProxy* proxy() const { return fProxy; } in proxy()
144 GrSurfaceProxy* proxy() { return fProxy; } in proxy()
173 GrSurfaceProxy* fProxy;
DGrSurfaceContext.h24 class GrSurfaceProxy; variable
54 bool copy(GrSurfaceProxy* src, const SkIRect& srcRect, const SkIPoint& dstPoint);
56 bool copy(GrSurfaceProxy* src) { in copy()
92 virtual GrSurfaceProxy* asSurfaceProxy() = 0;
93 virtual const GrSurfaceProxy* asSurfaceProxy() const = 0;
94 virtual sk_sp<GrSurfaceProxy> asSurfaceProxyRef() = 0;
DGrDeinstantiateProxyTracker.cpp13 void GrDeinstantiateProxyTracker::addProxy(GrSurfaceProxy* proxy) { in addProxy()
15 using LazyType = GrSurfaceProxy::LazyInstantiationType; in addProxy()
26 GrSurfaceProxy* proxy = fProxies[i].get(); in deinstantiateAllProxies()
DGrContextPriv.h22 class GrSurfaceProxy; variable
80 sk_sp<GrSurfaceContext> makeWrappedSurfaceContext(sk_sp<GrSurfaceProxy>,
177 void flush(GrSurfaceProxy*);
183 void flushSurfaceWrites(GrSurfaceProxy*);
189 void flushSurfaceIO(GrSurfaceProxy*);
199 void prepareSurfaceForExternalIO(GrSurfaceProxy*);
DGrTextureContext.h30 GrSurfaceProxy* asSurfaceProxy() override { return fTextureProxy.get(); } in asSurfaceProxy()
31 const GrSurfaceProxy* asSurfaceProxy() const override { return fTextureProxy.get(); } in asSurfaceProxy()
32 sk_sp<GrSurfaceProxy> asSurfaceProxyRef() override { return fTextureProxy; } in asSurfaceProxyRef()
/external/skqp/tests/
DResourceAllocatorTest.cpp34 static GrSurfaceProxy* make_deferred(GrProxyProvider* proxyProvider, const GrCaps* caps, in make_deferred()
52 GrSurfaceProxy* ret = tmp.release(); in make_deferred()
60 static GrSurfaceProxy* make_backend(GrContext* context, const ProxyParams& p, in make_backend()
77 GrSurfaceProxy* ret = tmp.release(); in make_backend()
92 GrSurfaceProxy* p1, GrSurfaceProxy* p2, bool expectedResult) { in overlap_test()
114 GrSurfaceProxy* p1, GrSurfaceProxy* p2, in non_overlap_test()
181 GrSurfaceProxy* p1 = make_deferred(proxyProvider, caps, test.fP1); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
182 GrSurfaceProxy* p2 = make_deferred(proxyProvider, caps, test.fP2); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
223 GrSurfaceProxy* p1 = make_deferred(proxyProvider, caps, test.fP1); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
224 GrSurfaceProxy* p2 = make_deferred(proxyProvider, caps, test.fP2); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
[all …]
DProxyConversionTest.cpp22 static sk_sp<GrSurfaceProxy> make_wrapped_rt(GrProxyProvider* provider, in make_wrapped_rt()
35 void clean_up_wrapped_rt(GrGpu* gpu, sk_sp<GrSurfaceProxy> proxy) { in clean_up_wrapped_rt()
43 static sk_sp<GrSurfaceProxy> make_offscreen_rt(GrProxyProvider* provider, in make_offscreen_rt()
52 static sk_sp<GrSurfaceProxy> make_texture(GrProxyProvider* provider, in make_texture()
72 sk_sp<GrSurfaceProxy> sProxy( in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
86 sk_sp<GrSurfaceProxy> sProxy( in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
101 sk_sp<GrSurfaceProxy> sProxy( in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
117 sk_sp<GrSurfaceProxy> sProxy( in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
/external/skia/tests/
DResourceAllocatorTest.cpp34 static GrSurfaceProxy* make_deferred(GrProxyProvider* proxyProvider, const GrCaps* caps, in make_deferred()
52 GrSurfaceProxy* ret = tmp.release(); in make_deferred()
60 static GrSurfaceProxy* make_backend(GrContext* context, const ProxyParams& p, in make_backend()
77 GrSurfaceProxy* ret = tmp.release(); in make_backend()
92 GrSurfaceProxy* p1, GrSurfaceProxy* p2, bool expectedResult) { in overlap_test()
114 GrSurfaceProxy* p1, GrSurfaceProxy* p2, in non_overlap_test()
181 GrSurfaceProxy* p1 = make_deferred(proxyProvider, caps, test.fP1); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
182 GrSurfaceProxy* p2 = make_deferred(proxyProvider, caps, test.fP2); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
223 GrSurfaceProxy* p1 = make_deferred(proxyProvider, caps, test.fP1); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
224 GrSurfaceProxy* p2 = make_deferred(proxyProvider, caps, test.fP2); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
[all …]
DProxyConversionTest.cpp22 static sk_sp<GrSurfaceProxy> make_wrapped_rt(GrProxyProvider* provider, in make_wrapped_rt()
35 void clean_up_wrapped_rt(GrGpu* gpu, sk_sp<GrSurfaceProxy> proxy) { in clean_up_wrapped_rt()
43 static sk_sp<GrSurfaceProxy> make_offscreen_rt(GrProxyProvider* provider, in make_offscreen_rt()
52 static sk_sp<GrSurfaceProxy> make_texture(GrProxyProvider* provider, in make_texture()
72 sk_sp<GrSurfaceProxy> sProxy( in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
86 sk_sp<GrSurfaceProxy> sProxy( in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
101 sk_sp<GrSurfaceProxy> sProxy( in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
117 sk_sp<GrSurfaceProxy> sProxy( in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
/external/skqp/src/gpu/ops/
DGrCopySurfaceOp.h19 GrSurfaceProxy* dst,
20 GrSurfaceProxy* src,
44 GrCopySurfaceOp(GrSurfaceProxy* dst, GrSurfaceProxy* src, in GrCopySurfaceOp()
60 GrPendingIOResource<GrSurfaceProxy, kRead_GrIOType> fSrc;
DGrCopySurfaceOp.cpp16 static bool clip_src_rect_and_dst_point(const GrSurfaceProxy* dst, in clip_src_rect_and_dst_point()
17 const GrSurfaceProxy* src, in clip_src_rect_and_dst_point()
67 GrSurfaceProxy* dstProxy, in Make()
68 GrSurfaceProxy* srcProxy, in Make()
/external/skia/src/gpu/ops/
DGrCopySurfaceOp.h21 GrSurfaceProxy* dst,
22 GrSurfaceProxy* src,
46 GrCopySurfaceOp(GrSurfaceProxy* dst, GrSurfaceProxy* src, in GrCopySurfaceOp()
62 GrPendingIOResource<GrSurfaceProxy, kRead_GrIOType> fSrc;
DGrCopySurfaceOp.cpp16 static bool clip_src_rect_and_dst_point(const GrSurfaceProxy* dst, in clip_src_rect_and_dst_point()
17 const GrSurfaceProxy* src, in clip_src_rect_and_dst_point()
67 GrSurfaceProxy* dstProxy, in Make()
68 GrSurfaceProxy* srcProxy, in Make()
/external/skqp/include/private/
DGrSurfaceProxy.h204 class GrSurfaceProxy : public GrIORefProxy {
399 static sk_sp<GrTextureProxy> Copy(GrContext*, GrSurfaceProxy* src, GrMipMapped, SkIRect srcRect,
403 static sk_sp<GrTextureProxy> Copy(GrContext*, GrSurfaceProxy* src, GrMipMapped, SkBackingFit,
408 GrSurfaceOrigin, GrSurfaceProxy* srcProxy);
422 GrSurfaceProxy(const GrBackendFormat& format, const GrSurfaceDesc& desc, in GrSurfaceProxy() function
425 : GrSurfaceProxy(nullptr, LazyInstantiationType::kSingleUse, format, desc, origin, fit, in GrSurfaceProxy()
433 GrSurfaceProxy(LazyInstantiateCallback&&, LazyInstantiationType,
438 GrSurfaceProxy(sk_sp<GrSurface>, GrSurfaceOrigin, SkBackingFit);
440 virtual ~GrSurfaceProxy();
DGrOpList.h24 class GrSurfaceProxy; variable
32 GrOpList(GrResourceProvider*, sk_sp<GrOpMemoryPool>, GrSurfaceProxy*, GrAuditTrail*);
43 GrSurfaceProxy* dst,
44 GrSurfaceProxy* src,
65 void addDependency(GrSurfaceProxy* dependedOn, const GrCaps& caps);
/external/skia/include/private/
DGrSurfaceProxy.h206 class GrSurfaceProxy : public GrIORefProxy {
401 static sk_sp<GrTextureProxy> Copy(GrRecordingContext*, GrSurfaceProxy* src, GrMipMapped,
405 static sk_sp<GrTextureProxy> Copy(GrRecordingContext*, GrSurfaceProxy* src, GrMipMapped,
411 GrSurfaceOrigin, GrSurfaceProxy* srcProxy);
425 GrSurfaceProxy(const GrBackendFormat& format, const GrSurfaceDesc& desc, in GrSurfaceProxy() function
428 : GrSurfaceProxy(nullptr, LazyInstantiationType::kSingleUse, format, desc, origin, fit, in GrSurfaceProxy()
436 GrSurfaceProxy(LazyInstantiateCallback&&, LazyInstantiationType,
441 GrSurfaceProxy(sk_sp<GrSurface>, GrSurfaceOrigin, SkBackingFit);
443 virtual ~GrSurfaceProxy();
DGrOpList.h25 class GrSurfaceProxy; variable
33 GrOpList(GrResourceProvider*, sk_sp<GrOpMemoryPool>, GrSurfaceProxy*, GrAuditTrail*);
44 GrSurfaceProxy* dst,
45 GrSurfaceProxy* src,
66 void addDependency(GrSurfaceProxy* dependedOn, const GrCaps& caps);

1234567