Home
last modified time | relevance | path

Searched refs:GrGLFormat (Results 1 – 18 of 18) sorted by relevance

/external/skia/src/gpu/gl/
DGrGLUtil.h41 static constexpr uint32_t GrGLFormatChannels(GrGLFormat format) { in GrGLFormatChannels()
43 case GrGLFormat::kUnknown: return 0; in GrGLFormatChannels()
44 case GrGLFormat::kRGBA8: return kRGBA_SkColorChannelFlags; in GrGLFormatChannels()
45 case GrGLFormat::kR8: return kRed_SkColorChannelFlag; in GrGLFormatChannels()
46 case GrGLFormat::kALPHA8: return kAlpha_SkColorChannelFlag; in GrGLFormatChannels()
47 case GrGLFormat::kLUMINANCE8: return kGray_SkColorChannelFlag; in GrGLFormatChannels()
48 case GrGLFormat::kLUMINANCE8_ALPHA8: return kGrayAlpha_SkColorChannelFlags; in GrGLFormatChannels()
49 case GrGLFormat::kBGRA8: return kRGBA_SkColorChannelFlags; in GrGLFormatChannels()
50 case GrGLFormat::kRGB565: return kRGB_SkColorChannelFlags; in GrGLFormatChannels()
51 case GrGLFormat::kRGBA16F: return kRGBA_SkColorChannelFlags; in GrGLFormatChannels()
[all …]
DGrGLCaps.h124 bool isFormatTexturable(GrGLFormat) const;
129 bool isFormatRenderable(GrGLFormat format, int sampleCount) const { in isFormatRenderable()
137 int getRenderTargetSampleCount(int requestedCount, GrGLFormat) const;
142 int maxRenderTargetSampleCount(GrGLFormat) const;
146 bool canFormatBeFBOColorAttachment(GrGLFormat) const;
148 GrGLFormat getFormatFromColorType(GrColorType colorType) const { in getFormatFromColorType()
157 GrGLenum getTexImageOrStorageInternalFormat(GrGLFormat format) const { in getTexImageOrStorageInternalFormat()
165 void getTexImageExternalFormatAndType(GrGLFormat surfaceFormat, GrGLenum* externalFormat,
173 void getTexSubImageExternalFormatAndType(GrGLFormat surfaceFormat, GrColorType surfaceColorType,
181 void getTexSubImageDefaultFormatTypeAndColorType(GrGLFormat format,
[all …]
DGrGLUtil.cpp684 bool GrGLFormatIsCompressed(GrGLFormat format) { in GrGLFormatIsCompressed()
686 case GrGLFormat::kCOMPRESSED_ETC1_RGB8: in GrGLFormatIsCompressed()
687 case GrGLFormat::kCOMPRESSED_RGB8_ETC2: in GrGLFormatIsCompressed()
688 case GrGLFormat::kCOMPRESSED_RGB8_BC1: in GrGLFormatIsCompressed()
689 case GrGLFormat::kCOMPRESSED_RGBA8_BC1: in GrGLFormatIsCompressed()
692 case GrGLFormat::kRGBA8: in GrGLFormatIsCompressed()
693 case GrGLFormat::kR8: in GrGLFormatIsCompressed()
694 case GrGLFormat::kALPHA8: in GrGLFormatIsCompressed()
695 case GrGLFormat::kLUMINANCE8: in GrGLFormatIsCompressed()
696 case GrGLFormat::kLUMINANCE8_ALPHA8: in GrGLFormatIsCompressed()
[all …]
DGrGLRenderTarget.h39 GrGLFormat,
57 GrGLFormat format() const { return fRTFormat; } in format()
66 GrGLFormat,
70 void init(GrGLFormat, const IDs&);
80 GrGLGpu*, const SkISize&, GrGLFormat, int sampleCount, const IDs&, GrGLAttachment*);
94 GrGLFormat fRTFormat;
DGrGLRenderTarget.cpp25 GrGLFormat format, in GrGLRenderTarget()
38 GrGLFormat format, in GrGLRenderTarget()
53 void GrGLRenderTarget::init(GrGLFormat format, const IDs& idDesc) { in init()
62 GrGLFormat stencil_bits_to_format(int stencilBits) { in stencil_bits_to_format()
69 return GrGLFormat::kDEPTH24_STENCIL8; in stencil_bits_to_format()
71 return GrGLFormat::kSTENCIL_INDEX16; in stencil_bits_to_format()
74 return GrGLFormat::kUnknown; in stencil_bits_to_format()
80 GrGLFormat format, in MakeWrapped()
92 GrGLFormat sFmt = stencil_bits_to_format(stencilBits); in MakeWrapped()
DGrGLCaps.cpp1064 fStencilFormats.push_back() = GrGLFormat::kSTENCIL_INDEX8; in initStencilSupport()
1065 fStencilFormats.push_back() = GrGLFormat::kSTENCIL_INDEX16; in initStencilSupport()
1067 fStencilFormats.push_back() = GrGLFormat::kDEPTH24_STENCIL8; in initStencilSupport()
1073 fStencilFormats.push_back() = GrGLFormat::kSTENCIL_INDEX8; in initStencilSupport()
1076 fStencilFormats.push_back() = GrGLFormat::kDEPTH24_STENCIL8; in initStencilSupport()
1079 fStencilFormats.push_back() = GrGLFormat::kSTENCIL_INDEX8; in initStencilSupport()
1081 fStencilFormats.push_back() = GrGLFormat::kDEPTH24_STENCIL8; in initStencilSupport()
1230 void GrGLCaps::getTexImageExternalFormatAndType(GrGLFormat surfaceFormat, GrGLenum* externalFormat, in getTexImageExternalFormatAndType()
1237 void GrGLCaps::getTexSubImageDefaultFormatTypeAndColorType(GrGLFormat format, in getTexSubImageDefaultFormatTypeAndColorType()
1247 void GrGLCaps::getTexSubImageExternalFormatAndType(GrGLFormat surfaceFormat, in getTexSubImageExternalFormatAndType()
[all …]
DGrGLTexture.h25 GrGLFormat fFormat = GrGLFormat::kUnknown;
48 GrGLFormat format() const { return fFormat; } in format()
83 GrGLFormat fFormat;
DGrGLAttachment.h23 int sampleCnt, GrGLFormat format) in GrGLAttachment()
37 GrGLFormat format() const { return fFormat; } in format()
47 GrGLFormat fFormat;
DGrGLGpu.h268 int getCompatibleStencilIndex(GrGLFormat format);
286 GrGLFormat,
294 GrGLFormat,
445 bool uploadColorTypeTexData(GrGLFormat textureFormat,
458 bool uploadColorToTex(GrGLFormat textureFormat,
478 GrGLFormat,
DGrGLGpu.cpp628 if (desc->fFormat == GrGLFormat::kUnknown) { in check_backend_texture()
690 if (desc->fFormat == GrGLFormat::kUnknown) { in check_compressed_backend_texture()
900 GrGLFormat textureFormat = glTex->format(); in onTransferPixelsTo()
945 bool GrGLGpu::uploadColorTypeTexData(GrGLFormat textureFormat, in uploadColorTypeTexData()
973 bool GrGLGpu::uploadColorToTex(GrGLFormat textureFormat, in uploadColorToTex()
1061 GrGLFormat format, in uploadCompressedTexData()
1066 SkASSERT(format != GrGLFormat::kUnknown); in uploadCompressedTexData()
1182 if (desc.fFormat == GrGLFormat::kUnknown) { in createRenderTargetObjects()
1324 SkASSERT(texDesc.fFormat != GrGLFormat::kUnknown); in onCreateTexture()
1449 GrGLFormat glFormat = format.asGLFormat(); in onCreateCompressedBackendTexture()
[all …]
DGrGLTexture.cpp86 SkASSERT(GrGLFormat::kUnknown != desc.fFormat); in init()
/external/skia/src/gpu/
DGrBackendUtils.cpp36 GrGLFormat glFormat = format.asGLFormat(); in GrBackendFormatToCompressionType()
38 case GrGLFormat::kCOMPRESSED_ETC1_RGB8: in GrBackendFormatToCompressionType()
39 case GrGLFormat::kCOMPRESSED_RGB8_ETC2: in GrBackendFormatToCompressionType()
41 case GrGLFormat::kCOMPRESSED_RGB8_BC1: in GrBackendFormatToCompressionType()
43 case GrGLFormat::kCOMPRESSED_RGBA8_BC1: in GrBackendFormatToCompressionType()
101 GrGLFormat glFormat = format.asGLFormat(); in GrBackendFormatBytesPerBlock()
161 GrGLFormat glFormat = format.asGLFormat(); in GrBackendFormatStencilBits()
DGrBackendSurface.cpp107 GrGLFormat GrBackendFormat::asGLFormat() const { in asGLFormat()
111 return GrGLFormat::kUnknown; in asGLFormat()
/external/skia/tests/
DTraceMemoryDumpTest.cpp96 desc.fFormat = GrGLFormat::kRGBA8; in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
113 desc.fFormat = GrGLFormat::kRGBA8; in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
140 GrGLRenderTarget::MakeWrapped(gpu, kSize, GrGLFormat::kRGBA8, 1, rtIDs, 0); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
159 GrGLRenderTarget::MakeWrapped(gpu, kSize, GrGLFormat::kRGBA8, 4, rtIDs, 0); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
175 texDesc.fFormat = GrGLFormat::kRGBA8; in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
DBackendAllocationTest.cpp126 return format.asGLFormat() == GrGLFormat::kBGRA8; in isBGRA8()
175 return format.asGLFormat() == GrGLFormat::kRGB8; in isRGB()
/external/skia/include/private/
DGrGLTypesPriv.h14 static constexpr int kGrGLColorFormatCount = static_cast<int>(GrGLFormat::kLastColorFormat) + 1;
/external/skia/include/gpu/
DGrBackendSurface.h70 enum class GrGLFormat; variable
126 GrGLFormat asGLFormat() const;
/external/skia/include/gpu/gl/
DGrGLTypes.h58 enum class GrGLFormat { enum