/external/skqp/src/gpu/ |
D | GrSurfacePriv.h | 44 explicit GrSurfacePriv(GrSurface* surface) : fSurface(surface) {} in GrSurfacePriv() 52 GrSurface* fSurface; 54 friend class GrSurface; // to construct/copy this type. variable 57 inline GrSurfacePriv GrSurface::surfacePriv() { return GrSurfacePriv(this); } in surfacePriv() 59 inline const GrSurfacePriv GrSurface::surfacePriv() const { in surfacePriv() 60 return GrSurfacePriv(const_cast<GrSurface*>(this)); in surfacePriv()
|
D | GrResourceAllocator.h | 92 void recycleSurface(sk_sp<GrSurface> surface); 93 sk_sp<GrSurface> findSurfaceFor(const GrSurfaceProxy* proxy, bool needsStencil); 96 static const GrScratchKey& GetKey(const GrSurface& s) { in GetKey() 101 static void OnFree(GrSurface* s) { s->unref(); } in OnFree() 103 typedef SkTMultiMap<GrSurface, GrScratchKey, FreePoolTraits> FreePoolMultiMap; 161 void assign(sk_sp<GrSurface>); 163 sk_sp<GrSurface> detachSurface() { return std::move(fAssignedSurface); } in detachSurface() 172 sk_sp<GrSurface> fAssignedSurface;
|
D | GrGpu.h | 40 class GrSurface; variable 175 bool readPixels(GrSurface* surface, int left, int top, int width, int height, 190 bool writePixels(GrSurface* surface, int left, int top, int width, int height, 196 bool writePixels(GrSurface* surface, int left, int top, int width, int height, in writePixels() 243 bool copySurface(GrSurface* dst, GrSurfaceOrigin dstOrigin, 244 GrSurface* src, GrSurfaceOrigin srcOrigin, 436 void didWriteToSurface(GrSurface* surface, GrSurfaceOrigin origin, const SkIRect* bounds, 474 virtual bool onReadPixels(GrSurface*, int left, int top, int width, int height, GrColorType, 478 virtual bool onWritePixels(GrSurface*, int left, int top, int width, int height, GrColorType, 493 virtual bool onCopySurface(GrSurface* dst, GrSurfaceOrigin dstOrigin, [all …]
|
D | GrSurface.cpp | 19 size_t GrSurface::WorstCaseSize(const GrSurfaceDesc& desc, bool useNextPow2) { in WorstCaseSize() 61 size_t GrSurface::ComputeSize(GrPixelConfig config, in ComputeSize() 143 bool GrSurface::hasPendingRead() const { in hasPendingRead() 155 bool GrSurface::hasPendingWrite() const { in hasPendingWrite() 167 bool GrSurface::hasPendingIO() const { in hasPendingIO() 179 void GrSurface::onRelease() { in onRelease() 183 void GrSurface::onAbandon() { in onAbandon()
|
D | GrRenderTargetProxy.cpp | 52 GrRenderTargetProxy::GrRenderTargetProxy(sk_sp<GrSurface> surf, GrSurfaceOrigin origin, in GrRenderTargetProxy() 79 sk_sp<GrSurface> GrRenderTargetProxy::createSurface(GrResourceProvider* resourceProvider) const { in createSurface() 82 sk_sp<GrSurface> surface = this->createSurfaceImpl(resourceProvider, fSampleCnt, fNeedsStencil, in createSurface() 100 return GrSurface::ComputeSize(this->config(), this->width(), this->height(), in onUninstantiatedGpuMemorySize() 113 void GrRenderTargetProxy::onValidateSurface(const GrSurface* surface) { in onValidateSurface()
|
D | GrTextureRenderTargetProxy.cpp | 56 GrTextureRenderTargetProxy::GrTextureRenderTargetProxy(sk_sp<GrSurface> surf, in GrTextureRenderTargetProxy() 73 return GrSurface::ComputeSize(this->config(), this->width(), this->height(), in onUninstantiatedGpuMemorySize() 100 sk_sp<GrSurface> GrTextureRenderTargetProxy::createSurface( in createSurface() 104 sk_sp<GrSurface> surface = this->createSurfaceImpl(resourceProvider, this->numStencilSamples(), in createSurface() 117 void GrTextureRenderTargetProxy::onValidateSurface(const GrSurface* surface) { in onValidateSurface()
|
/external/skia/src/gpu/ |
D | GrSurfacePriv.h | 44 explicit GrSurfacePriv(GrSurface* surface) : fSurface(surface) {} in GrSurfacePriv() 52 GrSurface* fSurface; 54 friend class GrSurface; // to construct/copy this type. variable 57 inline GrSurfacePriv GrSurface::surfacePriv() { return GrSurfacePriv(this); } in surfacePriv() 59 inline const GrSurfacePriv GrSurface::surfacePriv() const { in surfacePriv() 60 return GrSurfacePriv(const_cast<GrSurface*>(this)); in surfacePriv()
|
D | GrResourceAllocator.h | 92 void recycleSurface(sk_sp<GrSurface> surface); 93 sk_sp<GrSurface> findSurfaceFor(const GrSurfaceProxy* proxy, bool needsStencil); 96 static const GrScratchKey& GetKey(const GrSurface& s) { in GetKey() 101 static void OnFree(GrSurface* s) { s->unref(); } in OnFree() 103 typedef SkTMultiMap<GrSurface, GrScratchKey, FreePoolTraits> FreePoolMultiMap; 161 void assign(sk_sp<GrSurface>); 163 sk_sp<GrSurface> detachSurface() { return std::move(fAssignedSurface); } in detachSurface() 172 sk_sp<GrSurface> fAssignedSurface;
|
D | GrSurface.cpp | 19 size_t GrSurface::WorstCaseSize(const GrSurfaceDesc& desc, bool useNextPow2) { in WorstCaseSize() 61 size_t GrSurface::ComputeSize(GrPixelConfig config, in ComputeSize() 143 bool GrSurface::hasPendingRead() const { in hasPendingRead() 155 bool GrSurface::hasPendingWrite() const { in hasPendingWrite() 167 bool GrSurface::hasPendingIO() const { in hasPendingIO() 179 void GrSurface::onRelease() { in onRelease() 184 void GrSurface::onAbandon() { in onAbandon()
|
D | GrGpu.h | 42 class GrSurface; variable 182 bool readPixels(GrSurface* surface, int left, int top, int width, int height, 197 bool writePixels(GrSurface* surface, int left, int top, int width, int height, 203 bool writePixels(GrSurface* surface, int left, int top, int width, int height, in writePixels() 250 bool copySurface(GrSurface* dst, GrSurfaceOrigin dstOrigin, 251 GrSurface* src, GrSurfaceOrigin srcOrigin, 468 void didWriteToSurface(GrSurface* surface, GrSurfaceOrigin origin, const SkIRect* bounds, 512 virtual bool onReadPixels(GrSurface*, int left, int top, int width, int height, GrColorType, 516 virtual bool onWritePixels(GrSurface*, int left, int top, int width, int height, GrColorType, 531 virtual bool onCopySurface(GrSurface* dst, GrSurfaceOrigin dstOrigin, [all …]
|
D | GrRenderTargetProxy.cpp | 53 GrRenderTargetProxy::GrRenderTargetProxy(sk_sp<GrSurface> surf, GrSurfaceOrigin origin, in GrRenderTargetProxy() 80 sk_sp<GrSurface> GrRenderTargetProxy::createSurface(GrResourceProvider* resourceProvider) const { in createSurface() 83 sk_sp<GrSurface> surface = this->createSurfaceImpl(resourceProvider, fSampleCnt, fNeedsStencil, in createSurface() 101 return GrSurface::ComputeSize(this->config(), this->width(), this->height(), in onUninstantiatedGpuMemorySize() 114 void GrRenderTargetProxy::onValidateSurface(const GrSurface* surface) { in onValidateSurface()
|
D | GrTextureRenderTargetProxy.cpp | 56 GrTextureRenderTargetProxy::GrTextureRenderTargetProxy(sk_sp<GrSurface> surf, in GrTextureRenderTargetProxy() 73 return GrSurface::ComputeSize(this->config(), this->width(), this->height(), in onUninstantiatedGpuMemorySize() 100 sk_sp<GrSurface> GrTextureRenderTargetProxy::createSurface( in createSurface() 104 sk_sp<GrSurface> surface = this->createSurfaceImpl(resourceProvider, this->numStencilSamples(), in createSurface() 117 void GrTextureRenderTargetProxy::onValidateSurface(const GrSurface* surface) { in onValidateSurface()
|
D | GrResourceAllocator.cpp | 34 void GrResourceAllocator::Interval::assign(sk_sp<GrSurface> s) { in assign() 218 void GrResourceAllocator::recycleSurface(sk_sp<GrSurface> surface) { in recycleSurface() 241 sk_sp<GrSurface> GrResourceAllocator::findSurfaceFor(const GrSurfaceProxy* proxy, in findSurfaceFor() 246 sk_sp<GrSurface> surface = fResourceProvider->findByUniqueKey<GrSurface>( in findSurfaceFor() 263 auto filter = [&] (const GrSurface* s) { in findSurfaceFor() 266 sk_sp<GrSurface> surface(fFreePool.findAndRemove(key, filter)); in findSurfaceFor() 295 sk_sp<GrSurface> surface = temp->detachSurface(); in expire() 384 } else if (sk_sp<GrSurface> surface = this->findSurfaceFor(cur->proxy(), needsStencil)) { in assign()
|
/external/skqp/src/gpu/mtl/ |
D | GrMtlGpu.h | 73 bool copySurfaceAsBlit(GrSurface* dst, GrSurfaceOrigin dstOrigin, 74 GrSurface* src, GrSurfaceOrigin srcOrigin, 80 bool copySurfaceAsDrawThenBlit(GrSurface* dst, GrSurfaceOrigin dstOrigin, 81 GrSurface* src, GrSurfaceOrigin srcOrigin, 84 bool onCopySurface(GrSurface* dst, GrSurfaceOrigin dstOrigin, 85 GrSurface* src, GrSurfaceOrigin srcOrigin, 119 void submitIndirectCommandBuffer(GrSurface* surface, GrSurfaceOrigin origin, in submitIndirectCommandBuffer() 148 bool onReadPixels(GrSurface* surface, int left, int top, int width, int height, GrColorType, 151 bool onWritePixels(GrSurface*, int left, int top, int width, int height, GrColorType,
|
/external/skqp/src/gpu/vk/ |
D | GrVkGpu.h | 204 bool onReadPixels(GrSurface* surface, int left, int top, int width, int height, GrColorType, 207 bool onWritePixels(GrSurface* surface, int left, int top, int width, int height, GrColorType, 213 bool onCopySurface(GrSurface* dst, GrSurfaceOrigin dstOrigin, GrSurface* src, 229 void copySurfaceAsCopyImage(GrSurface* dst, GrSurfaceOrigin dstOrigin, 230 GrSurface* src, GrSurfaceOrigin srcOrigin, 235 void copySurfaceAsBlit(GrSurface* dst, GrSurfaceOrigin dstOrigin, 236 GrSurface* src, GrSurfaceOrigin srcOrigin, 241 void copySurfaceAsResolve(GrSurface* dst, GrSurfaceOrigin dstOrigin, 242 GrSurface* src, GrSurfaceOrigin srcOrigin, 254 void resolveImage(GrSurface* dst, GrVkRenderTarget* src, const SkIRect& srcRect,
|
D | GrVkGpuCommandBuffer.h | 31 void copy(GrSurface* src, GrSurfaceOrigin srcOrigin, const SkIRect& srcRect, 45 CopyInfo(GrSurface* src, GrSurfaceOrigin srcOrigin, const SkIRect& srcRect, in CopyInfo() 49 GrSurface* fSrc; 75 void copy(GrSurface* src, GrSurfaceOrigin srcOrigin, const SkIRect& srcRect, 160 CopyInfo(GrSurface* src, GrSurfaceOrigin srcOrigin, const SkIRect& srcRect, in CopyInfo() 168 GrSurface* fSrc;
|
/external/skia/src/gpu/mtl/ |
D | GrMtlGpu.h | 77 bool copySurfaceAsBlit(GrSurface* dst, GrSurfaceOrigin dstOrigin, 78 GrSurface* src, GrSurfaceOrigin srcOrigin, 84 bool copySurfaceAsDrawThenBlit(GrSurface* dst, GrSurfaceOrigin dstOrigin, 85 GrSurface* src, GrSurfaceOrigin srcOrigin, 88 bool onCopySurface(GrSurface* dst, GrSurfaceOrigin dstOrigin, 89 GrSurface* src, GrSurfaceOrigin srcOrigin, 123 void submitIndirectCommandBuffer(GrSurface* surface, GrSurfaceOrigin origin, in submitIndirectCommandBuffer() 159 bool onReadPixels(GrSurface* surface, int left, int top, int width, int height, GrColorType, 162 bool onWritePixels(GrSurface*, int left, int top, int width, int height, GrColorType,
|
/external/skia/src/gpu/mock/ |
D | GrMockTexture.h | 51 : GrSurface(gpu, desc) in GrMockTexture() 77 : GrSurface(gpu, desc), INHERITED(gpu, desc), fInfo(info) { in GrMockRenderTarget() 84 : GrSurface(gpu, desc), INHERITED(gpu, desc), fInfo(info) { in GrMockRenderTarget() 98 return GrSurface::ComputeSize(this->config(), this->width(), this->height(), in onGpuMemorySize() 118 : GrSurface(gpu, desc), INHERITED(gpu, desc), fInfo(info) {} in GrMockRenderTarget() 132 : GrSurface(gpu, desc) in GrMockTextureRenderTarget() 142 : GrSurface(gpu, desc) in GrMockTextureRenderTarget() 178 return GrSurface::ComputeSize(this->config(), this->width(), this->height(), in onGpuMemorySize()
|
/external/skia/src/gpu/vk/ |
D | GrVkGpu.h | 212 bool onReadPixels(GrSurface* surface, int left, int top, int width, int height, GrColorType, 215 bool onWritePixels(GrSurface* surface, int left, int top, int width, int height, GrColorType, 221 bool onCopySurface(GrSurface* dst, GrSurfaceOrigin dstOrigin, GrSurface* src, 240 void copySurfaceAsCopyImage(GrSurface* dst, GrSurfaceOrigin dstOrigin, 241 GrSurface* src, GrSurfaceOrigin srcOrigin, 246 void copySurfaceAsBlit(GrSurface* dst, GrSurfaceOrigin dstOrigin, 247 GrSurface* src, GrSurfaceOrigin srcOrigin, 252 void copySurfaceAsResolve(GrSurface* dst, GrSurfaceOrigin dstOrigin, 253 GrSurface* src, GrSurfaceOrigin srcOrigin, 265 void resolveImage(GrSurface* dst, GrVkRenderTarget* src, const SkIRect& srcRect,
|
D | GrVkGpuCommandBuffer.h | 31 void copy(GrSurface* src, GrSurfaceOrigin srcOrigin, const SkIRect& srcRect, 45 CopyInfo(GrSurface* src, GrSurfaceOrigin srcOrigin, const SkIRect& srcRect, in CopyInfo() 49 sk_sp<GrSurface> fSrc; 75 void copy(GrSurface* src, GrSurfaceOrigin srcOrigin, const SkIRect& srcRect, 160 CopyInfo(GrSurface* src, GrSurfaceOrigin srcOrigin, const SkIRect& srcRect, in CopyInfo() 168 sk_sp<GrSurface> fSrc;
|
/external/skqp/src/gpu/mock/ |
D | GrMockTexture.h | 60 : GrSurface(gpu, desc) in GrMockTexture() 107 : GrSurface(gpu, desc), INHERITED(gpu, desc), fInfo(info) { in GrMockRenderTarget() 114 : GrSurface(gpu, desc), INHERITED(gpu, desc), fInfo(info) { in GrMockRenderTarget() 128 return GrSurface::ComputeSize(this->config(), this->width(), this->height(), in onGpuMemorySize() 148 : GrSurface(gpu, desc), INHERITED(gpu, desc), fInfo(info) {} in GrMockRenderTarget() 162 : GrSurface(gpu, desc) in GrMockTextureRenderTarget() 172 : GrSurface(gpu, desc) in GrMockTextureRenderTarget() 207 return GrSurface::ComputeSize(this->config(), this->width(), this->height(), in onGpuMemorySize()
|
/external/skia/include/private/ |
D | GrSurfaceProxy.h | 145 GrIORefProxy(sk_sp<GrSurface> surface) : fRefCnt(1), fPendingReads(0), fPendingWrites(0) { in GrIORefProxy() 189 GrSurface* fTarget; 350 GrSurface* peekSurface() const { return fTarget; } in peekSurface() 433 using LazyInstantiateCallback = std::function<sk_sp<GrSurface>(GrResourceProvider*)>; 441 GrSurfaceProxy(sk_sp<GrSurface>, GrSurfaceOrigin, SkBackingFit); 462 virtual sk_sp<GrSurface> createSurface(GrResourceProvider*) const = 0; 463 void assign(sk_sp<GrSurface> surface); 465 sk_sp<GrSurface> createSurfaceImpl(GrResourceProvider*, int sampleCnt, bool needsStencil, 503 SkDEBUGCODE(void validateSurface(const GrSurface*);) 504 SkDEBUGCODE(virtual void onValidateSurface(const GrSurface*) = 0;)
|
/external/skqp/include/private/ |
D | GrSurfaceProxy.h | 143 GrIORefProxy(sk_sp<GrSurface> surface) : fRefCnt(1), fPendingReads(0), fPendingWrites(0) { in GrIORefProxy() 187 GrSurface* fTarget; 348 GrSurface* peekSurface() const { return fTarget; } in peekSurface() 430 using LazyInstantiateCallback = std::function<sk_sp<GrSurface>(GrResourceProvider*)>; 438 GrSurfaceProxy(sk_sp<GrSurface>, GrSurfaceOrigin, SkBackingFit); 459 virtual sk_sp<GrSurface> createSurface(GrResourceProvider*) const = 0; 460 void assign(sk_sp<GrSurface> surface); 462 sk_sp<GrSurface> createSurfaceImpl(GrResourceProvider*, int sampleCnt, bool needsStencil, 500 SkDEBUGCODE(void validateSurface(const GrSurface*);) 501 SkDEBUGCODE(virtual void onValidateSurface(const GrSurface*) = 0;)
|
/external/skqp/src/gpu/gl/ |
D | GrGLGpu.h | 227 bool readPixelsSupported(GrSurface* surfaceForConfig, GrPixelConfig readConfig); 229 bool onReadPixels(GrSurface*, int left, int top, int width, int height, GrColorType, 232 bool onWritePixels(GrSurface*, int left, int top, int width, int height, GrColorType, 246 bool onCopySurface(GrSurface* dst, GrSurfaceOrigin dstOrigin, 247 GrSurface* src, GrSurfaceOrigin srcOrigin, 289 bool copySurfaceAsDraw(GrSurface* dst, GrSurfaceOrigin dstOrigin, 290 GrSurface* src, GrSurfaceOrigin srcOrigin, 292 void copySurfaceAsCopyTexSubImage(GrSurface* dst, GrSurfaceOrigin dstOrigin, 293 GrSurface* src, GrSurfaceOrigin srcOrigin, 295 bool copySurfaceAsBlitFramebuffer(GrSurface* dst, GrSurfaceOrigin dstOrigin, [all …]
|
/external/skia/src/gpu/gl/ |
D | GrGLGpu.h | 232 bool readPixelsSupported(GrSurface* surfaceForConfig, GrPixelConfig readConfig); 234 bool onReadPixels(GrSurface*, int left, int top, int width, int height, GrColorType, 237 bool onWritePixels(GrSurface*, int left, int top, int width, int height, GrColorType, 251 bool onCopySurface(GrSurface* dst, GrSurfaceOrigin dstOrigin, 252 GrSurface* src, GrSurfaceOrigin srcOrigin, 297 bool copySurfaceAsDraw(GrSurface* dst, GrSurfaceOrigin dstOrigin, 298 GrSurface* src, GrSurfaceOrigin srcOrigin, 300 void copySurfaceAsCopyTexSubImage(GrSurface* dst, GrSurfaceOrigin dstOrigin, 301 GrSurface* src, GrSurfaceOrigin srcOrigin, 303 bool copySurfaceAsBlitFramebuffer(GrSurface* dst, GrSurfaceOrigin dstOrigin, [all …]
|