Home
last modified time | relevance | path

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

12345

/external/skia/src/gpu/
DGrTexturePriv.h38 return GrTexture::kValid_MipMapsStatus != fTexture->fMipMapsStatus; in mipMapsAreDirty()
42 return GrTexture::kNotAllocated_MipMapsStatus != fTexture->fMipMapsStatus; in hasMipMaps()
83 GrTexturePriv(GrTexture* texture) : fTexture(texture) { } in GrTexturePriv()
91 GrTexture* fTexture;
93 friend class GrTexture; // to construct/copy this type. variable
96 inline GrTexturePriv GrTexture::texturePriv() { return GrTexturePriv(this); } in texturePriv()
98 inline const GrTexturePriv GrTexture::texturePriv () const { in texturePriv()
99 return GrTexturePriv(const_cast<GrTexture*>(this)); in texturePriv()
DGrResourceProvider.h50 GrTexture* createMipMappedTexture(const GrSurfaceDesc& desc, SkBudgeted budgeted,
65 GrTexture* createTexture(const GrSurfaceDesc& desc, SkBudgeted budgeted, const void* srcData,
69 GrTexture* createTexture(const GrSurfaceDesc& desc, SkBudgeted budgeted, uint32_t flags = 0) {
87 GrTexture* createApproxTexture(const GrSurfaceDesc&, uint32_t flags);
100 sk_sp<GrTexture> wrapBackendTexture(const GrBackendTextureDesc& desc,
252 GrTexture* internalCreateApproxTexture(const GrSurfaceDesc& desc, uint32_t scratchTextureFlags);
254 GrTexture* findAndRefTextureByUniqueKey(const GrUniqueKey& key);
255 void assignUniqueKeyToTexture(const GrUniqueKey& key, GrTexture* texture) { in assignUniqueKeyToTexture()
260 GrTexture* refScratchTexture(const GrSurfaceDesc&, uint32_t scratchTextureFlags);
DGrTexture.cpp21 void GrTexture::dirtyMipMaps(bool mipMapsDirty) { in dirtyMipMaps()
38 size_t GrTexture::onGpuMemorySize() const { in onGpuMemorySize()
42 void GrTexture::validateDesc() const { in validateDesc()
72 GrTexture::GrTexture(GrGpu* gpu, const GrSurfaceDesc& desc, GrSLType samplerType, in GrTexture() function in GrTexture
88 void GrTexture::computeScratchKey(GrScratchKey* key) const { in computeScratchKey()
DGrResourceProvider.cpp50 GrTexture* GrResourceProvider::createMipMappedTexture(const GrSurfaceDesc& desc, in createMipMappedTexture()
77 if (GrTexture* texture = this->refScratchTexture(desc, flags)) { in createMipMappedTexture()
96 GrTexture* texture = fGpu->createTexture(desc, budgeted, texelsShallowCopy); in createMipMappedTexture()
103 GrTexture* GrResourceProvider::createTexture(const GrSurfaceDesc& desc, SkBudgeted budgeted, in createTexture()
117 GrTexture* GrResourceProvider::createApproxTexture(const GrSurfaceDesc& desc, uint32_t flags) { in createApproxTexture()
123 GrTexture* GrResourceProvider::internalCreateApproxTexture(const GrSurfaceDesc& desc, in internalCreateApproxTexture()
137 GrTexture* GrResourceProvider::refScratchTexture(const GrSurfaceDesc& inDesc, in refScratchTexture()
183 sk_sp<GrTexture> GrResourceProvider::wrapBackendTexture(const GrBackendTextureDesc& desc, in wrapBackendTexture()
213 GrTexture* GrResourceProvider::findAndRefTextureByUniqueKey(const GrUniqueKey& key) { in findAndRefTextureByUniqueKey()
217 GrTexture* texture = static_cast<GrSurface*>(resource)->asTexture(); in findAndRefTextureByUniqueKey()
[all …]
DGrProcessor.cpp209 GrProcessor::TextureSampler::TextureSampler(GrTexture* texture, const GrSamplerParams& params) { in TextureSampler()
213 GrProcessor::TextureSampler::TextureSampler(GrTexture* texture, in TextureSampler()
234 void GrProcessor::TextureSampler::reset(GrTexture* texture, in reset()
244 void GrProcessor::TextureSampler::reset(GrTexture* texture, in reset()
261 GrTexture* texture = proxy->instantiate(resourceProvider); in reset()
276 GrTexture* texture = proxy->instantiate(resourceProvider); in reset()
286 GrProcessor::ImageStorageAccess::ImageStorageAccess(sk_sp<GrTexture> texture, GrIOType ioType, in ImageStorageAccess()
DGrXferProcessor.h66 DstTexture(GrTexture* texture, const SkIPoint& offset) in DstTexture()
85 GrTexture* texture() const { return fTexture.get(); } in texture()
87 void setTexture(sk_sp<GrTexture> texture) { in setTexture()
95 sk_sp<GrTexture> fTexture;
169 const GrTexture* getDstTexture() const { return fDstTexture.texture(); } in getDstTexture()
DGrGpu.h40 class GrTexture; variable
104 GrTexture* createTexture(const GrSurfaceDesc& desc, SkBudgeted budgeted,
110 GrTexture* createTexture(const GrSurfaceDesc& desc, SkBudgeted budgeted) { in createTexture()
115 GrTexture* createTexture(const GrSurfaceDesc& desc, SkBudgeted budgeted, const void* level0Data, in createTexture()
127 sk_sp<GrTexture> wrapBackendTexture(const GrBackendTextureDesc&, GrWrapOwnership);
538 virtual GrTexture* onCreateTexture(const GrSurfaceDesc& desc,
541 virtual GrTexture* onCreateCompressedTexture(const GrSurfaceDesc& desc,
545 virtual sk_sp<GrTexture> onWrapBackendTexture(const GrBackendTextureDesc&, GrWrapOwnership) = 0;
DGrTextureContext.cpp92 sk_sp<GrTexture> tex(sk_ref_sp(fTextureProxy->instantiate(fContext->resourceProvider()))); in onCopy()
125 sk_sp<GrTexture> tex(sk_ref_sp(fTextureProxy->instantiate(fContext->resourceProvider()))); in onReadPixels()
148 sk_sp<GrTexture> tex(sk_ref_sp(fTextureProxy->instantiate(fContext->resourceProvider()))); in onWritePixels()
DGrSurface.cpp173 const GrTexture* thisTex = this->asTexture(); in hasPendingRead()
185 const GrTexture* thisTex = this->asTexture(); in hasPendingWrite()
197 const GrTexture* thisTex = this->asTexture(); in hasPendingIO()
/external/skia/include/gpu/
DGrProcessor.h207 TextureSampler(GrTexture*, const GrSamplerParams&);
208 explicit TextureSampler(GrTexture*,
212 void reset(GrTexture*, const GrSamplerParams&,
214 void reset(GrTexture*,
240 GrTexture* texture() const { return fTexture.get(); } in texture()
251 typedef GrTGpuResourceRef<GrTexture> ProgramTexture;
314 ImageStorageAccess(sk_sp<GrTexture> texture, GrIOType ioType, GrSLMemoryModel, GrSLRestrict,
323 GrTexture* texture() const { return fTexture.get(); } in texture()
336 GrTGpuResourceRef<GrTexture> fTexture;
DGrTexture.h20 class GrTexture : virtual public GrSurface {
22 GrTexture* asTexture() override { return this; } in asTexture()
23 const GrTexture* asTexture() const override { return this; } in asTexture()
49 GrTexture(GrGpu*, const GrSurfaceDesc&, GrSLType samplerType,
DGrCoordTransform.h38 GrCoordTransform(const GrTexture* texture, GrSamplerParams::FilterMode filter) { in GrCoordTransform()
55 GrCoordTransform(const SkMatrix& m, const GrTexture* texture, in GrCoordTransform()
78 void reset(const SkMatrix&, const GrTexture*, GrSamplerParams::FilterMode filter,
130 const GrTexture* texture() const { return fTexture; } in texture()
142 const GrTexture* fTexture;
DGrGpuResourceRef.h114 template<> class GrTGpuResourceRef<GrTexture> : public GrGpuResourceRef {
118 GrTGpuResourceRef(GrTexture* texture, GrIOType ioType) : INHERITED(texture, ioType) { } in GrTGpuResourceRef()
120 GrTexture* get() const { in get()
129 void set(GrTexture* texture, GrIOType ioType) { this->setResource(texture, ioType); } in set()
DGrSurface.h20 class GrTexture; variable
60 virtual GrTexture* asTexture() { return NULL; } in asTexture()
61 virtual const GrTexture* asTexture() const { return NULL; } in asTexture()
DGrProcessorUnitTest.h24 class GrTexture; variable
52 GrTexture* const textures[2]) in GrProcessorTestData()
75 class GrTexture; variable
/external/skia/src/gpu/effects/
DGrSingleTextureEffect.h16 class GrTexture; variable
35 GrSingleTextureEffect(GrTexture*, sk_sp<GrColorSpaceXform>, const SkMatrix&,
38 GrSingleTextureEffect(GrTexture*, sk_sp<GrColorSpaceXform>, const SkMatrix&,
40 GrSingleTextureEffect(GrTexture*,
DGrSimpleTextureEffect.h24 static sk_sp<GrFragmentProcessor> Make(GrTexture* tex, in Make()
33 static sk_sp<GrFragmentProcessor> Make(GrTexture* tex, in Make()
41 static sk_sp<GrFragmentProcessor> Make(GrTexture* tex, in Make()
88 GrSimpleTextureEffect(GrTexture* texture, in GrSimpleTextureEffect()
97 GrSimpleTextureEffect(GrTexture* texture, in GrSimpleTextureEffect()
DGrSingleTextureEffect.cpp12 GrSingleTextureEffect::GrSingleTextureEffect(GrTexture* texture, in GrSingleTextureEffect()
23 GrSingleTextureEffect::GrSingleTextureEffect(GrTexture* texture, in GrSingleTextureEffect()
36 GrSingleTextureEffect::GrSingleTextureEffect(GrTexture* texture, in GrSingleTextureEffect()
DGrConfigConversionEffect.h33 static sk_sp<GrFragmentProcessor> Make(GrTexture*, PMConversion, const SkMatrix&);
51 GrConfigConversionEffect(GrTexture*, PMConversion, const SkMatrix& matrix);
/external/skia/tests/
DProcessorTest.cpp50 Image(sk_sp<GrTexture> texture, GrIOType ioType) : fTexture(texture), fIOType(ioType) {} in Image()
51 sk_sp<GrTexture> fTexture;
149 sk_sp<GrTexture> texture2( in DEF_GPUTEST_FOR_ALL_CONTEXTS()
151 sk_sp<GrTexture> texture3( in DEF_GPUTEST_FOR_ALL_CONTEXTS()
153 sk_sp<GrTexture> texture4( in DEF_GPUTEST_FOR_ALL_CONTEXTS()
309 sk_sp<GrTexture> tex0(context->resourceProvider()->createTexture( in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
320 sk_sp<GrTexture> tex1(context->resourceProvider()->createTexture(desc, SkBudgeted::kYes, in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
322 GrTexture* textures[] = {tex0.get(), tex1.get()}; in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
DImageStorageTest.cpp23 static sk_sp<GrFragmentProcessor> Make(sk_sp<GrTexture> texture, GrSLMemoryModel mm, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
31 TestFP(sk_sp<GrTexture> texture, GrSLMemoryModel mm, GrSLRestrict restrict) in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
130 sk_sp<GrTexture> imageStorageTexture(context->resourceProvider()->createTexture( in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
/external/skia/src/gpu/vk/
DGrVkTexture.h19 class GrVkTexture : public GrTexture, public virtual GrVkImage {
57 typedef GrTexture INHERITED;
/external/skia/src/gpu/gl/
DGrGLTexture.h18 class GrGLTexture : public GrTexture {
84 typedef GrTexture INHERITED;
/external/skia/src/image/
DSkImage_Gpu.h38 GrTexture* peekTexture() const override { in peekTexture()
54 GrTexture* onGetTexture() const override;
DSkImage_Base.h51 virtual GrTexture* peekTexture() const { return nullptr; } in peekTexture()
65 virtual GrTexture* onGetTexture() const { return nullptr; } in onGetTexture()

12345