Home
last modified time | relevance | path

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

12

/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()
744 case GrGLFormat::kRGBA8: in GrGLFormatIsCompressed()
745 case GrGLFormat::kR8: in GrGLFormatIsCompressed()
746 case GrGLFormat::kALPHA8: in GrGLFormatIsCompressed()
747 case GrGLFormat::kLUMINANCE8: in GrGLFormatIsCompressed()
748 case GrGLFormat::kLUMINANCE8_ALPHA8: 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;
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()
DGrGLCaps.cpp1110 fStencilFormats.push_back() = GrGLFormat::kSTENCIL_INDEX8; in initStencilSupport()
1111 fStencilFormats.push_back() = GrGLFormat::kSTENCIL_INDEX16; in initStencilSupport()
1113 fStencilFormats.push_back() = GrGLFormat::kDEPTH24_STENCIL8; in initStencilSupport()
1119 fStencilFormats.push_back() = GrGLFormat::kSTENCIL_INDEX8; in initStencilSupport()
1122 fStencilFormats.push_back() = GrGLFormat::kDEPTH24_STENCIL8; in initStencilSupport()
1125 fStencilFormats.push_back() = GrGLFormat::kSTENCIL_INDEX8; in initStencilSupport()
1127 fStencilFormats.push_back() = GrGLFormat::kDEPTH24_STENCIL8; in initStencilSupport()
1278 void GrGLCaps::getTexImageExternalFormatAndType(GrGLFormat surfaceFormat, GrGLenum* externalFormat, in getTexImageExternalFormatAndType()
1285 void GrGLCaps::getTexSubImageDefaultFormatTypeAndColorType(GrGLFormat format, in getTexSubImageDefaultFormatTypeAndColorType()
1295 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;
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 …]
/third_party/flutter/skia/src/gpu/gl/
DGrGLUtil.h278 static constexpr GrGLFormat GrGLFormatFromGLEnum(GrGLenum glFormat) { in GrGLFormatFromGLEnum()
280 case GR_GL_RGBA8: return GrGLFormat::kRGBA8; in GrGLFormatFromGLEnum()
281 case GR_GL_R8: return GrGLFormat::kR8; in GrGLFormatFromGLEnum()
282 case GR_GL_ALPHA8: return GrGLFormat::kALPHA8; in GrGLFormatFromGLEnum()
283 case GR_GL_LUMINANCE8: return GrGLFormat::kLUMINANCE8; in GrGLFormatFromGLEnum()
284 case GR_GL_BGRA8: return GrGLFormat::kBGRA8; in GrGLFormatFromGLEnum()
285 case GR_GL_RGB565: return GrGLFormat::kRGB565; in GrGLFormatFromGLEnum()
286 case GR_GL_RGBA16F: return GrGLFormat::kRGBA16F; in GrGLFormatFromGLEnum()
287 case GR_GL_LUMINANCE16F: return GrGLFormat::kLUMINANCE16F; in GrGLFormatFromGLEnum()
288 case GR_GL_R16F: return GrGLFormat::kR16F; in GrGLFormatFromGLEnum()
[all …]
DGrGLUtil.cpp601 bool GrGLFormatIsCompressed(GrGLFormat format) { in GrGLFormatIsCompressed()
603 case GrGLFormat::kCOMPRESSED_RGB8_ETC2: in GrGLFormatIsCompressed()
604 case GrGLFormat::kCOMPRESSED_ETC1_RGB8: in GrGLFormatIsCompressed()
605 case GrGLFormat::kCOMPRESSED_ASTC_RGB8: in GrGLFormatIsCompressed()
608 case GrGLFormat::kRGBA8: in GrGLFormatIsCompressed()
609 case GrGLFormat::kR8: in GrGLFormatIsCompressed()
610 case GrGLFormat::kALPHA8: in GrGLFormatIsCompressed()
611 case GrGLFormat::kLUMINANCE8: in GrGLFormatIsCompressed()
612 case GrGLFormat::kBGRA8: in GrGLFormatIsCompressed()
613 case GrGLFormat::kRGB565: in GrGLFormatIsCompressed()
[all …]
DGrGLCaps.h116 bool isFormatTexturable(GrGLFormat) const;
121 bool isFormatRenderable(GrGLFormat format, int sampleCount) const { in isFormatRenderable()
129 int getRenderTargetSampleCount(int requestedCount, GrGLFormat) const;
134 int maxRenderTargetSampleCount(GrGLFormat) const;
138 bool canFormatBeFBOColorAttachment(GrGLFormat) const;
140 GrGLFormat getFormatFromColorType(GrColorType colorType) const { in getFormatFromColorType()
145 GrGLenum formatSizedInternalFormat(GrGLFormat format) const { in formatSizedInternalFormat()
149 void getTexImageFormats(GrGLFormat surfaceFormat, GrColorType surfaceColorType,
153 void getReadPixelsFormat(GrGLFormat surfaceFormat, GrColorType surfaceColorType,
166 bool formatSupportsTexStorage(GrGLFormat) const;
[all …]
DGrGLCaps.cpp1251 void GrGLCaps::getTexImageFormats(GrGLFormat surfaceFormat, GrColorType surfaceColorType, in getTexImageFormats()
1259 void GrGLCaps::getReadPixelsFormat(GrGLFormat surfaceFormat, GrColorType surfaceColorType, in getReadPixelsFormat()
1266 void GrGLCaps::getExternalFormat(GrGLFormat surfaceFormat, GrColorType surfaceColorType, in getExternalFormat()
1276 void GrGLCaps::setStencilFormatIndexForFormat(GrGLFormat format, int index) { in setStencilFormatIndexForFormat()
1282 void GrGLCaps::setColorTypeFormat(GrColorType colorType, GrGLFormat format) { in setColorTypeFormat()
1284 SkASSERT(fColorTypeToFormatTable[idx] == GrGLFormat::kUnknown); in setColorTypeFormat()
1421 fColorTypeToFormatTable[i] = GrGLFormat::kUnknown; in initFormatTable()
1433 FormatInfo& info = this->getFormatInfo(GrGLFormat::kRGBA8); in initFormatTable()
1467 this->setColorTypeFormat(GrColorType::kRGBA_8888, GrGLFormat::kRGBA8); in initFormatTable()
1489 this->setColorTypeFormat(GrColorType::kBGRA_8888, GrGLFormat::kRGBA8); in initFormatTable()
[all …]
DGrGLRenderTarget.h38 GrGLFormat,
72 GrGLFormat format() const { return fRTFormat; } in format()
78 GrGLFormat,
83 void init(GrGLFormat, const IDs&);
94 GrGLFormat,
114 GrGLFormat fRTFormat;
DGrGLTexture.h25 GrGLFormat fFormat = GrGLFormat::kUnknown;
49 GrGLFormat format() const { return fFormat; } in format()
84 GrGLFormat fFormat;
DGrGLRenderTarget.cpp24 GrGLFormat format, in GrGLRenderTarget()
38 GrGLFormat format, in GrGLRenderTarget()
54 void GrGLRenderTarget::init(GrGLFormat format, const IDs& idDesc) { in init()
65 GrGLFormat format, in MakeWrapped()
DGrGLGpu.cpp668 if (desc->fFormat == GrGLFormat::kUnknown) { in check_backend_texture()
897 GrGLFormat textureFormat = glTex->format(); in onTransferPixelsTo()
952 static bool allocate_and_populate_texture(GrGLFormat format, in allocate_and_populate_texture()
1115 bool GrGLGpu::uploadTexData(GrGLFormat textureFormat, GrColorType textureColorType, in uploadTexData()
1221 bool GrGLGpu::uploadCompressedTexData(GrGLFormat format, in uploadCompressedTexData()
1226 SkASSERT(format != GrGLFormat::kUnknown); in uploadCompressedTexData()
1327 if (desc.fFormat == GrGLFormat::kUnknown) { in createRenderTargetObjects()
1462 SkASSERT(texDesc.fFormat != GrGLFormat::kUnknown); in onCreateTexture()
1566 int GrGLGpu::getCompatibleStencilIndex(GrGLFormat format) { in getCompatibleStencilIndex()
1681 GrGLFormat format, in createCompressedTexture2D()
[all …]
DGrGLGpu.h221 int getCompatibleStencilIndex(GrGLFormat format);
230 GrGLFormat format,
239 GrGLuint createCompressedTexture2D(const SkISize& size, GrGLFormat format,
407 bool uploadTexData(GrGLFormat textureFormat, GrColorType textureColorType,
415 bool uploadCompressedTexData(GrGLFormat,
/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()
101 GrGLFormat glFormat = format.asGLFormat(); in GrBackendFormatBytesPerBlock()
161 GrGLFormat glFormat = format.asGLFormat(); in GrBackendFormatStencilBits()
/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()
/third_party/flutter/skia/tests/
DTraceMemoryDumpTest.cpp91 desc.fFormat = GrGLFormat::kRGBA8; in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
109 desc.fFormat = GrGLFormat::kRGBA8; in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
137 GrGLRenderTarget::MakeWrapped(gpu, kSize, GrGLFormat::kRGBA8, kConfig, 1, rtIDs, 0); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
156 GrGLRenderTarget::MakeWrapped(gpu, kSize, GrGLFormat::kRGBA8, kConfig, 1, rtIDs, 0); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
/third_party/flutter/skia/include/gpu/
DGrBackendSurface.h55 enum class GrGLFormat; variable
100 GrGLFormat asGLFormat() const;
/third_party/flutter/skia/include/private/
DGrGLTypesPriv.h14 static constexpr int kGrGLFormatCount = static_cast<int>(GrGLFormat::kLast) + 1;

12