Home
last modified time | relevance | path

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

/third_party/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.cpp736 bool GrGLFormatIsCompressed(GrGLFormat format) { in GrGLFormatIsCompressed()
738 case GrGLFormat::kCOMPRESSED_ETC1_RGB8: in GrGLFormatIsCompressed()
739 case GrGLFormat::kCOMPRESSED_RGB8_ETC2: in GrGLFormatIsCompressed()
740 case GrGLFormat::kCOMPRESSED_RGB8_BC1: in GrGLFormatIsCompressed()
741 case GrGLFormat::kCOMPRESSED_RGBA8_BC1: in GrGLFormatIsCompressed()
742 case GrGLFormat::kCOMPRESSED_ASTC_RGBA8_4x4: in GrGLFormatIsCompressed()
743 case GrGLFormat::kCOMPRESSED_ASTC_RGBA8_6x6: in GrGLFormatIsCompressed()
744 case GrGLFormat::kCOMPRESSED_ASTC_RGBA8_8x8: in GrGLFormatIsCompressed()
747 case GrGLFormat::kRGBA8: in GrGLFormatIsCompressed()
748 case GrGLFormat::kR8: in GrGLFormatIsCompressed()
[all …]
DGrGLAttachment.h21 GrGLFormat format);
26 GrGLFormat format);
33 GrGLFormat format) { in MakeWrappedRenderBuffer()
43 GrGLFormat format() const { return fFormat; } in format()
58 GrGLFormat format) in GrGLAttachment()
68 GrGLFormat fFormat;
DGrGLRenderTarget.h40 GrGLFormat,
63 GrGLFormat format() const { return fRTFormat; } in format()
94 GrGLFormat,
98 void init(GrGLFormat, const IDs&);
111 GrGLGpu*, const SkISize&, GrGLFormat, int sampleCount, const IDs&,
126 GrGLFormat fRTFormat;
DGrGLCaps.cpp1120 fStencilFormats.push_back() = GrGLFormat::kSTENCIL_INDEX8; in initStencilSupport()
1121 fStencilFormats.push_back() = GrGLFormat::kSTENCIL_INDEX16; in initStencilSupport()
1123 fStencilFormats.push_back() = GrGLFormat::kDEPTH24_STENCIL8; in initStencilSupport()
1129 fStencilFormats.push_back() = GrGLFormat::kSTENCIL_INDEX8; in initStencilSupport()
1132 fStencilFormats.push_back() = GrGLFormat::kDEPTH24_STENCIL8; in initStencilSupport()
1135 fStencilFormats.push_back() = GrGLFormat::kSTENCIL_INDEX8; in initStencilSupport()
1137 fStencilFormats.push_back() = GrGLFormat::kDEPTH24_STENCIL8; in initStencilSupport()
1288 void GrGLCaps::getTexImageExternalFormatAndType(GrGLFormat surfaceFormat, GrGLenum* externalFormat, in getTexImageExternalFormatAndType()
1295 void GrGLCaps::getTexSubImageDefaultFormatTypeAndColorType(GrGLFormat format, in getTexSubImageDefaultFormatTypeAndColorType()
1305 void GrGLCaps::getTexSubImageExternalFormatAndType(GrGLFormat surfaceFormat, in getTexSubImageExternalFormatAndType()
[all …]
DGrGLRenderTarget.cpp27 GrGLFormat format, in GrGLRenderTarget()
40 GrGLFormat format, in GrGLRenderTarget()
55 void GrGLRenderTarget::init(GrGLFormat format, const IDs& idDesc) { in init()
64 GrGLFormat stencil_bits_to_format(int stencilBits) { in stencil_bits_to_format()
71 return GrGLFormat::kDEPTH24_STENCIL8; in stencil_bits_to_format()
73 return GrGLFormat::kSTENCIL_INDEX16; in stencil_bits_to_format()
76 return GrGLFormat::kUnknown; in stencil_bits_to_format()
82 GrGLFormat format, in MakeWrapped()
93 GrGLFormat sFmt = stencil_bits_to_format(stencilBits); in MakeWrapped()
DGrGLTexture.h25 GrGLFormat fFormat = GrGLFormat::kUnknown;
48 GrGLFormat format() const { return fFormat; } in format()
83 GrGLFormat fFormat;
DGrGLGpu.h278 int getCompatibleStencilIndex(GrGLFormat format);
296 GrGLFormat,
304 GrGLFormat,
469 bool uploadColorTypeTexData(GrGLFormat textureFormat,
482 bool uploadColorToTex(GrGLFormat textureFormat,
502 GrGLFormat,
DGrGLAttachment.cpp58 GrGLFormat format) { in MakeStencil()
95 GrGLFormat format) { in MakeMSAA()
DGrGLGpu.cpp634 if (desc->fFormat == GrGLFormat::kUnknown) { in check_backend_texture()
696 if (desc->fFormat == GrGLFormat::kUnknown) { in check_compressed_backend_texture()
906 GrGLFormat textureFormat = glTex->format(); in onTransferPixelsTo()
965 bool GrGLGpu::uploadColorTypeTexData(GrGLFormat textureFormat, in uploadColorTypeTexData()
993 bool GrGLGpu::uploadColorToTex(GrGLFormat textureFormat, in uploadColorToTex()
1081 GrGLFormat format, in uploadCompressedTexData()
1086 SkASSERT(format != GrGLFormat::kUnknown); in uploadCompressedTexData()
1214 if (desc.fFormat == GrGLFormat::kUnknown) { in createRenderTargetObjects()
1386 SkASSERT(texDesc.fFormat != GrGLFormat::kUnknown); in onCreateTexture()
1511 GrGLFormat glFormat = format.asGLFormat(); in onCreateCompressedBackendTexture()
[all …]
DGrGLTexture.cpp87 SkASSERT(GrGLFormat::kUnknown != desc.fFormat); in init()
/third_party/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()
45 case GrGLFormat::kCOMPRESSED_ASTC_RGBA8_4x4: in GrBackendFormatToCompressionType()
47 case GrGLFormat::kCOMPRESSED_ASTC_RGBA8_6x6: in GrBackendFormatToCompressionType()
49 case GrGLFormat::kCOMPRESSED_ASTC_RGBA8_8x8: in GrBackendFormatToCompressionType()
113 GrGLFormat glFormat = format.asGLFormat(); in GrBackendFormatBytesPerBlock()
173 GrGLFormat glFormat = format.asGLFormat(); in GrBackendFormatStencilBits()
DGrBackendSurface.cpp107 GrGLFormat GrBackendFormat::asGLFormat() const { in asGLFormat()
111 return GrGLFormat::kUnknown; in asGLFormat()
/third_party/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.cpp127 return format.asGLFormat() == GrGLFormat::kBGRA8; in isBGRA8()
176 return format.asGLFormat() == GrGLFormat::kRGB8; in isRGB()
/third_party/skia/include/private/
DGrGLTypesPriv.h14 static constexpr int kGrGLColorFormatCount = static_cast<int>(GrGLFormat::kLastColorFormat) + 1;
/third_party/skia/include/gpu/
DGrBackendSurface.h75 enum class GrGLFormat; variable
139 GrGLFormat asGLFormat() const;
/third_party/skia/include/gpu/gl/
DGrGLTypes.h58 enum class GrGLFormat { enum