Home
last modified time | relevance | path

Searched refs:GrSurface (Results 1 – 25 of 168) sorted by relevance

1234567

/external/skqp/src/gpu/
DGrSurfacePriv.h44 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()
DGrResourceAllocator.h92 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;
DGrSurface.cpp19 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()
DGrGpu.h40 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 …]
DGrRenderTargetProxy.cpp52 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()
DGrTextureRenderTargetProxy.cpp56 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()
DGrTextureRenderTargetProxy.h41 GrTextureRenderTargetProxy(sk_sp<GrSurface>, GrSurfaceOrigin);
44 sk_sp<GrSurface> createSurface(GrResourceProvider*) const override;
48 SkDEBUGCODE(void onValidateSurface(const GrSurface*) override;)
/external/skia/src/gpu/
DGrSurfaceProxy.h83 LazyCallbackResult(sk_sp<GrSurface> surf,
88 : LazyCallbackResult(sk_sp<GrSurface>(std::move(tex))) {} in LazyCallbackResult()
93 sk_sp<GrSurface> fSurface;
246 GrSurface* peekSurface() const { return fTarget.get(); } in peekSurface()
381 GrSurfaceProxy(sk_sp<GrSurface>,
393 virtual sk_sp<GrSurface> createSurface(GrResourceProvider*) const = 0;
394 void assign(sk_sp<GrSurface> surface);
396 sk_sp<GrSurface> createSurfaceImpl(GrResourceProvider*, int sampleCnt, GrRenderable,
414 sk_sp<GrSurface> fTarget;
442 SkDEBUGCODE(void validateSurface(const GrSurface*);)
[all …]
DGrRenderTarget.h25 class GrRenderTarget : virtual public GrSurface {
28 using GrSurface::setRequiresManualMSAAResolve;
29 using GrSurface::requiresManualMSAAResolve;
91 using INHERITED = GrSurface;
DGrRenderTargetProxy.cpp57 GrRenderTargetProxy::GrRenderTargetProxy(sk_sp<GrSurface> surf, in GrRenderTargetProxy()
119 sk_sp<GrSurface> GrRenderTargetProxy::createSurface(GrResourceProvider* resourceProvider) const { in createSurface()
120 sk_sp<GrSurface> surface = this->createSurfaceImpl(resourceProvider, fSampleCnt, in createSurface()
138 return GrSurface::ComputeSize(this->backendFormat(), this->dimensions(), in onUninstantiatedGpuMemorySize()
147 GrSurface* surface = this->peekSurface(); in refsWrappedObjects()
168 void GrRenderTargetProxy::onValidateSurface(const GrSurface* surface) { in onValidateSurface()
DGrGpu.h41 class GrSurface; variable
239 bool readPixels(GrSurface* surface, int left, int top, int width, int height,
270 bool writePixels(GrSurface* surface, int left, int top, int width, int height,
277 bool writePixels(GrSurface* surface, int left, int top, int width, int height,
327 bool transferPixelsFrom(GrSurface* surface, int left, int top, int width, int height,
337 bool copySurface(GrSurface* dst, GrSurface* src, const SkIRect& srcRect,
644 void didWriteToSurface(GrSurface* surface, GrSurfaceOrigin origin, const SkIRect* bounds,
719 virtual bool onReadPixels(GrSurface*, int left, int top, int width, int height,
724 virtual bool onWritePixels(GrSurface*, int left, int top, int width, int height,
735 virtual bool onTransferPixelsFrom(GrSurface*, int left, int top, int width, int height,
[all …]
/external/skia/src/gpu/mtl/
DGrMtlGpu.h77 void copySurfaceAsResolve(GrSurface* dst, GrSurface* src);
79 void copySurfaceAsBlit(GrSurface* dst, GrSurface* src, const SkIRect& srcRect,
82 bool onCopySurface(GrSurface* dst, GrSurface* src, const SkIRect& srcRect,
112 void submitIndirectCommandBuffer(GrSurface* surface, GrSurfaceOrigin origin, in submitIndirectCommandBuffer()
182 bool onReadPixels(GrSurface* surface, int left, int top, int width, int height,
186 bool onWritePixels(GrSurface*, int left, int top, int width, int height,
194 bool onTransferPixelsFrom(GrSurface*, int left, int top, int width, int height,
232 bool readOrTransferPixels(GrSurface* surface, int left, int top, int width, int height,
DGrMtlCaps.h49 SurfaceReadPixelsSupport surfaceSupportsReadPixels(const GrSurface*) const override;
61 bool canCopyAsBlit(GrSurface* dst,
62 GrSurface* src,
71 bool canCopyAsResolve(GrSurface* dst,
72 GrSurface* src,
116 bool onSurfaceSupportsWritePixels(const GrSurface*) const override;
/external/skqp/src/gpu/mtl/
DGrMtlGpu.h73 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,
DGrMtlCopyManager.h17 class GrSurface; variable
25 bool copySurfaceAsDraw(GrSurface* dst, GrSurfaceOrigin dstOrigin,
26 GrSurface* src, GrSurfaceOrigin srcOrigin,
/external/skqp/src/gpu/vk/
DGrVkGpu.h204 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,
DGrVkGpuCommandBuffer.h31 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;
DGrVkCopyManager.h15 class GrSurface; variable
31 GrSurface* dst, GrSurfaceOrigin dstOrigin,
32 GrSurface* src, GrSurfaceOrigin srcOrigin,
/external/skia/src/gpu/vk/
DGrVkGpu.h190 const GrSurface*,
272 bool onReadPixels(GrSurface* surface, int left, int top, int width, int height,
276 bool onWritePixels(GrSurface* surface, int left, int top, int width, int height,
285 bool onTransferPixelsFrom(GrSurface* surface, int left, int top, int width, int height,
289 bool onCopySurface(GrSurface* dst, GrSurface* src, const SkIRect& srcRect,
324 void copySurfaceAsCopyImage(GrSurface* dst, GrSurface* src, GrVkImage* dstImage,
328 void copySurfaceAsBlit(GrSurface* dst, GrSurface* src, GrVkImage* dstImage, GrVkImage* srcImage,
331 void copySurfaceAsResolve(GrSurface* dst, GrSurface* src, const SkIRect& srcRect,
342 void resolveImage(GrSurface* dst, GrVkRenderTarget* src, const SkIRect& srcRect,
/external/skia/src/gpu/mock/
DGrMockTexture.h58 : GrSurface(gpu, dimensions, isProtected) in GrMockTexture()
88 : GrSurface(gpu, dimensions, isProtected) in GrMockRenderTarget()
97 : GrSurface(gpu, dimensions, isProtected) in GrMockRenderTarget()
119 return GrSurface::ComputeSize(this->backendFormat(), this->dimensions(), in onGpuMemorySize()
142 : GrSurface(gpu, dimensions, isProtected) in GrMockRenderTarget()
163 : GrSurface(gpu, dimensions, isProtected) in GrMockTextureRenderTarget()
178 : GrSurface(gpu, dimensions, isProtected) in GrMockTextureRenderTarget()
210 return GrSurface::ComputeSize(this->backendFormat(), this->dimensions(), in onGpuMemorySize()
/external/skia/src/gpu/d3d/
DGrD3DGpu.h168 bool onReadPixels(GrSurface* surface, int left, int top, int width, int height,
172 bool onWritePixels(GrSurface* surface, int left, int top, int width, int height,
183 bool onTransferPixelsFrom(GrSurface* surface, int left, int top, int width, int height, in onTransferPixelsFrom()
188 bool onCopySurface(GrSurface* dst, GrSurface* src, const SkIRect& srcRect,
241 void copySurfaceAsCopyTexture(GrSurface* dst, GrSurface* src, GrD3DTextureResource* dstResource,
245 void copySurfaceAsResolve(GrSurface* dst, GrSurface* src, const SkIRect& srcRect,
247 void resolveTexture(GrSurface* dst, int32_t dstX, int32_t dstY,
/external/skqp/src/gpu/mock/
DGrMockTexture.h60 : 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/tests/
DGrSurfaceTest.cpp31 DEF_GPUTEST_FOR_MOCK_CONTEXT(GrSurface, reporter, ctxInfo) { in DEF_GPUTEST_FOR_MOCK_CONTEXT() argument
38 sk_sp<GrSurface> texRT1 = in DEF_GPUTEST_FOR_MOCK_CONTEXT()
44 REPORTER_ASSERT(reporter, static_cast<GrSurface*>(texRT1->asRenderTarget()) == in DEF_GPUTEST_FOR_MOCK_CONTEXT()
47 static_cast<GrSurface*>(texRT1->asTexture())); in DEF_GPUTEST_FOR_MOCK_CONTEXT()
48 REPORTER_ASSERT(reporter, static_cast<GrSurface*>(texRT1->asRenderTarget()) == in DEF_GPUTEST_FOR_MOCK_CONTEXT()
49 static_cast<GrSurface*>(texRT1->asTexture())); in DEF_GPUTEST_FOR_MOCK_CONTEXT()
56 REPORTER_ASSERT(reporter, static_cast<GrSurface*>(tex1.get()) == tex1->asTexture()); in DEF_GPUTEST_FOR_MOCK_CONTEXT()
62 sk_sp<GrSurface> texRT2 = resourceProvider->wrapRenderableBackendTexture( in DEF_GPUTEST_FOR_MOCK_CONTEXT()
67 REPORTER_ASSERT(reporter, static_cast<GrSurface*>(texRT2->asRenderTarget()) == in DEF_GPUTEST_FOR_MOCK_CONTEXT()
70 static_cast<GrSurface*>(texRT2->asTexture())); in DEF_GPUTEST_FOR_MOCK_CONTEXT()
[all …]
/external/skqp/include/private/
DGrSurfaceProxy.h143 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/
DGrGLGpu.h227 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 …]

1234567