Home
last modified time | relevance | path

Searched refs:GrTexture (Results 1 – 25 of 200) sorted by relevance

12345678

/external/skia/src/gpu/
DGrResourceProvider.h28 class GrTexture; variable
63 sk_sp<GrTexture> createApproxTexture(SkISize dimensions,
70 sk_sp<GrTexture> createTexture(SkISize dimensions,
83 sk_sp<GrTexture> createTexture(SkISize dimensions,
98 sk_sp<GrTexture> createTexture(SkISize dimensions,
112 sk_sp<GrTexture> findAndRefScratchTexture(const GrScratchKey&);
113 sk_sp<GrTexture> findAndRefScratchTexture(SkISize dimensions,
124 sk_sp<GrTexture> createCompressedTexture(SkISize dimensions,
145 sk_sp<GrTexture> wrapBackendTexture(const GrBackendTexture& tex,
150 sk_sp<GrTexture> wrapCompressedBackendTexture(const GrBackendTexture& tex,
[all …]
DGrTexture.cpp23 void GrTexture::markMipmapsDirty() { in markMipmapsDirty()
29 void GrTexture::markMipmapsClean() { in markMipmapsClean()
34 size_t GrTexture::onGpuMemorySize() const { in onGpuMemorySize()
40 GrTexture::GrTexture(GrGpu* gpu, in GrTexture() function in GrTexture
58 bool GrTexture::StealBackendTexture(sk_sp<GrTexture> texture, in StealBackendTexture()
88 void GrTexture::computeScratchKey(GrScratchKey* key) const { in computeScratchKey()
102 void GrTexture::ComputeScratchKey(const GrCaps& caps, in ComputeScratchKey()
DGrTexture.h19 class GrTexture : virtual public GrSurface {
21 GrTexture* asTexture() override { return this; } in asTexture()
22 const GrTexture* asTexture() const override { return this; } in asTexture()
39 static bool StealBackendTexture(sk_sp<GrTexture>,
67 GrTexture(GrGpu*, const SkISize&, GrProtected, GrTextureType, GrMipmapStatus);
DGrGpu.h42 class GrTexture; variable
131 sk_sp<GrTexture> createTexture(SkISize dimensions,
145 sk_sp<GrTexture> createTexture(SkISize dimensions,
153 sk_sp<GrTexture> createCompressedTexture(SkISize dimensions,
163 sk_sp<GrTexture> wrapBackendTexture(const GrBackendTexture&,
168 sk_sp<GrTexture> wrapCompressedBackendTexture(const GrBackendTexture&,
175 sk_sp<GrTexture> wrapRenderableBackendTexture(const GrBackendTexture&,
212 bool regenerateMipMapLevels(GrTexture*);
302 bool transferPixelsTo(GrTexture* texture, int left, int top, int width, int height,
397 virtual std::unique_ptr<GrSemaphore> prepareTextureForCrossContextUsage(GrTexture*) = 0;
[all …]
DGrBackendTextureImageGenerator.h33 static std::unique_ptr<SkImageGenerator> Make(sk_sp<GrTexture>, GrSurfaceOrigin,
52 GrTexture*,
62 RefHelper(GrTexture*,
68 GrTexture* fOriginalTexture;
DGrResourceProvider.cpp43 sk_sp<GrTexture> GrResourceProvider::createTexture(SkISize dimensions, in createTexture()
92 sk_sp<GrTexture> GrResourceProvider::getExactScratch(SkISize dimensions, in getExactScratch()
99 sk_sp<GrTexture> tex(this->findAndRefScratchTexture(dimensions, format, renderable, in getExactScratch()
109 sk_sp<GrTexture> GrResourceProvider::createTexture(SkISize dimensions, in createTexture()
145 sk_sp<GrTexture> GrResourceProvider::createCompressedTexture(SkISize dimensions, in createCompressedTexture()
159 sk_sp<GrTexture> GrResourceProvider::createTexture(SkISize dimensions, in createTexture()
181 sk_sp<GrTexture> tex = in createTexture()
221 sk_sp<GrTexture> GrResourceProvider::createApproxTexture(SkISize dimensions, in createApproxTexture()
253 sk_sp<GrTexture> GrResourceProvider::findAndRefScratchTexture(const GrScratchKey& key) { in findAndRefScratchTexture()
261 return sk_sp<GrTexture>(surface->asTexture()); in findAndRefScratchTexture()
[all …]
/external/skqp/src/gpu/
DGrTexture.cpp22 void GrTexture::markMipMapsDirty() { in markMipMapsDirty()
28 void GrTexture::markMipMapsClean() { in markMipMapsClean()
33 size_t GrTexture::onGpuMemorySize() const { in onGpuMemorySize()
39 GrTexture::GrTexture(GrGpu* gpu, const GrSurfaceDesc& desc, GrTextureType textureType, in GrTexture() function in GrTexture
49 bool GrTexture::StealBackendTexture(sk_sp<GrTexture> texture, in StealBackendTexture()
79 void GrTexture::computeScratchKey(GrScratchKey* key) const { in computeScratchKey()
DGrTexturePriv.h60 GrTexturePriv(GrTexture* texture) : fTexture(texture) { } in GrTexturePriv()
68 GrTexture* fTexture;
70 friend class GrTexture; // to construct/copy this type. variable
73 inline GrTexturePriv GrTexture::texturePriv() { return GrTexturePriv(this); } in texturePriv()
75 inline const GrTexturePriv GrTexture::texturePriv () const { in texturePriv()
76 return GrTexturePriv(const_cast<GrTexture*>(this)); in texturePriv()
DGrResourceProvider.h27 class GrTexture; variable
82 sk_sp<GrTexture> createApproxTexture(const GrSurfaceDesc&, Flags);
86 sk_sp<GrTexture> createTexture(const GrSurfaceDesc&, SkBudgeted, Flags = Flags::kNone);
88 sk_sp<GrTexture> createTexture(const GrSurfaceDesc&, SkBudgeted, const GrMipLevel texels[],
92 sk_sp<GrTexture> createTexture(const GrSurfaceDesc&, SkBudgeted, SkBackingFit,
109 sk_sp<GrTexture> wrapBackendTexture(const GrBackendTexture& tex, GrWrapOwnership,
117 sk_sp<GrTexture> wrapRenderableBackendTexture(const GrBackendTexture& tex,
267 sk_sp<GrTexture> refScratchTexture(const GrSurfaceDesc&, Flags);
273 sk_sp<GrTexture> getExactScratch(const GrSurfaceDesc&, SkBudgeted, Flags);
DGrGpu.h41 class GrTexture; variable
96 sk_sp<GrTexture> createTexture(const GrSurfaceDesc&, SkBudgeted, const GrMipLevel texels[],
102 sk_sp<GrTexture> createTexture(const GrSurfaceDesc& desc, SkBudgeted);
107 sk_sp<GrTexture> wrapBackendTexture(const GrBackendTexture&, GrWrapOwnership, GrWrapCacheable,
113 sk_sp<GrTexture> wrapRenderableBackendTexture(const GrBackendTexture&, int sampleCnt,
154 bool regenerateMipMapLevels(GrTexture*);
219 bool transferPixels(GrTexture* texture, int left, int top, int width, int height,
258 virtual GrGpuTextureCommandBuffer* getCommandBuffer(GrTexture*, GrSurfaceOrigin) = 0;
284 virtual sk_sp<GrSemaphore> prepareTextureForCrossContextUsage(GrTexture*) = 0;
457 virtual sk_sp<GrTexture> onCreateTexture(const GrSurfaceDesc&, SkBudgeted,
[all …]
DGrBackendTextureImageGenerator.h31 static std::unique_ptr<SkImageGenerator> Make(sk_sp<GrTexture>, GrSurfaceOrigin,
47 GrBackendTextureImageGenerator(const SkImageInfo& info, GrTexture*, GrSurfaceOrigin,
55 RefHelper(GrTexture* texture, uint32_t owningContextID) in RefHelper()
64 GrTexture* fOriginalTexture;
70 GrTexture* fBorrowedTexture;
DGrResourceProvider.cpp64 sk_sp<GrTexture> GrResourceProvider::createTexture(const GrSurfaceDesc& desc, SkBudgeted budgeted, in createTexture()
82 sk_sp<GrTexture> GrResourceProvider::getExactScratch(const GrSurfaceDesc& desc, in getExactScratch()
84 sk_sp<GrTexture> tex(this->refScratchTexture(desc, flags)); in getExactScratch()
92 sk_sp<GrTexture> GrResourceProvider::createTexture(const GrSurfaceDesc& desc, in createTexture()
116 sk_sp<GrTexture> tex = (SkBackingFit::kApprox == fit) in createTexture()
142 sk_sp<GrTexture> GrResourceProvider::createTexture(const GrSurfaceDesc& desc, SkBudgeted budgeted, in createTexture()
155 sk_sp<GrTexture> tex = this->getExactScratch(desc, budgeted, flags); in createTexture()
164 sk_sp<GrTexture> GrResourceProvider::createApproxTexture(const GrSurfaceDesc& desc, in createApproxTexture()
203 sk_sp<GrTexture> GrResourceProvider::refScratchTexture(const GrSurfaceDesc& desc, Flags flags) { in refScratchTexture()
229 return sk_sp<GrTexture>(surface->asTexture()); in refScratchTexture()
[all …]
DGrGpu.cpp105 sk_sp<GrTexture> GrGpu::createTexture(const GrSurfaceDesc& origDesc, SkBudgeted budgeted, in createTexture()
131 sk_sp<GrTexture> tex = this->onCreateTexture(desc, budgeted, texels, mipLevelCount); in createTexture()
146 sk_sp<GrTexture> GrGpu::createTexture(const GrSurfaceDesc& desc, SkBudgeted budgeted) { in createTexture()
150 sk_sp<GrTexture> GrGpu::wrapBackendTexture(const GrBackendTexture& backendTex, in wrapBackendTexture()
166 sk_sp<GrTexture> GrGpu::wrapRenderableBackendTexture(const GrBackendTexture& backendTex, in wrapRenderableBackendTexture()
182 sk_sp<GrTexture> tex = in wrapRenderableBackendTexture()
305 bool GrGpu::transferPixels(GrTexture* texture, int left, int top, int width, int height, in transferPixels()
334 bool GrGpu::regenerateMipMapLevels(GrTexture* texture) { in regenerateMipMapLevels()
371 GrTexture* texture = surface->asTexture(); in didWriteToSurface()
/external/skqp/include/gpu/
DGrTexture.h22 class SK_API GrTexture : virtual public GrSurface {
24 GrTexture* asTexture() override { return this; } in asTexture()
25 const GrTexture* asTexture() const override { return this; } in asTexture()
42 static bool StealBackendTexture(sk_sp<GrTexture>,
80 GrTexture(GrGpu*, const GrSurfaceDesc&, GrTextureType, GrMipMapsStatus);
/external/skqp/src/gpu/mock/
DGrMockGpu.h32 GrGpuTextureCommandBuffer* getCommandBuffer(GrTexture*, GrSurfaceOrigin) override;
46 sk_sp<GrSemaphore> prepareTextureForCrossContextUsage(GrTexture*) override { return nullptr; } in prepareTextureForCrossContextUsage() argument
59 sk_sp<GrTexture> onCreateTexture(const GrSurfaceDesc&, SkBudgeted, const GrMipLevel[],
62 sk_sp<GrTexture> onWrapBackendTexture(const GrBackendTexture&, GrWrapOwnership, GrWrapCacheable,
65 sk_sp<GrTexture> onWrapRenderableBackendTexture(const GrBackendTexture&,
88 bool onTransferPixels(GrTexture* texture, int left, int top, int width, int height, GrColorType, in onTransferPixels()
99 bool onRegenerateMipMapLevels(GrTexture*) override { return true; } in onRegenerateMipMapLevels() argument
DGrMockGpu.cpp62 GrGpuTextureCommandBuffer* GrMockGpu::getCommandBuffer(GrTexture* texture, GrSurfaceOrigin origin) { in getCommandBuffer()
88 sk_sp<GrTexture> GrMockGpu::onCreateTexture(const GrSurfaceDesc& desc, SkBudgeted budgeted, in onCreateTexture()
103 return sk_sp<GrTexture>(new GrMockTextureRenderTarget(this, budgeted, desc, mipMapsStatus, in onCreateTexture()
106 return sk_sp<GrTexture>(new GrMockTexture(this, budgeted, desc, mipMapsStatus, texInfo)); in onCreateTexture()
109 sk_sp<GrTexture> GrMockGpu::onWrapBackendTexture(const GrBackendTexture& tex, in onWrapBackendTexture()
123 return sk_sp<GrTexture>(new GrMockTexture(this, desc, mipMapsStatus, info, wrapType, ioType)); in onWrapBackendTexture()
126 sk_sp<GrTexture> GrMockGpu::onWrapRenderableBackendTexture(const GrBackendTexture& tex, in onWrapRenderableBackendTexture()
147 return sk_sp<GrTexture>( in onWrapRenderableBackendTexture()
/external/skia/src/gpu/mock/
DGrMockGpu.h45 std::unique_ptr<GrSemaphore> prepareTextureForCrossContextUsage(GrTexture*) override { in prepareTextureForCrossContextUsage() argument
59 sk_sp<GrTexture> onCreateTexture(SkISize,
68 sk_sp<GrTexture> onCreateCompressedTexture(SkISize dimensions,
75 sk_sp<GrTexture> onWrapBackendTexture(const GrBackendTexture&,
79 sk_sp<GrTexture> onWrapCompressedBackendTexture(const GrBackendTexture&,
83 sk_sp<GrTexture> onWrapRenderableBackendTexture(const GrBackendTexture&,
106 bool onTransferPixelsTo(GrTexture* texture, int left, int top, int width, int height, in onTransferPixelsTo()
122 bool onRegenerateMipMapLevels(GrTexture*) override { return true; } in onRegenerateMipMapLevels() argument
DGrMockGpu.cpp94 sk_sp<GrTexture> GrMockGpu::onCreateTexture(SkISize dimensions, in onCreateTexture()
117 return sk_sp<GrTexture>(new GrMockTextureRenderTarget(this, budgeted, dimensions, in onCreateTexture()
121 return sk_sp<GrTexture>( in onCreateTexture()
126 sk_sp<GrTexture> GrMockGpu::onCreateCompressedTexture(SkISize dimensions, in onCreateCompressedTexture()
149 return sk_sp<GrTexture>( in onCreateCompressedTexture()
153 sk_sp<GrTexture> GrMockGpu::onWrapBackendTexture(const GrBackendTexture& tex, in onWrapBackendTexture()
168 return sk_sp<GrTexture>(new GrMockTexture(this, tex.dimensions(), isProtected, mipmapStatus, in onWrapBackendTexture()
172 sk_sp<GrTexture> GrMockGpu::onWrapCompressedBackendTexture(const GrBackendTexture& tex, in onWrapCompressedBackendTexture()
178 sk_sp<GrTexture> GrMockGpu::onWrapRenderableBackendTexture(const GrBackendTexture& tex, in onWrapRenderableBackendTexture()
193 return sk_sp<GrTexture>(new GrMockTextureRenderTarget(this, tex.dimensions(), sampleCnt, in onWrapRenderableBackendTexture()
/external/skqp/src/gpu/mtl/
DGrMtlGpu.h95 GrGpuTextureCommandBuffer* getCommandBuffer(GrTexture*, GrSurfaceOrigin) override;
113 sk_sp<GrSemaphore> prepareTextureForCrossContextUsage(GrTexture*) override { return nullptr; } in prepareTextureForCrossContextUsage() argument
132 sk_sp<GrTexture> onCreateTexture(const GrSurfaceDesc& desc, SkBudgeted budgeted,
135 sk_sp<GrTexture> onWrapBackendTexture(const GrBackendTexture&, GrWrapOwnership, GrWrapCacheable,
138 sk_sp<GrTexture> onWrapRenderableBackendTexture(const GrBackendTexture&, int sampleCnt,
154 bool onTransferPixels(GrTexture*, in onTransferPixels() argument
161 bool onRegenerateMipMapLevels(GrTexture*) override { return false; } in onRegenerateMipMapLevels() argument
/external/skia/src/gpu/dawn/
DGrDawnGpu.h92 std::unique_ptr<GrSemaphore> prepareTextureForCrossContextUsage(GrTexture*) override;
111 sk_sp<GrTexture> onCreateTexture(SkISize,
120 sk_sp<GrTexture> onCreateCompressedTexture(SkISize dimensions,
127 sk_sp<GrTexture> onWrapBackendTexture(const GrBackendTexture&,
131 sk_sp<GrTexture> onWrapCompressedBackendTexture(const GrBackendTexture&,
134 sk_sp<GrTexture> onWrapRenderableBackendTexture(const GrBackendTexture&,
172 bool onTransferPixelsTo(GrTexture*, int left, int top, int width, int height,
183 bool onRegenerateMipMapLevels(GrTexture*) override;
/external/skia/src/gpu/mtl/
DGrMtlGpu.h106 std::unique_ptr<GrSemaphore> prepareTextureForCrossContextUsage(GrTexture*) override;
148 sk_sp<GrTexture> onCreateTexture(SkISize,
156 sk_sp<GrTexture> onCreateCompressedTexture(SkISize dimensions,
163 sk_sp<GrTexture> onWrapBackendTexture(const GrBackendTexture&,
168 sk_sp<GrTexture> onWrapCompressedBackendTexture(const GrBackendTexture&,
172 sk_sp<GrTexture> onWrapRenderableBackendTexture(const GrBackendTexture&,
191 bool onTransferPixelsTo(GrTexture*, int left, int top, int width, int height,
198 bool onRegenerateMipMapLevels(GrTexture*) override;
/external/skia/src/gpu/d3d/
DGrD3DGpu.h112 std::unique_ptr<GrSemaphore> prepareTextureForCrossContextUsage(GrTexture*) override { in prepareTextureForCrossContextUsage() argument
134 sk_sp<GrTexture> onCreateTexture(SkISize,
143 sk_sp<GrTexture> onCreateCompressedTexture(SkISize dimensions,
150 sk_sp<GrTexture> onWrapBackendTexture(const GrBackendTexture&,
154 sk_sp<GrTexture> onWrapCompressedBackendTexture(const GrBackendTexture&,
158 sk_sp<GrTexture> onWrapRenderableBackendTexture(const GrBackendTexture&,
177 bool onTransferPixelsTo(GrTexture* texture, int left, int top, int width, int height, in onTransferPixelsTo()
191 bool onRegenerateMipMapLevels(GrTexture*) override;
/external/skqp/src/gpu/vk/
DGrVkGpu.h100 GrGpuTextureCommandBuffer* getCommandBuffer(GrTexture*, GrSurfaceOrigin) override;
120 bool onRegenerateMipMapLevels(GrTexture* tex) override;
160 sk_sp<GrSemaphore> prepareTextureForCrossContextUsage(GrTexture*) override;
184 sk_sp<GrTexture> onCreateTexture(const GrSurfaceDesc&, SkBudgeted, const GrMipLevel[],
187 sk_sp<GrTexture> onWrapBackendTexture(const GrBackendTexture&, GrWrapOwnership, GrWrapCacheable,
189 sk_sp<GrTexture> onWrapRenderableBackendTexture(const GrBackendTexture&,
210 bool onTransferPixels(GrTexture*, int left, int top, int width, int height, GrColorType,
DGrVkTexture.h19 class GrVkTexture : public GrTexture, public virtual GrVkImage {
75 GrTexture::IdleProc* fIdleProc = nullptr;
78 typedef GrTexture INHERITED;
/external/skqp/tests/
DLazyProxyTest.cpp86 return sk_sp<GrTexture>(); in Op()
91 return sk_sp<GrTexture>(); in Op()
97 sk_sp<GrTexture> texture = rp->createTexture(desc, SkBudgeted::kYes); in Op()
135 return sk_sp<GrTexture>(); in ClipFP()
257 return sk_sp<GrTexture>(); in __anon828e393b0302()
260 return sk_sp<GrTexture>(); in __anon828e393b0302()
323 return sk_sp<GrTexture>(); in LazyFailedInstantiationTestOp()
327 return sk_sp<GrTexture>(); in LazyFailedInstantiationTestOp()
466 return sk_sp<GrTexture>(); in __anon828e393b0502()
469 sk_sp<GrTexture> texture = in __anon828e393b0502()
[all …]

12345678