/third_party/skia/src/gpu/ |
D | GrSurfaceProxy.cpp | 44 GrSurfaceProxy::GrSurfaceProxy(const GrBackendFormat& format, in GrSurfaceProxy() function in GrSurfaceProxy 63 GrSurfaceProxy::GrSurfaceProxy(LazyInstantiateCallback&& callback, in GrSurfaceProxy() function in GrSurfaceProxy 85 GrSurfaceProxy::GrSurfaceProxy(sk_sp<GrSurface> surface, in GrSurfaceProxy() function in GrSurfaceProxy 102 GrSurfaceProxy::~GrSurfaceProxy() { in ~GrSurfaceProxy() 105 sk_sp<GrSurface> GrSurfaceProxy::createSurfaceImpl(GrResourceProvider* resourceProvider, in createSurfaceImpl() 141 bool GrSurfaceProxy::canSkipResourceAllocator() const { in canSkipResourceAllocator() 156 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 …]
|
D | GrTextureResolveRenderTask.cpp | 18 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()
|
D | GrDrawingManager.h | 75 void newWaitRenderTask(sk_sp<GrSurfaceProxy> proxy, 84 void newTransferFromRenderTask(sk_sp<GrSurfaceProxy> srcProxy, const SkIRect& srcRect, 95 sk_sp<GrRenderTask> newCopyRenderTask(sk_sp<GrSurfaceProxy> src, 97 sk_sp<GrSurfaceProxy> dst, 106 bool newWritePixelsTask(sk_sp<GrSurfaceProxy> dst, 139 GrSemaphoresSubmitted flushSurfaces(SkSpan<GrSurfaceProxy*>, 155 GrRenderTask* getLastRenderTask(const GrSurfaceProxy*) const; 156 skgpu::v1::OpsTask* getLastOpsTask(const GrSurfaceProxy*) const; 157 void setLastRenderTask(const GrSurfaceProxy*, GrRenderTask*); 194 bool flush(SkSpan<GrSurfaceProxy*> proxies, [all …]
|
D | GrResourceAllocator.h | 100 void addInterval(GrSurfaceProxy*, unsigned int start, unsigned int end, ActualUse actualUse 134 Register* findOrCreateRegisterFor(GrSurfaceProxy* proxy); 160 Register(GrSurfaceProxy* originatingProxy, GrScratchKey, GrResourceProvider*); 171 bool isRecyclable(const GrCaps&, GrSurfaceProxy* proxy, int knownUseCount) const; 176 bool instantiateSurface(GrSurfaceProxy*, GrResourceProvider*); 181 GrSurfaceProxy* fOriginatingProxy; 195 Interval(GrSurfaceProxy* proxy, unsigned int start, unsigned int end) in Interval() 207 const GrSurfaceProxy* proxy() const { return fProxy; } in proxy() 208 GrSurfaceProxy* proxy() { return fProxy; } in proxy() 235 GrSurfaceProxy* fProxy;
|
D | GrCopyRenderTask.h | 20 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;
|
D | GrSurfaceProxyPriv.h | 48 explicit GrSurfaceProxyPriv(GrSurfaceProxy* proxy) : fProxy(proxy) {} in GrSurfaceProxyPriv() 57 GrSurfaceProxy* fProxy; 59 friend class GrSurfaceProxy; // to construct/copy this type. variable 62 inline GrSurfaceProxyPriv GrSurfaceProxy::priv() { return GrSurfaceProxyPriv(this); } in priv() 64 inline const GrSurfaceProxyPriv GrSurfaceProxy::priv () const { // NOLINT(readability-const-return… in priv() 65 return GrSurfaceProxyPriv(const_cast<GrSurfaceProxy*>(this)); in priv()
|
D | GrSurfaceProxyView.h | 22 GrSurfaceProxyView(sk_sp<GrSurfaceProxy> proxy, GrSurfaceOrigin origin, GrSwizzle swizzle) in GrSurfaceProxyView() 26 explicit GrSurfaceProxyView(sk_sp<GrSurfaceProxy> proxy) in GrSurfaceProxyView() 55 GrSurfaceProxy* proxy() const { return fProxy.get(); } in proxy() 56 sk_sp<GrSurfaceProxy> refProxy() const { return fProxy; } in refProxy() 104 auto copy = GrSurfaceProxy::Copy(context, in Copy() 119 auto copy = GrSurfaceProxy::Copy(rContext, in Copy() 130 sk_sp<GrSurfaceProxy> detachProxy() { in detachProxy() 135 sk_sp<GrSurfaceProxy> fProxy;
|
D | GrTextureResolveRenderTask.h | 17 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;
|
D | GrRenderTask.cpp | 38 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() 160 auto resolveFlags = GrSurfaceProxy::ResolveFlags::kNone; in addDependency() 166 resolveFlags |= GrSurfaceProxy::ResolveFlags::kMSAA; in addDependency() 178 resolveFlags |= GrSurfaceProxy::ResolveFlags::kMipMaps; in addDependency() 183 if (GrSurfaceProxy::ResolveFlags::kNone != resolveFlags) { in addDependency() 281 for (const sk_sp<GrSurfaceProxy>& target : fTargets) { in isInstantiated() 282 GrSurfaceProxy* proxy = target.get(); in isInstantiated() 296 void GrRenderTask::addTarget(GrDrawingManager* drawingMgr, sk_sp<GrSurfaceProxy> proxy) { in addTarget() [all …]
|
D | GrSurfaceProxy.h | 28 class GrSurfaceProxy : public SkNVRefCnt<GrSurfaceProxy> { 30 virtual ~GrSurfaceProxy(); 318 static sk_sp<GrSurfaceProxy> Copy(GrRecordingContext*, 319 sk_sp<GrSurfaceProxy> src, 329 static sk_sp<GrSurfaceProxy> Copy(GrRecordingContext*, 330 sk_sp<GrSurfaceProxy> src, 366 GrSurfaceProxy(const GrBackendFormat&, 374 GrSurfaceProxy(LazyInstantiateCallback&&, 387 GrSurfaceProxy(sk_sp<GrSurface>, 476 GR_MAKE_BITFIELD_CLASS_OPS(GrSurfaceProxy::ResolveFlags)
|
D | SurfaceContext.h | 29 class GrSurfaceProxy; variable 134 GrSurfaceProxy* asSurfaceProxy() { return fReadView.proxy(); } in asSurfaceProxy() 135 const GrSurfaceProxy* asSurfaceProxy() const { return fReadView.proxy(); } in asSurfaceProxy() 136 sk_sp<GrSurfaceProxy> asSurfaceProxyRef() { return fReadView.refProxy(); } in asSurfaceProxyRef() 176 bool testCopy(sk_sp<GrSurfaceProxy> src, const SkIRect& srcRect, const SkIPoint& dstPoint) { in testCopy() 180 bool testCopy(sk_sp<GrSurfaceProxy> src) { in testCopy() 221 friend class ::GrSurfaceProxy; // for copy 240 sk_sp<GrRenderTask> copy(sk_sp<GrSurfaceProxy> src, SkIRect srcRect, SkIPoint dstPoint);
|
D | GrYUVATextureProxies.h | 24 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;
|
D | GrRenderTask.h | 71 void addDependency(GrDrawingManager*, GrSurfaceProxy* dependedOn, GrMipmapped, 97 GrSurfaceProxy* target(int i) const { return fTargets[i].get(); } in target() 122 for (const sk_sp<GrSurfaceProxy>& target : fTargets) { in visitTargetAndSrcProxies_debugOnly() 128 bool isUsed(GrSurfaceProxy* proxy) const { in isUsed() 129 for (const sk_sp<GrSurfaceProxy>& target : fTargets) { in isUsed() 153 void addTarget(GrDrawingManager*, sk_sp<GrSurfaceProxy>); 172 SkSTArray<1, sk_sp<GrSurfaceProxy>> fTargets; 219 virtual bool onIsUsed(GrSurfaceProxy*) const = 0;
|
D | GrCopyRenderTask.cpp | 16 sk_sp<GrSurfaceProxy> src, in Make() 18 sk_sp<GrSurfaceProxy> dst, in Make() 42 sk_sp<GrSurfaceProxy> src, in GrCopyRenderTask() 44 sk_sp<GrSurfaceProxy> dst, in GrCopyRenderTask() 82 GrSurfaceProxy* dstProxy = this->target(0); in onExecute()
|
D | GrProxyProvider.h | 27 using UseAllocator = GrSurfaceProxy::UseAllocator; 138 sk_sp<GrSurfaceProxy> wrapBackendRenderTarget(const GrBackendRenderTarget&, 144 using LazyInstantiationKeyMode = GrSurfaceProxy::LazyInstantiationKeyMode; 145 using LazySurfaceDesc = GrSurfaceProxy::LazySurfaceDesc; 146 using LazyCallbackResult = GrSurfaceProxy::LazyCallbackResult; 147 using LazyInstantiateCallback = GrSurfaceProxy::LazyInstantiateCallback;
|
D | GrTextureProxy.h | 22 class GrTextureProxy : virtual public GrSurfaceProxy { 66 static bool ProxiesAreCompatibleAsDynamicState(const GrSurfaceProxy* first, 67 const GrSurfaceProxy* second); 109 friend class GrSurfaceProxy; // for ctors 210 using INHERITED = GrSurfaceProxy;
|
D | GrOpFlushState.h | 112 void setSampledProxyArray(SkTArray<GrSurfaceProxy*, true>* sampledProxies) { in setSampledProxyArray() argument 116 SkTArray<GrSurfaceProxy*, true>* sampledProxyArray() override { in sampledProxyArray() 130 const GrSurfaceProxy* const primProcProxies[], 206 const GrSurfaceProxy& singleGeomProcTexture, in bindTextures() 209 const GrSurfaceProxy* ptr = &singleGeomProcTexture; in bindTextures() 224 const GrSurfaceProxy* const geomProcTextures[], in bindTextures() 282 const GrSurfaceProxy* const* fGeomProcProxies = nullptr; 312 SkTArray<GrSurfaceProxy*, true>* fSampledProxies;
|
D | GrRenderTaskCluster.cpp | 16 static GrSurfaceProxy* first_target(GrRenderTask* task) { return task->target(0); } in first_target() 20 if (GrSurfaceProxy* target = first_target(t)) { in describe_task() 91 SkTHashMap<GrSurfaceProxy*, GrRenderTask*>* lastTaskMap) { in task_cluster_visit() argument 106 GrSurfaceProxy* target = first_target(task); in task_cluster_visit() 167 SkTHashMap<GrSurfaceProxy*, GrRenderTask*> lastTaskMap; in GrClusterRenderTasks()
|
D | GrWritePixelsRenderTask.h | 16 sk_sp<GrSurfaceProxy>, 25 sk_sp<GrSurfaceProxy> dst, 32 bool onIsUsed(GrSurfaceProxy* proxy) const override { return false; } in onIsUsed()
|
D | GrDrawingManager.cpp | 98 SkSpan<GrSurfaceProxy*> proxies, in flush() 119 bool allUnused = std::all_of(proxies.begin(), proxies.end(), [&](GrSurfaceProxy* proxy) { in flush() 185 [](GrSurfaceProxy* p, GrMipmapped mipMapped) { in flush() 477 static void resolve_and_mipmap(GrGpu* gpu, GrSurfaceProxy* proxy) { in resolve_and_mipmap() 509 SkSpan<GrSurfaceProxy*> proxies, in flushSurfaces() 534 for (GrSurfaceProxy* proxy : proxies) { in flushSurfaces() 559 void GrDrawingManager::setLastRenderTask(const GrSurfaceProxy* proxy, GrRenderTask* task) { in setLastRenderTask() 573 GrRenderTask* GrDrawingManager::getLastRenderTask(const GrSurfaceProxy* proxy) const { in getLastRenderTask() 578 skgpu::v1::OpsTask* GrDrawingManager::getLastOpsTask(const GrSurfaceProxy* proxy) const { in getLastOpsTask() 770 void GrDrawingManager::newWaitRenderTask(sk_sp<GrSurfaceProxy> proxy, in newWaitRenderTask() [all …]
|
/third_party/skia/src/image/ |
D | SkImage_Gpu.h | 40 bool surfaceMustCopyOnWrite(GrSurfaceProxy* surfaceProxy) const; 81 sk_sp<GrSurfaceProxy> stableCopy, 106 ProxyChooser(sk_sp<GrSurfaceProxy> stableProxy, 107 sk_sp<GrSurfaceProxy> volatileProxy, 111 ProxyChooser(sk_sp<GrSurfaceProxy> stableProxy); 117 sk_sp<GrSurfaceProxy> chooseProxy(GrRecordingContext* context) SK_EXCLUDES(fLock); 119 sk_sp<GrSurfaceProxy> switchToStableProxy() SK_EXCLUDES(fLock); 121 sk_sp<GrSurfaceProxy> makeVolatileProxyStable() SK_EXCLUDES(fLock); 123 bool surfaceMustCopyOnWrite(GrSurfaceProxy* surfaceProxy) const SK_EXCLUDES(fLock); 134 sk_sp<GrSurfaceProxy> fStableProxy SK_GUARDED_BY(fLock); [all …]
|
/third_party/skia/tests/ |
D | ResourceAllocatorTest.cpp | 62 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() 98 return GrSurfaceProxy::LazyCallbackResult(std::move(tex)); in make_fully_lazy() 102 GrSurfaceProxy::UseAllocator::kYes); in make_fully_lazy() 105 static sk_sp<GrSurfaceProxy> make_lazy(GrProxyProvider* proxyProvider, const GrCaps* caps, in make_lazy() 108 auto cb = [](GrResourceProvider* provider, const GrSurfaceProxy::LazySurfaceDesc& desc) { in make_lazy() 114 return GrSurfaceProxy::LazyCallbackResult(std::move(tex)); in make_lazy() 120 GrSurfaceProxy::UseAllocator::kYes); in make_lazy() [all …]
|
D | ProxyConversionTest.cpp | 23 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()
|
D | LazyProxyTest.cpp | 86 const GrSurfaceProxy::LazySurfaceDesc& desc) in Op() 87 -> GrSurfaceProxy::LazyCallbackResult { in Op() 108 GrSurfaceProxy::UseAllocator::kYes); in Op() 148 [this](GrResourceProvider* rp, const GrSurfaceProxy::LazySurfaceDesc&) in ClipFP() 149 -> GrSurfaceProxy::LazyCallbackResult { in ClipFP() 156 GrSurfaceProxy::UseAllocator::kYes); in ClipFP() 256 using LazyInstantiationResult = GrSurfaceProxy::LazyCallbackResult; 284 const GrSurfaceProxy::LazySurfaceDesc&) const { in operator ()() 298 GrSurfaceProxy::UseAllocator::kYes); 354 GrResourceProvider* rp, const GrSurfaceProxy::LazySurfaceDesc& desc) in LazyFailedInstantiationTestOp() [all …]
|
/third_party/skia/src/gpu/mock/ |
D | GrMockRenderTask.h | 20 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;
|