Home
last modified time | relevance | path

Searched refs:GrTextureType (Results 1 – 25 of 66) sorted by relevance

123

/external/skqp/src/gpu/gl/
DGrGLTexture.cpp18 GrTextureType GrGLTexture::TextureTypeFromTarget(GrGLenum target) { in TextureTypeFromTarget()
21 return GrTextureType::k2D; in TextureTypeFromTarget()
23 return GrTextureType::kRectangle; in TextureTypeFromTarget()
25 return GrTextureType::kExternal; in TextureTypeFromTarget()
28 return GrTextureType::k2D; in TextureTypeFromTarget()
31 static inline GrGLenum target_from_texture_type(GrTextureType type) { in target_from_texture_type()
33 case GrTextureType::k2D: in target_from_texture_type()
35 case GrTextureType::kRectangle: in target_from_texture_type()
37 case GrTextureType::kExternal: in target_from_texture_type()
/external/skia/src/gpu/gl/
DGrGLTexture.cpp18 GrTextureType GrGLTexture::TextureTypeFromTarget(GrGLenum target) { in TextureTypeFromTarget()
21 return GrTextureType::k2D; in TextureTypeFromTarget()
23 return GrTextureType::kRectangle; in TextureTypeFromTarget()
25 return GrTextureType::kExternal; in TextureTypeFromTarget()
28 return GrTextureType::k2D; in TextureTypeFromTarget()
31 static inline GrGLenum target_from_texture_type(GrTextureType type) { in target_from_texture_type()
33 case GrTextureType::k2D: in target_from_texture_type()
35 case GrTextureType::kRectangle: in target_from_texture_type()
37 case GrTextureType::kExternal: in target_from_texture_type()
/external/skia/src/gpu/
DGrPrimitiveProcessor.cpp48 static inline GrSamplerState::Filter clamp_filter(GrTextureType type, in clamp_filter()
56 GrPrimitiveProcessor::TextureSampler::TextureSampler(GrTextureType textureType, in TextureSampler()
63 GrPrimitiveProcessor::TextureSampler::TextureSampler(GrTextureType textureType, in TextureSampler()
70 void GrPrimitiveProcessor::TextureSampler::reset(GrTextureType textureType, in reset()
80 SkASSERT(!fExtraSamplerKey || textureType == GrTextureType::kExternal); in reset()
83 void GrPrimitiveProcessor::TextureSampler::reset(GrTextureType textureType, in reset()
DGrPrimitiveProcessor.h258 TextureSampler(GrTextureType, GrPixelConfig, const GrSamplerState&, uint32_t extraSamplerKey);
260 explicit TextureSampler(GrTextureType, GrPixelConfig,
267 void reset(GrTextureType, GrPixelConfig, const GrSamplerState&, uint32_t extraSamplerKey = 0);
268 void reset(GrTextureType, GrPixelConfig,
272 GrTextureType textureType() const { return fTextureType; } in textureType()
283 GrTextureType fTextureType = GrTextureType::k2D;
DGrProgramDesc.cpp25 static inline uint16_t texture_type_key(GrTextureType type) { in texture_type_key()
28 case GrTextureType::k2D: in texture_type_key()
31 case GrTextureType::kExternal: in texture_type_key()
34 case GrTextureType::kRectangle: in texture_type_key()
42 static uint32_t sampler_key(GrTextureType textureType, GrPixelConfig config, in sampler_key()
66 SkASSERT(sampler.proxy()->textureType() == GrTextureType::kExternal); in add_sampler_keys()
88 SkASSERT(sampler.textureType() == GrTextureType::kExternal); in add_sampler_keys()
DGrBackendSurface.cpp29 fTextureType = GrTextureType::k2D; in GrBackendFormat()
32 fTextureType = GrTextureType::kRectangle; in GrBackendFormat()
35 fTextureType = GrTextureType::kExternal; in GrBackendFormat()
55 case GrTextureType::k2D: in getGLTarget()
57 case GrTextureType::kRectangle: in getGLTarget()
59 case GrTextureType::kExternal: in getGLTarget()
81 , fTextureType(GrTextureType::k2D) { in GrBackendFormat()
85 fTextureType = GrTextureType::kExternal; in GrBackendFormat()
108 , fTextureType(GrTextureType::k2D) { in GrBackendFormat()
123 , fTextureType(GrTextureType::k2D) { in GrBackendFormat()
[all …]
DGrAHardwareBufferImageGenerator.cpp113 GrTextureType textureType = GrTextureType::k2D; in makeProxy()
115 textureType = GrTextureType::kExternal; in makeProxy()
120 textureType = GrTextureType::kExternal; in makeProxy()
/external/skqp/src/gpu/
DGrPrimitiveProcessor.cpp48 static inline GrSamplerState::Filter clamp_filter(GrTextureType type, in clamp_filter()
56 GrPrimitiveProcessor::TextureSampler::TextureSampler(GrTextureType textureType, in TextureSampler()
63 GrPrimitiveProcessor::TextureSampler::TextureSampler(GrTextureType textureType, in TextureSampler()
70 void GrPrimitiveProcessor::TextureSampler::reset(GrTextureType textureType, in reset()
80 SkASSERT(!fExtraSamplerKey || textureType == GrTextureType::kExternal); in reset()
83 void GrPrimitiveProcessor::TextureSampler::reset(GrTextureType textureType, in reset()
DGrProgramDesc.cpp25 static inline uint16_t texture_type_key(GrTextureType type) { in texture_type_key()
28 case GrTextureType::k2D: in texture_type_key()
31 case GrTextureType::kExternal: in texture_type_key()
34 case GrTextureType::kRectangle: in texture_type_key()
42 static uint16_t sampler_key(GrTextureType textureType, GrPixelConfig config, in sampler_key()
68 SkASSERT(sampler.proxy()->textureType() == GrTextureType::kExternal); in add_sampler_keys()
96 SkASSERT(sampler.textureType() == GrTextureType::kExternal); in add_sampler_keys()
DGrPrimitiveProcessor.h258 TextureSampler(GrTextureType, GrPixelConfig, const GrSamplerState&, uint32_t extraSamplerKey);
260 explicit TextureSampler(GrTextureType, GrPixelConfig,
267 void reset(GrTextureType, GrPixelConfig, const GrSamplerState&, uint32_t extraSamplerKey = 0);
268 void reset(GrTextureType, GrPixelConfig,
272 GrTextureType textureType() const { return fTextureType; } in textureType()
283 GrTextureType fTextureType = GrTextureType::k2D;
DGrBackendSurface.cpp29 fTextureType = GrTextureType::k2D; in GrBackendFormat()
32 fTextureType = GrTextureType::kRectangle; in GrBackendFormat()
35 fTextureType = GrTextureType::kExternal; in GrBackendFormat()
55 case GrTextureType::k2D: in getGLTarget()
57 case GrTextureType::kRectangle: in getGLTarget()
59 case GrTextureType::kExternal: in getGLTarget()
81 , fTextureType(GrTextureType::k2D) { in GrBackendFormat()
105 , fTextureType(GrTextureType::k2D) { in GrBackendFormat()
120 , fTextureType(GrTextureType::k2D) { in GrBackendFormat()
134 copy.fTextureType = GrTextureType::k2D; in makeTexture2D()
/external/skia/include/gpu/
DGrTexture.h70 GrTexture(GrGpu*, const GrSurfaceDesc&, GrTextureType, GrMipMapsStatus);
87 GrTextureType fTextureType;
DGrBackendSurface.h73 GrTextureType textureType() const { return fTextureType; } in textureType()
129 GrTextureType fTextureType;
/external/skia/src/gpu/mtl/
DGrMtlTexture.mm20 , INHERITED(gpu, desc, GrTextureType::k2D, mipMapsStatus)
34 , INHERITED(gpu, desc, GrTextureType::k2D, mipMapsStatus)
48 , INHERITED(gpu, desc, GrTextureType::k2D, mipMapsStatus)
/external/skqp/src/gpu/mtl/
DGrMtlTexture.mm20 , INHERITED(gpu, desc, GrTextureType::k2D, mipMapsStatus)
34 , INHERITED(gpu, desc, GrTextureType::k2D, mipMapsStatus)
48 , INHERITED(gpu, desc, GrTextureType::k2D, mipMapsStatus)
/external/skqp/include/gpu/
DGrTexture.h80 GrTexture(GrGpu*, const GrSurfaceDesc&, GrTextureType, GrMipMapsStatus);
90 GrTextureType fTextureType;
DGrBackendSurface.h73 GrTextureType textureType() const { return fTextureType; } in textureType()
127 GrTextureType fTextureType;
/external/skqp/include/private/
DGrTypesPriv.h394 enum class GrTextureType { enum
550 static inline GrSLType GrSLCombinedSamplerTypeForTextureType(GrTextureType type) { in GrSLCombinedSamplerTypeForTextureType()
552 case GrTextureType::k2D: in GrSLCombinedSamplerTypeForTextureType()
554 case GrTextureType::kRectangle: in GrSLCombinedSamplerTypeForTextureType()
556 case GrTextureType::kExternal: in GrSLCombinedSamplerTypeForTextureType()
564 static inline bool GrTextureTypeHasRestrictedSampling(GrTextureType type) { in GrTextureTypeHasRestrictedSampling()
566 case GrTextureType::k2D: in GrTextureTypeHasRestrictedSampling()
568 case GrTextureType::kRectangle: in GrTextureTypeHasRestrictedSampling()
570 case GrTextureType::kExternal: in GrTextureTypeHasRestrictedSampling()
/external/skia/include/private/
DGrTypesPriv.h420 enum class GrTextureType { enum
576 static inline GrSLType GrSLCombinedSamplerTypeForTextureType(GrTextureType type) { in GrSLCombinedSamplerTypeForTextureType()
578 case GrTextureType::k2D: in GrSLCombinedSamplerTypeForTextureType()
580 case GrTextureType::kRectangle: in GrSLCombinedSamplerTypeForTextureType()
582 case GrTextureType::kExternal: in GrSLCombinedSamplerTypeForTextureType()
590 static inline bool GrTextureTypeHasRestrictedSampling(GrTextureType type) { in GrTextureTypeHasRestrictedSampling()
592 case GrTextureType::k2D: in GrTextureTypeHasRestrictedSampling()
594 case GrTextureType::kRectangle: in GrTextureTypeHasRestrictedSampling()
596 case GrTextureType::kExternal: in GrTextureTypeHasRestrictedSampling()
/external/skia/src/gpu/vk/
DGrVkTexture.cpp30 , INHERITED(gpu, desc, GrTextureType::k2D, mipMapsStatus) in GrVkTexture()
45 , INHERITED(gpu, desc, GrTextureType::k2D, mipMapsStatus) in GrVkTexture()
64 , INHERITED(gpu, desc, GrTextureType::k2D, mipMapsStatus) in GrVkTexture()
/external/skqp/src/gpu/vk/
DGrVkTexture.cpp30 , INHERITED(gpu, desc, GrTextureType::k2D, mipMapsStatus) in GrVkTexture()
45 , INHERITED(gpu, desc, GrTextureType::k2D, mipMapsStatus) in GrVkTexture()
64 , INHERITED(gpu, desc, GrTextureType::k2D, mipMapsStatus) in GrVkTexture()
/external/skia/tests/
DRectangleTextureTest.cpp150 SkASSERT(rectProxy->textureType() == GrTextureType::kRectangle); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
152 GrTextureType::kRectangle); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
DEGLImageTest.cpp173 REPORTER_ASSERT(reporter, proxy->textureType() == GrTextureType::kExternal); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
175 proxy->peekTexture()->texturePriv().textureType() == GrTextureType::kExternal); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
/external/skqp/tests/
DRectangleTextureTest.cpp150 SkASSERT(rectProxy->textureType() == GrTextureType::kRectangle); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
152 GrTextureType::kRectangle); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
DEGLImageTest.cpp173 REPORTER_ASSERT(reporter, proxy->textureType() == GrTextureType::kExternal); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
175 proxy->peekTexture()->texturePriv().textureType() == GrTextureType::kExternal); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()

123