Home
last modified time | relevance | path

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

123456789

/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()
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);
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()
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/skia/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()
DGrResourceProvider.h27 class GrTexture; variable
79 sk_sp<GrTexture> createApproxTexture(const GrSurfaceDesc&, Flags);
83 sk_sp<GrTexture> createTexture(const GrSurfaceDesc&, SkBudgeted, Flags = Flags::kNone);
85 sk_sp<GrTexture> createTexture(const GrSurfaceDesc&, SkBudgeted, const GrMipLevel texels[],
89 sk_sp<GrTexture> createTexture(const GrSurfaceDesc&, SkBudgeted, SkBackingFit,
106 sk_sp<GrTexture> wrapBackendTexture(const GrBackendTexture& tex, GrWrapOwnership,
114 sk_sp<GrTexture> wrapRenderableBackendTexture(const GrBackendTexture& tex,
264 sk_sp<GrTexture> refScratchTexture(const GrSurfaceDesc&, Flags);
270 sk_sp<GrTexture> getExactScratch(const GrSurfaceDesc&, SkBudgeted, Flags);
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()
DGrGpu.h43 class GrTexture; variable
98 sk_sp<GrTexture> createTexture(const GrSurfaceDesc&, SkBudgeted, const GrMipLevel texels[],
104 sk_sp<GrTexture> createTexture(const GrSurfaceDesc& desc, SkBudgeted);
109 sk_sp<GrTexture> wrapBackendTexture(const GrBackendTexture&, GrWrapOwnership, GrWrapCacheable,
115 sk_sp<GrTexture> wrapRenderableBackendTexture(const GrBackendTexture&, int sampleCnt,
156 bool regenerateMipMapLevels(GrTexture*);
226 bool transferPixels(GrTexture* texture, int left, int top, int width, int height,
281 virtual GrGpuTextureCommandBuffer* getCommandBuffer(GrTexture*, GrSurfaceOrigin) = 0;
311 virtual sk_sp<GrSemaphore> prepareTextureForCrossContextUsage(GrTexture*) = 0;
495 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.cpp45 sk_sp<GrTexture> GrResourceProvider::createTexture(const GrSurfaceDesc& desc, SkBudgeted budgeted, in createTexture()
63 sk_sp<GrTexture> GrResourceProvider::getExactScratch(const GrSurfaceDesc& desc, in getExactScratch()
65 sk_sp<GrTexture> tex(this->refScratchTexture(desc, flags)); in getExactScratch()
73 sk_sp<GrTexture> GrResourceProvider::createTexture(const GrSurfaceDesc& desc, in createTexture()
97 sk_sp<GrTexture> tex = (SkBackingFit::kApprox == fit) in createTexture()
123 sk_sp<GrTexture> GrResourceProvider::createTexture(const GrSurfaceDesc& desc, SkBudgeted budgeted, in createTexture()
136 sk_sp<GrTexture> tex = this->getExactScratch(desc, budgeted, flags); in createTexture()
145 sk_sp<GrTexture> GrResourceProvider::createApproxTexture(const GrSurfaceDesc& desc, in createApproxTexture()
184 sk_sp<GrTexture> GrResourceProvider::refScratchTexture(const GrSurfaceDesc& desc, Flags flags) { in refScratchTexture()
210 return sk_sp<GrTexture>(surface->asTexture()); in refScratchTexture()
[all …]
/external/skia/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>,
70 GrTexture(GrGpu*, const GrSurfaceDesc&, GrTextureType, GrMipMapsStatus);
/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.h32 GrGpuTextureCommandBuffer* getCommandBuffer(GrTexture*, GrSurfaceOrigin) override;
46 sk_sp<GrSemaphore> prepareTextureForCrossContextUsage(GrTexture*) override { return nullptr; } in prepareTextureForCrossContextUsage() argument
65 sk_sp<GrTexture> onCreateTexture(const GrSurfaceDesc&, SkBudgeted, const GrMipLevel[],
68 sk_sp<GrTexture> onWrapBackendTexture(const GrBackendTexture&, GrWrapOwnership, GrWrapCacheable,
71 sk_sp<GrTexture> onWrapRenderableBackendTexture(const GrBackendTexture&,
94 bool onTransferPixels(GrTexture* texture, int left, int top, int width, int height, GrColorType, in onTransferPixels()
105 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()
DGrMockTexture.h17 class GrMockTexture : public GrTexture {
70 typedef GrTexture INHERITED;
148 GrTexture* asTexture() override { return this; } in asTexture()
150 const GrTexture* asTexture() const override { return this; } in asTexture()
159 void willRemoveLastRefOrPendingIO() override { GrTexture::willRemoveLastRefOrPendingIO(); } in willRemoveLastRefOrPendingIO()
/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/mtl/
DGrMtlGpu.h99 GrGpuTextureCommandBuffer* getCommandBuffer(GrTexture*, GrSurfaceOrigin) override;
117 sk_sp<GrSemaphore> prepareTextureForCrossContextUsage(GrTexture*) override { return nullptr; } in prepareTextureForCrossContextUsage() argument
142 sk_sp<GrTexture> onCreateTexture(const GrSurfaceDesc& desc, SkBudgeted budgeted,
145 sk_sp<GrTexture> onWrapBackendTexture(const GrBackendTexture&, GrWrapOwnership, GrWrapCacheable,
148 sk_sp<GrTexture> onWrapRenderableBackendTexture(const GrBackendTexture&, int sampleCnt,
165 bool onTransferPixels(GrTexture*, in onTransferPixels() argument
172 bool onRegenerateMipMapLevels(GrTexture*) override { return false; } in onRegenerateMipMapLevels() argument
/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,
/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 __anon8f867ff40302()
260 return sk_sp<GrTexture>(); in __anon8f867ff40302()
323 return sk_sp<GrTexture>(); in LazyFailedInstantiationTestOp()
327 return sk_sp<GrTexture>(); in LazyFailedInstantiationTestOp()
466 return sk_sp<GrTexture>(); in __anon8f867ff40502()
469 sk_sp<GrTexture> texture = in __anon8f867ff40502()
[all …]
/external/skia/src/gpu/vk/
DGrVkGpu.h106 GrGpuTextureCommandBuffer* getCommandBuffer(GrTexture*, GrSurfaceOrigin) override;
128 bool onRegenerateMipMapLevels(GrTexture* tex) override;
168 sk_sp<GrSemaphore> prepareTextureForCrossContextUsage(GrTexture*) override;
192 sk_sp<GrTexture> onCreateTexture(const GrSurfaceDesc&, SkBudgeted, const GrMipLevel[],
195 sk_sp<GrTexture> onWrapBackendTexture(const GrBackendTexture&, GrWrapOwnership, GrWrapCacheable,
197 sk_sp<GrTexture> onWrapRenderableBackendTexture(const GrBackendTexture&,
218 bool onTransferPixels(GrTexture*, int left, int top, int width, int height, GrColorType,

123456789