Home
last modified time | relevance | path

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

12345678910

/external/skia/src/gpu/
DGrSurfaceProxy.cpp46 GrSurfaceProxy::GrSurfaceProxy(const GrBackendFormat& format, in GrSurfaceProxy() function in GrSurfaceProxy
65 GrSurfaceProxy::GrSurfaceProxy(LazyInstantiateCallback&& callback, in GrSurfaceProxy() function in GrSurfaceProxy
87 GrSurfaceProxy::GrSurfaceProxy(sk_sp<GrSurface> surface, in GrSurfaceProxy() function in GrSurfaceProxy
104 GrSurfaceProxy::~GrSurfaceProxy() { in ~GrSurfaceProxy()
107 sk_sp<GrSurface> GrSurfaceProxy::createSurfaceImpl(GrResourceProvider* resourceProvider, in createSurfaceImpl()
130 bool GrSurfaceProxy::canSkipResourceAllocator() const { in canSkipResourceAllocator()
145 void GrSurfaceProxy::assign(sk_sp<GrSurface> surface) { in assign()
167 bool GrSurfaceProxy::instantiateImpl(GrResourceProvider* resourceProvider, int sampleCnt, in instantiateImpl()
195 void GrSurfaceProxy::deinstantiate() { in deinstantiate()
200 void GrSurfaceProxy::computeScratchKey(const GrCaps& caps, GrScratchKey* key) const { in computeScratchKey()
[all …]
DGrTextureResolveRenderTask.cpp18 sk_sp<GrSurfaceProxy> proxyRef, in addProxy()
19 GrSurfaceProxy::ResolveFlags flags, in addProxy()
22 GrSurfaceProxy* proxy = proxyRef.get(); in addProxy()
28 SkASSERT(GrSurfaceProxy::ResolveFlags::kNone != flags); in addProxy()
30 if (GrSurfaceProxy::ResolveFlags::kMSAA & flags) { in addProxy()
38 if (GrSurfaceProxy::ResolveFlags::kMipMaps & flags) { in addProxy()
58 for (const sk_sp<GrSurfaceProxy>& target : fTargets) { in gatherProxyIntervals()
69 if (GrSurfaceProxy::ResolveFlags::kMSAA & resolve.fFlags) { in onExecute()
70 GrSurfaceProxy* proxy = this->target(i); in onExecute()
80 if (GrSurfaceProxy::ResolveFlags::kMipMaps & resolve.fFlags) { in onExecute()
DGrDrawingManager.h65 void newWaitRenderTask(sk_sp<GrSurfaceProxy> proxy,
74 void newTransferFromRenderTask(sk_sp<GrSurfaceProxy> srcProxy, const SkIRect& srcRect,
85 sk_sp<GrRenderTask> newCopyRenderTask(sk_sp<GrSurfaceProxy> src,
87 sk_sp<GrSurfaceProxy> dst,
96 bool newWritePixelsTask(sk_sp<GrSurfaceProxy> dst,
124 GrSemaphoresSubmitted flushSurfaces(SkSpan<GrSurfaceProxy*>,
138 GrRenderTask* getLastRenderTask(const GrSurfaceProxy*) const;
139 GrOpsTask* getLastOpsTask(const GrSurfaceProxy*) const;
140 void setLastRenderTask(const GrSurfaceProxy*, GrRenderTask*);
173 bool flush(SkSpan<GrSurfaceProxy*> proxies,
[all …]
DGrResourceAllocator.h91 void addInterval(GrSurfaceProxy*, unsigned int start, unsigned int end, ActualUse actualUse
125 Register* findOrCreateRegisterFor(GrSurfaceProxy* proxy);
151 Register(GrSurfaceProxy* originatingProxy, GrScratchKey, GrResourceProvider*);
162 bool isRecyclable(const GrCaps&, GrSurfaceProxy* proxy, int knownUseCount) const;
167 bool instantiateSurface(GrSurfaceProxy*, GrResourceProvider*);
172 GrSurfaceProxy* fOriginatingProxy;
186 Interval(GrSurfaceProxy* proxy, unsigned int start, unsigned int end) in Interval()
198 const GrSurfaceProxy* proxy() const { return fProxy; } in proxy()
199 GrSurfaceProxy* proxy() { return fProxy; } in proxy()
226 GrSurfaceProxy* fProxy;
DGrCopyRenderTask.h20 sk_sp<GrSurfaceProxy> src,
22 sk_sp<GrSurfaceProxy> dst,
28 sk_sp<GrSurfaceProxy> src,
30 sk_sp<GrSurfaceProxy> dst,
35 bool onIsUsed(GrSurfaceProxy* proxy) const override { return proxy == fSrc.get(); } in onIsUsed()
49 sk_sp<GrSurfaceProxy> fSrc;
DGrSurfaceProxyPriv.h48 explicit GrSurfaceProxyPriv(GrSurfaceProxy* proxy) : fProxy(proxy) {} in GrSurfaceProxyPriv()
56 GrSurfaceProxy* fProxy;
58 friend class GrSurfaceProxy; // to construct/copy this type. variable
61 inline GrSurfaceProxyPriv GrSurfaceProxy::priv() { return GrSurfaceProxyPriv(this); } in priv()
63 inline const GrSurfaceProxyPriv GrSurfaceProxy::priv () const { // NOLINT(readability-const-return… in priv()
64 return GrSurfaceProxyPriv(const_cast<GrSurfaceProxy*>(this)); in priv()
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()
97 auto copy = GrSurfaceProxy::Copy(context, in Copy()
112 auto copy = GrSurfaceProxy::Copy(context, in Copy()
123 sk_sp<GrSurfaceProxy> detachProxy() { in detachProxy()
128 sk_sp<GrSurfaceProxy> fProxy;
DGrTextureResolveRenderTask.h17 void addProxy(GrDrawingManager*, sk_sp<GrSurfaceProxy> proxy,
18 GrSurfaceProxy::ResolveFlags, const GrCaps&);
21 bool onIsUsed(GrSurfaceProxy* proxy) const override { in onIsUsed()
40 Resolve(GrSurfaceProxy::ResolveFlags flags) : fFlags(flags) {} in Resolve()
41 GrSurfaceProxy::ResolveFlags fFlags;
DGrYUVATextureProxies.h24 sk_sp<GrSurfaceProxy>[SkYUVAInfo::kMaxPlanes],
52 GrSurfaceProxy* proxy(int i) const { return fProxies[i].get(); } in proxy()
54 const std::array<sk_sp<GrSurfaceProxy>, SkYUVAInfo::kMaxPlanes>& proxies() const { in proxies()
58 sk_sp<GrSurfaceProxy> refProxy(int i) const { return fProxies[i]; } in refProxy()
69 std::array<sk_sp<GrSurfaceProxy>, SkYUVAInfo::kMaxPlanes> fProxies;
DGrSurfaceProxy.h30 class GrSurfaceProxy : public SkNVRefCnt<GrSurfaceProxy> {
32 virtual ~GrSurfaceProxy();
315 static sk_sp<GrSurfaceProxy> Copy(GrRecordingContext*,
316 sk_sp<GrSurfaceProxy> src,
326 static sk_sp<GrSurfaceProxy> Copy(GrRecordingContext*,
327 sk_sp<GrSurfaceProxy> src,
360 GrSurfaceProxy(const GrBackendFormat&,
368 GrSurfaceProxy(LazyInstantiateCallback&&,
381 GrSurfaceProxy(sk_sp<GrSurface>,
467 GR_MAKE_BITFIELD_CLASS_OPS(GrSurfaceProxy::ResolveFlags)
DGrRenderTask.cpp38 for (const sk_sp<GrSurfaceProxy>& target : fTargets) { in disown()
76 GrSurfaceProxy* proxy = this->target(0); in makeClosed()
127 void GrRenderTask::addDependency(GrDrawingManager* drawingMgr, GrSurfaceProxy* dependedOn, in addDependency()
158 auto resolveFlags = GrSurfaceProxy::ResolveFlags::kNone; in addDependency()
164 resolveFlags |= GrSurfaceProxy::ResolveFlags::kMSAA; in addDependency()
176 resolveFlags |= GrSurfaceProxy::ResolveFlags::kMipMaps; in addDependency()
181 if (GrSurfaceProxy::ResolveFlags::kNone != resolveFlags) { in addDependency()
287 for (const sk_sp<GrSurfaceProxy>& target : fTargets) { in isInstantiated()
288 GrSurfaceProxy* proxy = target.get(); in isInstantiated()
302 void GrRenderTask::addTarget(GrDrawingManager* drawingMgr, sk_sp<GrSurfaceProxy> proxy) { in addTarget()
[all …]
DGrOnFlushResourceProvider.h21 class GrSurfaceProxy; variable
61 using UseAllocator = GrSurfaceProxy::UseAllocator;
65 std::unique_ptr<GrSurfaceDrawContext> makeRenderTargetContext(sk_sp<GrSurfaceProxy>,
70 void addTextureResolveTask(sk_sp<GrTextureProxy>, GrSurfaceProxy::ResolveFlags);
78 bool instatiateProxy(GrSurfaceProxy*);
DGrRenderTask.h72 void addDependency(GrDrawingManager*, GrSurfaceProxy* dependedOn, GrMipmapped,
98 GrSurfaceProxy* target(int i) const { return fTargets[i].get(); } in target()
123 for (const sk_sp<GrSurfaceProxy>& target : fTargets) { in visitTargetAndSrcProxies_debugOnly()
129 bool isUsed(GrSurfaceProxy* proxy) const { in isUsed()
130 for (const sk_sp<GrSurfaceProxy>& target : fTargets) { in isUsed()
154 void addTarget(GrDrawingManager*, sk_sp<GrSurfaceProxy>);
173 SkSTArray<1, sk_sp<GrSurfaceProxy>> fTargets;
219 virtual bool onIsUsed(GrSurfaceProxy*) const = 0;
DGrSurfaceContext.h33 class GrSurfaceProxy; variable
151 GrSurfaceProxy* asSurfaceProxy() { return fReadView.proxy(); } in asSurfaceProxy()
152 const GrSurfaceProxy* asSurfaceProxy() const { return fReadView.proxy(); } in asSurfaceProxy()
153 sk_sp<GrSurfaceProxy> asSurfaceProxyRef() { return fReadView.refProxy(); } in asSurfaceProxyRef()
196 bool testCopy(sk_sp<GrSurfaceProxy> src, const SkIRect& srcRect, const SkIPoint& dstPoint) { in testCopy()
200 bool testCopy(sk_sp<GrSurfaceProxy> src) { in testCopy()
240 friend class GrSurfaceProxy; // for copy
259 sk_sp<GrRenderTask> copy(sk_sp<GrSurfaceProxy> src, SkIRect srcRect, SkIPoint dstPoint);
/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()
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;
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;
/external/skia/src/image/
DSkImage_Gpu.h40 bool surfaceMustCopyOnWrite(GrSurfaceProxy* surfaceProxy) const;
79 sk_sp<GrSurfaceProxy> stableCopy,
104 ProxyChooser(sk_sp<GrSurfaceProxy> stableProxy,
105 sk_sp<GrSurfaceProxy> volatileProxy,
109 ProxyChooser(sk_sp<GrSurfaceProxy> stableProxy);
115 sk_sp<GrSurfaceProxy> chooseProxy(GrRecordingContext* context) SK_EXCLUDES(fLock);
117 sk_sp<GrSurfaceProxy> switchToStableProxy() SK_EXCLUDES(fLock);
119 sk_sp<GrSurfaceProxy> makeVolatileProxyStable() SK_EXCLUDES(fLock);
121 bool surfaceMustCopyOnWrite(GrSurfaceProxy* surfaceProxy) const SK_EXCLUDES(fLock);
132 sk_sp<GrSurfaceProxy> fStableProxy SK_GUARDED_BY(fLock);
[all …]
/external/skia/tests/
DResourceAllocatorTest.cpp62 static sk_sp<GrSurfaceProxy> make_deferred(GrProxyProvider* proxyProvider, const GrCaps* caps, in make_deferred()
69 static sk_sp<GrSurfaceProxy> make_backend(GrDirectContext* dContext, const ProxyParams& p) { in make_backend()
89 static sk_sp<GrSurfaceProxy> make_fully_lazy(GrProxyProvider* proxyProvider, const GrCaps* caps, in make_fully_lazy()
92 auto cb = [p](GrResourceProvider* provider, const GrSurfaceProxy::LazySurfaceDesc& desc) { in make_fully_lazy()
97 return GrSurfaceProxy::LazyCallbackResult(std::move(tex)); in make_fully_lazy()
101 GrSurfaceProxy::UseAllocator::kYes); in make_fully_lazy()
104 static sk_sp<GrSurfaceProxy> make_lazy(GrProxyProvider* proxyProvider, const GrCaps* caps, in make_lazy()
107 auto cb = [](GrResourceProvider* provider, const GrSurfaceProxy::LazySurfaceDesc& desc) { in make_lazy()
112 return GrSurfaceProxy::LazyCallbackResult(std::move(tex)); in make_lazy()
118 GrSurfaceProxy::UseAllocator::kYes); in make_lazy()
[all …]
DProxyConversionTest.cpp23 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()
68 sk_sp<GrSurfaceProxy> sProxy( in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
82 sk_sp<GrSurfaceProxy> sProxy(make_offscreen_rt(proxyProvider, kSize, kColorType)); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
96 sk_sp<GrSurfaceProxy> sProxy( in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
111 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/skia/src/gpu/mock/
DGrMockRenderTask.h20 void addTarget(sk_sp<GrSurfaceProxy> proxy) { fTargets.push_back(std::move(proxy)); } in addTarget()
22 void addUsed(sk_sp<GrSurfaceProxy> proxy) { fUsed.push_back(std::move(proxy)); } in addUsed()
30 bool onIsUsed(GrSurfaceProxy* proxy) const override { in onIsUsed()
45 SkTArray<sk_sp<GrSurfaceProxy>> fUsed;

12345678910