Home
last modified time | relevance | path

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

12345678910

/external/skia/src/gpu/
DGrSurfaceProxy.cpp47 GrSurfaceProxy::GrSurfaceProxy(const GrBackendFormat& format, in GrSurfaceProxy() function in GrSurfaceProxy
70 GrSurfaceProxy::GrSurfaceProxy(LazyInstantiateCallback&& callback, in GrSurfaceProxy() function in GrSurfaceProxy
96 GrSurfaceProxy::GrSurfaceProxy(sk_sp<GrSurface> surface, in GrSurfaceProxy() function in GrSurfaceProxy
116 GrSurfaceProxy::~GrSurfaceProxy() { in ~GrSurfaceProxy()
122 sk_sp<GrSurface> GrSurfaceProxy::createSurfaceImpl(GrResourceProvider* resourceProvider, in createSurfaceImpl()
145 bool GrSurfaceProxy::canSkipResourceAllocator() const { in canSkipResourceAllocator()
160 void GrSurfaceProxy::assign(sk_sp<GrSurface> surface) { in assign()
178 bool GrSurfaceProxy::instantiateImpl(GrResourceProvider* resourceProvider, int sampleCnt, in instantiateImpl()
206 void GrSurfaceProxy::deinstantiate() { in deinstantiate()
211 void GrSurfaceProxy::computeScratchKey(const GrCaps& caps, GrScratchKey* key) const { in computeScratchKey()
[all …]
DGrTextureResolveRenderTask.h18 void addProxy(sk_sp<GrSurfaceProxy> proxy, GrSurfaceProxy::ResolveFlags, const GrCaps&);
21 bool onIsUsed(GrSurfaceProxy* proxy) const override { in onIsUsed()
42 Resolve(sk_sp<GrSurfaceProxy> proxy, GrSurfaceProxy::ResolveFlags flags) in Resolve()
44 sk_sp<GrSurfaceProxy> fProxy;
45 GrSurfaceProxy::ResolveFlags fFlags;
DGrTextureResolveRenderTask.cpp25 sk_sp<GrSurfaceProxy> proxyRef, GrSurfaceProxy::ResolveFlags flags, const GrCaps& caps) { in addProxy()
27 GrSurfaceProxy* proxy = fResolves.back().fProxy.get(); in addProxy()
32 SkASSERT(GrSurfaceProxy::ResolveFlags::kNone != flags); in addProxy()
34 if (GrSurfaceProxy::ResolveFlags::kMSAA & flags) { in addProxy()
42 if (GrSurfaceProxy::ResolveFlags::kMipMaps & flags) { in addProxy()
70 if (GrSurfaceProxy::ResolveFlags::kMSAA & resolve.fFlags) { in onExecute()
71 GrSurfaceProxy* proxy = resolve.fProxy.get(); in onExecute()
81 if (GrSurfaceProxy::ResolveFlags::kMipMaps & resolve.fFlags) { in onExecute()
DGrSurfaceProxyPriv.h44 explicit GrSurfaceProxyPriv(GrSurfaceProxy* proxy) : fProxy(proxy) {} in GrSurfaceProxyPriv()
52 GrSurfaceProxy* fProxy;
54 friend class GrSurfaceProxy; // to construct/copy this type. variable
57 inline GrSurfaceProxyPriv GrSurfaceProxy::priv() { return GrSurfaceProxyPriv(this); } in priv()
59 inline const GrSurfaceProxyPriv GrSurfaceProxy::priv () const { in priv()
60 return GrSurfaceProxyPriv(const_cast<GrSurfaceProxy*>(this)); in priv()
DGrDrawingManager.h54 void newWaitRenderTask(sk_sp<GrSurfaceProxy> proxy,
63 void newTransferFromRenderTask(sk_sp<GrSurfaceProxy> srcProxy, const SkIRect& srcRect,
95 GrSemaphoresSubmitted flushSurfaces(GrSurfaceProxy* proxies[],
99 GrSemaphoresSubmitted flushSurface(GrSurfaceProxy* proxy, in flushSurface()
146 bool isUsed(GrSurfaceProxy*) const;
179 void closeRenderTasksForNewRenderTask(GrSurfaceProxy* target);
185 GrSemaphoresSubmitted flush(GrSurfaceProxy* proxies[],
227 void addDDLTarget(GrSurfaceProxy* proxy) { fDDLTargets.insert(proxy); } in addDDLTarget()
228 bool isDDLTarget(GrSurfaceProxy* proxy) { return fDDLTargets.find(proxy) != fDDLTargets.end(); } in isDDLTarget()
235 std::set<GrSurfaceProxy*> fDDLTargets;
DGrSurfaceProxyView.h22 GrSurfaceProxyView(sk_sp<GrSurfaceProxy> proxy, GrSurfaceOrigin origin, GrSwizzle swizzle) in GrSurfaceProxyView()
26 explicit GrSurfaceProxyView(sk_sp<GrSurfaceProxy> proxy) in GrSurfaceProxyView()
48 GrSurfaceProxy* proxy() const { return fProxy.get(); } in proxy()
49 sk_sp<GrSurfaceProxy> refProxy() const { return fProxy; } in refProxy()
81 sk_sp<GrSurfaceProxy> detachProxy() { in detachProxy()
86 sk_sp<GrSurfaceProxy> fProxy;
DGrSurfaceContext.h29 class GrSurfaceProxy; variable
98 GrSurfaceProxy* asSurfaceProxy() { return fReadView.proxy(); } in asSurfaceProxy()
99 const GrSurfaceProxy* asSurfaceProxy() const { return fReadView.proxy(); } in asSurfaceProxy()
100 sk_sp<GrSurfaceProxy> asSurfaceProxyRef() { return fReadView.refProxy(); } in asSurfaceProxyRef()
123 bool testCopy(GrSurfaceProxy* src, GrSurfaceOrigin origin, const SkIRect& srcRect, in testCopy()
128 bool testCopy(GrSurfaceProxy* src, GrSurfaceOrigin origin) { in testCopy()
167 friend class GrSurfaceProxy; // for copy
186 bool copy(GrSurfaceProxy* src, GrSurfaceOrigin origin, const SkIRect& srcRect,
DGrOnFlushResourceProvider.h20 class GrSurfaceProxy; variable
64 using UseAllocator = GrSurfaceProxy::UseAllocator;
68 std::unique_ptr<GrRenderTargetContext> makeRenderTargetContext(sk_sp<GrSurfaceProxy>,
73 void addTextureResolveTask(sk_sp<GrTextureProxy>, GrSurfaceProxy::ResolveFlags);
84 bool instatiateProxy(GrSurfaceProxy*);
DGrRenderTask.cpp36 GrSurfaceProxy* proxy = fTargetView.proxy(); in ~GrRenderTask()
62 GrSurfaceProxy* proxy = fTargetView.proxy(); in makeClosed()
114 void GrRenderTask::addDependency(GrSurfaceProxy* dependedOn, GrMipMapped mipMapped, in addDependency()
144 auto resolveFlags = GrSurfaceProxy::ResolveFlags::kNone; in addDependency()
150 resolveFlags |= GrSurfaceProxy::ResolveFlags::kMSAA; in addDependency()
162 resolveFlags |= GrSurfaceProxy::ResolveFlags::kMipMaps; in addDependency()
167 if (GrSurfaceProxy::ResolveFlags::kNone != resolveFlags) { in addDependency()
254 GrSurfaceProxy* proxy = fTargetView.proxy(); in isInstantiated()
274 GrSurfaceProxy* proxy = fTargetView.proxy(); in dump()
DGrResourceAllocator.h90 void addInterval(GrSurfaceProxy*, unsigned int start, unsigned int end, ActualUse actualUse
124 sk_sp<GrSurface> findSurfaceFor(const GrSurfaceProxy* proxy);
140 Interval(GrSurfaceProxy* proxy, unsigned int start, unsigned int end) in Interval()
155 void resetTo(GrSurfaceProxy* proxy, unsigned int start, unsigned int end) { in resetTo()
176 const GrSurfaceProxy* proxy() const { return fProxy; } in proxy()
177 GrSurfaceProxy* proxy() { return fProxy; } in proxy()
213 GrSurfaceProxy* fProxy;
DGrSurfaceProxy.h32 class GrSurfaceProxy : public SkNVRefCnt<GrSurfaceProxy> {
34 virtual ~GrSurfaceProxy();
302 static GrSurfaceProxyView Copy(GrRecordingContext*, GrSurfaceProxy* src,
308 static GrSurfaceProxyView Copy(GrRecordingContext*, GrSurfaceProxy* src, GrSurfaceOrigin,
326 GrSurfaceProxy(const GrBackendFormat&,
336 GrSurfaceProxy(LazyInstantiateCallback&&,
351 GrSurfaceProxy(sk_sp<GrSurface>,
441 GR_MAKE_BITFIELD_CLASS_OPS(GrSurfaceProxy::ResolveFlags)
DGrCoordTransform.h32 GrCoordTransform(GrSurfaceProxy* proxy, GrSurfaceOrigin origin) in GrCoordTransform()
39 GrCoordTransform(const SkMatrix& m, GrSurfaceProxy* proxy, GrSurfaceOrigin origin) in GrCoordTransform()
76 const GrSurfaceProxy* proxy() const { return fProxy; } in proxy()
88 const GrSurfaceProxy* fProxy = nullptr;
DGrTextureProxy.h21 class GrTextureProxy : virtual public GrSurfaceProxy {
68 static bool ProxiesAreCompatibleAsDynamicState(const GrSurfaceProxy* first,
69 const GrSurfaceProxy* second);
105 friend class GrSurfaceProxy; // for ctors
194 typedef GrSurfaceProxy INHERITED;
DGrProxyProvider.h26 using UseAllocator = GrSurfaceProxy::UseAllocator;
124 sk_sp<GrSurfaceProxy> wrapBackendRenderTarget(const GrBackendRenderTarget&, GrColorType,
130 sk_sp<GrSurfaceProxy> wrapBackendTextureAsRenderTarget(const GrBackendTexture&,
137 using LazyInstantiationKeyMode = GrSurfaceProxy::LazyInstantiationKeyMode;
138 using LazyCallbackResult = GrSurfaceProxy::LazyCallbackResult;
139 using LazyInstantiateCallback = GrSurfaceProxy::LazyInstantiateCallback;
/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;
/external/skia/tests/
DResourceAllocatorTest.cpp33 static sk_sp<GrSurfaceProxy> make_deferred(GrProxyProvider* proxyProvider, const GrCaps* caps, in make_deferred()
43 static sk_sp<GrSurfaceProxy> make_backend(GrContext* context, const ProxyParams& p, in make_backend()
69 sk_sp<GrSurfaceProxy> p1, sk_sp<GrSurfaceProxy> p2, in overlap_test()
95 sk_sp<GrSurfaceProxy> p1, sk_sp<GrSurfaceProxy> p2, in non_overlap_test()
161 sk_sp<GrSurfaceProxy> p1 = make_deferred(proxyProvider, caps, test.fP1); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
162 sk_sp<GrSurfaceProxy> p2 = make_deferred(proxyProvider, caps, test.fP2); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
206 sk_sp<GrSurfaceProxy> p1 = make_deferred(proxyProvider, caps, test.fP1); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
207 sk_sp<GrSurfaceProxy> p2 = make_deferred(proxyProvider, caps, test.fP2); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
223 sk_sp<GrSurfaceProxy> p1 = make_backend(ctxInfo.grContext(), t[0].fP1, &backEndTex); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
224 sk_sp<GrSurfaceProxy> p2 = make_deferred(proxyProvider, caps, t[0].fP2); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
[all …]
DProxyConversionTest.cpp22 static sk_sp<GrSurfaceProxy> make_wrapped_rt(GrProxyProvider* provider, in make_wrapped_rt()
32 void clean_up_wrapped_rt(GrGpu* gpu, sk_sp<GrSurfaceProxy> proxy) { in clean_up_wrapped_rt()
40 static sk_sp<GrSurfaceProxy> make_offscreen_rt(GrProxyProvider* provider, in make_offscreen_rt()
48 static sk_sp<GrSurfaceProxy> make_texture(GrProxyProvider* provider, in make_texture()
67 sk_sp<GrSurfaceProxy> sProxy( in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
81 sk_sp<GrSurfaceProxy> sProxy(make_offscreen_rt(proxyProvider, kSize, kColorType)); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
95 sk_sp<GrSurfaceProxy> sProxy( in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
110 sk_sp<GrSurfaceProxy> sProxy( in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
/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/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;
/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);

12345678910