Home
last modified time | relevance | path

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

/external/skia/src/gpu/gl/
DGrGLUtil.h285 static constexpr GrGLFormat GrGLFormatFromGLEnum(GrGLenum glFormat) { in GrGLFormatFromGLEnum()
287 case GR_GL_RGBA8: return GrGLFormat::kRGBA8; in GrGLFormatFromGLEnum()
288 case GR_GL_R8: return GrGLFormat::kR8; in GrGLFormatFromGLEnum()
289 case GR_GL_ALPHA8: return GrGLFormat::kALPHA8; in GrGLFormatFromGLEnum()
290 case GR_GL_LUMINANCE8: return GrGLFormat::kLUMINANCE8; in GrGLFormatFromGLEnum()
291 case GR_GL_BGRA8: return GrGLFormat::kBGRA8; in GrGLFormatFromGLEnum()
292 case GR_GL_RGB565: return GrGLFormat::kRGB565; in GrGLFormatFromGLEnum()
293 case GR_GL_RGBA16F: return GrGLFormat::kRGBA16F; in GrGLFormatFromGLEnum()
294 case GR_GL_LUMINANCE16F: return GrGLFormat::kLUMINANCE16F; in GrGLFormatFromGLEnum()
295 case GR_GL_R16F: return GrGLFormat::kR16F; in GrGLFormatFromGLEnum()
[all …]
DGrGLUtil.cpp635 bool GrGLFormatIsCompressed(GrGLFormat format) { in GrGLFormatIsCompressed()
637 case GrGLFormat::kCOMPRESSED_ETC1_RGB8: in GrGLFormatIsCompressed()
638 case GrGLFormat::kCOMPRESSED_RGB8_ETC2: in GrGLFormatIsCompressed()
639 case GrGLFormat::kCOMPRESSED_RGB8_BC1: in GrGLFormatIsCompressed()
640 case GrGLFormat::kCOMPRESSED_RGBA8_BC1: in GrGLFormatIsCompressed()
643 case GrGLFormat::kRGBA8: in GrGLFormatIsCompressed()
644 case GrGLFormat::kR8: in GrGLFormatIsCompressed()
645 case GrGLFormat::kALPHA8: in GrGLFormatIsCompressed()
646 case GrGLFormat::kLUMINANCE8: in GrGLFormatIsCompressed()
647 case GrGLFormat::kBGRA8: in GrGLFormatIsCompressed()
[all …]
DGrGLCaps.h121 bool isFormatTexturable(GrGLFormat) const;
126 bool isFormatRenderable(GrGLFormat format, int sampleCount) const { in isFormatRenderable()
134 int getRenderTargetSampleCount(int requestedCount, GrGLFormat) const;
139 int maxRenderTargetSampleCount(GrGLFormat) const;
141 size_t bytesPerPixel(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,
[all …]
DGrGLRenderTarget.h37 GrGLFormat,
59 GrGLFormat format() const { return fRTFormat; } in format()
65 GrGLFormat,
69 void init(GrGLFormat, const IDs&);
80 GrGLFormat,
99 GrGLFormat fRTFormat;
DGrGLCaps.cpp1250 void GrGLCaps::getTexImageExternalFormatAndType(GrGLFormat surfaceFormat, GrGLenum* externalFormat, in getTexImageExternalFormatAndType()
1257 void GrGLCaps::getTexSubImageDefaultFormatTypeAndColorType(GrGLFormat format, in getTexSubImageDefaultFormatTypeAndColorType()
1267 void GrGLCaps::getTexSubImageExternalFormatAndType(GrGLFormat surfaceFormat, in getTexSubImageExternalFormatAndType()
1276 void GrGLCaps::getReadPixelsFormat(GrGLFormat surfaceFormat, GrColorType surfaceColorType, in getReadPixelsFormat()
1283 void GrGLCaps::getExternalFormat(GrGLFormat surfaceFormat, GrColorType surfaceColorType, in getExternalFormat()
1293 void GrGLCaps::setStencilFormatIndexForFormat(GrGLFormat format, int index) { in setStencilFormatIndexForFormat()
1299 void GrGLCaps::setColorTypeFormat(GrColorType colorType, GrGLFormat format) { in setColorTypeFormat()
1301 SkASSERT(fColorTypeToFormatTable[idx] == GrGLFormat::kUnknown); in setColorTypeFormat()
1350 fColorTypeToFormatTable[i] = GrGLFormat::kUnknown; in initFormatTable()
1363 FormatInfo& info = this->getFormatInfo(GrGLFormat::kRGBA8); in initFormatTable()
[all …]
DGrGLTexture.h25 GrGLFormat fFormat = GrGLFormat::kUnknown;
48 GrGLFormat format() const { return fFormat; } in format()
83 GrGLFormat fFormat;
DGrGLRenderTarget.cpp24 GrGLFormat format, in GrGLRenderTarget()
37 GrGLFormat format, in GrGLRenderTarget()
52 void GrGLRenderTarget::init(GrGLFormat format, const IDs& idDesc) { in init()
63 GrGLFormat format, in MakeWrapped()
DGrGLGpu.h238 int getCompatibleStencilIndex(GrGLFormat format);
247 GrGLFormat,
253 GrGLFormat,
399 bool uploadTexData(GrGLFormat textureFormat, GrColorType textureColorType, int texWidth,
406 bool uploadCompressedTexData(GrGLFormat,
DGrGLGpu.cpp680 if (desc->fFormat == GrGLFormat::kUnknown) { in check_backend_texture()
739 if (desc->fFormat == GrGLFormat::kUnknown) { in check_compressed_backend_texture()
952 GrGLFormat textureFormat = glTex->format(); in onTransferPixelsTo()
996 bool GrGLGpu::uploadTexData(GrGLFormat textureFormat, GrColorType textureColorType, int texWidth, in uploadTexData()
1076 bool GrGLGpu::uploadCompressedTexData(GrGLFormat format, in uploadCompressedTexData()
1081 SkASSERT(format != GrGLFormat::kUnknown); in uploadCompressedTexData()
1212 if (desc.fFormat == GrGLFormat::kUnknown) { in createRenderTargetObjects()
1333 SkASSERT(texDesc.fFormat != GrGLFormat::kUnknown); in onCreateTexture()
1462 GrGLFormat glFormat = format.asGLFormat(); in onCreateCompressedBackendTexture()
1463 if (glFormat == GrGLFormat::kUnknown) { in onCreateCompressedBackendTexture()
[all …]
DGrGLTexture.cpp85 SkASSERT(GrGLFormat::kUnknown != desc.fFormat); in init()
/external/skia/tests/
DTraceMemoryDumpTest.cpp94 desc.fFormat = GrGLFormat::kRGBA8; in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
111 desc.fFormat = GrGLFormat::kRGBA8; in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
137 GrGLRenderTarget::MakeWrapped(gpu, kSize, GrGLFormat::kRGBA8, 1, rtIDs, 0); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
155 GrGLRenderTarget::MakeWrapped(gpu, kSize, GrGLFormat::kRGBA8, 1, rtIDs, 0); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
DBackendAllocationTest.cpp107 return format.asGLFormat() == GrGLFormat::kBGRA8; in isBGRA()
150 return format.asGLFormat() == GrGLFormat::kRGB8; in isRGB()
/external/skia/gm/
Dwacky_yuv_formats.cpp1020 GrGLFormat glFormat = format.asGLFormat(); in get_color_type()
1021 if (GrGLFormat::kUnknown != glFormat) { in get_color_type()
1023 case GrGLFormat::kLUMINANCE8: // fall through in get_color_type()
1024 case GrGLFormat::kR8: // fall through in get_color_type()
1025 case GrGLFormat::kALPHA8: return kAlpha_8_SkColorType; in get_color_type()
1026 case GrGLFormat::kRG8: return kR8G8_unorm_SkColorType; in get_color_type()
1027 case GrGLFormat::kRGB8: return kRGB_888x_SkColorType; in get_color_type()
1028 case GrGLFormat::kRGBA8: return kRGBA_8888_SkColorType; in get_color_type()
1029 case GrGLFormat::kBGRA8: return kBGRA_8888_SkColorType; in get_color_type()
1030 case GrGLFormat::kRGB10_A2: return kRGBA_1010102_SkColorType; in get_color_type()
[all …]
/external/skia/include/gpu/
DGrBackendSurface.h62 enum class GrGLFormat; variable
105 GrGLFormat asGLFormat() const;
/external/skia/include/private/
DGrGLTypesPriv.h14 static constexpr int kGrGLFormatCount = static_cast<int>(GrGLFormat::kLast) + 1;
/external/skia/include/gpu/gl/
DGrGLTypes.h58 enum class GrGLFormat { enum
/external/skia/src/gpu/
DGrBackendSurface.cpp93 GrGLFormat GrBackendFormat::asGLFormat() const { in asGLFormat()
97 return GrGLFormat::kUnknown; in asGLFormat()