/external/skia/src/gpu/mock/ |
D | GrMockCaps.cpp | 21 uint64_t GrMockCaps::computeFormatKey(const GrBackendFormat& format) const { in computeFormatKey() 34 { GrColorType::kAlpha_8, GrBackendFormat::MakeMock(GrColorType::kAlpha_8, in getTestingCombinations() 36 { GrColorType::kBGR_565, GrBackendFormat::MakeMock(GrColorType::kBGR_565, in getTestingCombinations() 38 { GrColorType::kABGR_4444, GrBackendFormat::MakeMock(GrColorType::kABGR_4444, in getTestingCombinations() 40 { GrColorType::kRGBA_8888, GrBackendFormat::MakeMock(GrColorType::kRGBA_8888, in getTestingCombinations() 42 { GrColorType::kRGBA_8888_SRGB, GrBackendFormat::MakeMock(GrColorType::kRGBA_8888_SRGB, in getTestingCombinations() 44 { GrColorType::kRGB_888x, GrBackendFormat::MakeMock(GrColorType::kRGB_888x, in getTestingCombinations() 46 { GrColorType::kRG_88, GrBackendFormat::MakeMock(GrColorType::kRG_88, in getTestingCombinations() 48 { GrColorType::kBGRA_8888, GrBackendFormat::MakeMock(GrColorType::kBGRA_8888, in getTestingCombinations() 50 { GrColorType::kRGBA_1010102, GrBackendFormat::MakeMock(GrColorType::kRGBA_1010102, in getTestingCombinations() [all …]
|
D | GrMockCaps.h | 44 bool isFormatSRGB(const GrBackendFormat& format) const override { in isFormatSRGB() 54 bool isFormatTexturable(const GrBackendFormat& format) const override { in isFormatTexturable() 64 bool isFormatCopyable(const GrBackendFormat& format) const override { in isFormatCopyable() 68 bool isFormatAsColorTypeRenderable(GrColorType ct, const GrBackendFormat& format, 79 bool isFormatRenderable(const GrBackendFormat& format, int sampleCount) const override { in isFormatRenderable() 102 const GrBackendFormat& format) const override { in getRenderTargetSampleCount() 123 int maxRenderTargetSampleCount(const GrBackendFormat& format) const override { in maxRenderTargetSampleCount() 133 const GrBackendFormat& surfaceFormat, in supportedWritePixelsColorType() 142 GrBackendFormat getBackendFormatFromCompressionType(SkImage::CompressionType) const override { in getBackendFormatFromCompressionType() 146 GrSwizzle getWriteSwizzle(const GrBackendFormat& format, GrColorType ct) const override { in getWriteSwizzle() [all …]
|
D | GrMockTypes.cpp | 12 GrBackendFormat GrMockRenderTargetInfo::getBackendFormat() const { in getBackendFormat() 13 return GrBackendFormat::MakeMock(fColorType, SkImage::CompressionType::kNone); in getBackendFormat() 16 GrBackendFormat GrMockTextureInfo::getBackendFormat() const { in getBackendFormat() 17 return GrBackendFormat::MakeMock(fColorType, fCompressionType); in getBackendFormat()
|
D | GrMockGpu.h | 60 const GrBackendFormat&, 69 const GrBackendFormat&, 146 sk_sp<GrAttachment> makeStencilAttachment(const GrBackendFormat& /*colorFormat*/, 149 GrBackendFormat getPreferredStencilFormat(const GrBackendFormat&) override { in getPreferredStencilFormat() argument 150 return GrBackendFormat::MakeMock(GrColorType::kUnknown, SkImage::CompressionType::kNone, in getPreferredStencilFormat() 155 const GrBackendFormat& format, in makeMSAAAttachment() 162 const GrBackendFormat&, 174 const GrBackendFormat&,
|
/external/skia/src/gpu/dawn/ |
D | GrDawnCaps.h | 20 bool isFormatSRGB(const GrBackendFormat&) const override; 22 bool isFormatRenderable(const GrBackendFormat& format, 24 bool isFormatAsColorTypeRenderable(GrColorType ct, const GrBackendFormat& format, 28 bool isFormatCopyable(const GrBackendFormat& format) const override { return true; } in isFormatCopyable() 30 bool isFormatTexturable(const GrBackendFormat& format) const override; 33 const GrBackendFormat& surfaceFormat, in supportedWritePixelsColorType() 41 const GrBackendFormat&) const override; 43 int maxRenderTargetSampleCount(const GrBackendFormat& format) const override; 45 GrBackendFormat getBackendFormatFromCompressionType(SkImage::CompressionType) const override; 47 GrSwizzle getWriteSwizzle(const GrBackendFormat&, GrColorType) const override; [all …]
|
D | GrDawnCaps.cpp | 36 bool GrDawnCaps::isFormatSRGB(const GrBackendFormat& format) const { in isFormatSRGB() 40 bool GrDawnCaps::isFormatTexturable(const GrBackendFormat& format) const { in isFormatTexturable() 46 static GrSwizzle get_swizzle(const GrBackendFormat& format, GrColorType colorType, in get_swizzle() 72 bool GrDawnCaps::isFormatRenderable(const GrBackendFormat& format, in isFormatRenderable() 82 bool GrDawnCaps::isFormatAsColorTypeRenderable(GrColorType ct, const GrBackendFormat& format, in isFormatAsColorTypeRenderable() 100 const GrBackendFormat& backendFormat) const { in getRenderTargetSampleCount() 108 int GrDawnCaps::maxRenderTargetSampleCount(const GrBackendFormat& format) const { in maxRenderTargetSampleCount() 112 GrBackendFormat GrDawnCaps::onGetDefaultBackendFormat(GrColorType ct) const { in onGetDefaultBackendFormat() 117 return GrBackendFormat::MakeDawn(format); in onGetDefaultBackendFormat() 120 GrBackendFormat GrDawnCaps::getBackendFormatFromCompressionType(SkImage::CompressionType type) const in getBackendFormatFromCompressionType() [all …]
|
D | GrDawnGpu.h | 62 sk_sp<GrAttachment> makeStencilAttachment(const GrBackendFormat& /*colorFormat*/, 65 GrBackendFormat getPreferredStencilFormat(const GrBackendFormat&) override { in getPreferredStencilFormat() argument 66 return GrBackendFormat::MakeDawn(wgpu::TextureFormat::Depth24PlusStencil8); in getPreferredStencilFormat() 70 const GrBackendFormat& format, in makeMSAAAttachment() 112 const GrBackendFormat&, 121 const GrBackendFormat&, 141 const GrBackendFormat&, 151 const GrBackendFormat&,
|
/external/skia/include/gpu/ |
D | GrBackendSurface.h | 48 class SK_API GrBackendFormat { 72 class SK_API GrBackendFormat { 75 GrBackendFormat() {} in GrBackendFormat() function 76 GrBackendFormat(const GrBackendFormat&); 77 GrBackendFormat& operator=(const GrBackendFormat&); 79 static GrBackendFormat MakeGL(GrGLenum format, GrGLenum target) { in MakeGL() 80 return GrBackendFormat(format, target); in MakeGL() 83 static GrBackendFormat MakeVk(VkFormat format) { in MakeVk() 84 return GrBackendFormat(format, GrVkYcbcrConversionInfo()); in MakeVk() 87 static GrBackendFormat MakeVk(const GrVkYcbcrConversionInfo& ycbcrInfo); [all …]
|
/external/skia/src/gpu/ |
D | GrCaps.h | 22 class GrBackendFormat; variable 213 virtual bool isFormatSRGB(const GrBackendFormat&) const = 0; 215 bool isFormatCompressed(const GrBackendFormat& format) const; 218 virtual bool isFormatTexturable(const GrBackendFormat&) const = 0; 221 virtual bool isFormatCopyable(const GrBackendFormat&) const = 0; 225 virtual int maxRenderTargetSampleCount(const GrBackendFormat&) const = 0; 229 int internalMultisampleCount(const GrBackendFormat& format) const { in internalMultisampleCount() 233 virtual bool isFormatAsColorTypeRenderable(GrColorType ct, const GrBackendFormat& format, 236 virtual bool isFormatRenderable(const GrBackendFormat& format, int sampleCount) const = 0; 242 virtual int getRenderTargetSampleCount(int requestedCount, const GrBackendFormat&) const = 0; [all …]
|
D | GrBackendSurface.cpp | 33 GrBackendFormat::GrBackendFormat(const GrBackendFormat& that) in GrBackendFormat() function in GrBackendFormat 75 GrBackendFormat& GrBackendFormat::operator=(const GrBackendFormat& that) { in operator =() 77 this->~GrBackendFormat(); in operator =() 78 new (this) GrBackendFormat(that); in operator =() 84 GrBackendFormat::GrBackendFormat(GrGLenum format, GrGLenum target) in GrBackendFormat() function in GrBackendFormat 107 GrGLFormat GrBackendFormat::asGLFormat() const { in asGLFormat() 114 GrBackendFormat GrBackendFormat::MakeVk(const GrVkYcbcrConversionInfo& ycbcrInfo) { in MakeVk() 116 return GrBackendFormat(ycbcrInfo.fFormat, ycbcrInfo); in MakeVk() 119 GrBackendFormat::GrBackendFormat(VkFormat vkFormat, const GrVkYcbcrConversionInfo& ycbcrInfo) in GrBackendFormat() function in GrBackendFormat 134 bool GrBackendFormat::asVkFormat(VkFormat* format) const { in asVkFormat() [all …]
|
D | GrAHardwareBufferUtils.cpp | 63 GrBackendFormat GetBackendFormat(GrDirectContext* dContext, AHardwareBuffer* hardwareBuffer, in GetBackendFormat() 72 return GrBackendFormat::MakeGL(GR_GL_RGBA8, GR_GL_TEXTURE_EXTERNAL); in GetBackendFormat() 74 return GrBackendFormat::MakeGL(GR_GL_RGBA16F, GR_GL_TEXTURE_EXTERNAL); in GetBackendFormat() 76 return GrBackendFormat::MakeGL(GR_GL_RGB565, GR_GL_TEXTURE_EXTERNAL); in GetBackendFormat() 78 return GrBackendFormat::MakeGL(GR_GL_RGB10_A2, GR_GL_TEXTURE_EXTERNAL); in GetBackendFormat() 80 return GrBackendFormat::MakeGL(GR_GL_RGB8, GR_GL_TEXTURE_EXTERNAL); in GetBackendFormat() 83 return GrBackendFormat(); in GetBackendFormat() 85 return GrBackendFormat::MakeGL(GR_GL_RGBA8, GR_GL_TEXTURE_EXTERNAL); in GetBackendFormat() 92 return GrBackendFormat::MakeVk(VK_FORMAT_R8G8B8A8_UNORM); in GetBackendFormat() 94 return GrBackendFormat::MakeVk(VK_FORMAT_R16G16B16A16_SFLOAT); in GetBackendFormat() [all …]
|
D | GrBackendUtils.h | 15 SkImage::CompressionType GrBackendFormatToCompressionType(const GrBackendFormat& format); 19 size_t GrBackendFormatBytesPerBlock(const GrBackendFormat& format); 22 size_t GrBackendFormatBytesPerPixel(const GrBackendFormat& format); 24 int GrBackendFormatStencilBits(const GrBackendFormat& format);
|
D | GrResourceProvider.h | 64 const GrBackendFormat& format, 71 const GrBackendFormat& format, 84 const GrBackendFormat& format, 99 const GrBackendFormat&, 114 const GrBackendFormat&, 125 const GrBackendFormat&, 276 const GrBackendFormat& format, 319 const GrBackendFormat&, 329 const GrBackendFormat&, 337 GrColorType prepareLevels(const GrBackendFormat& format,
|
/external/skia/src/gpu/d3d/ |
D | GrD3DCaps.h | 29 bool isFormatSRGB(const GrBackendFormat&) const override; 31 bool isFormatTexturable(const GrBackendFormat&) const override; 34 bool isFormatCopyable(const GrBackendFormat&) const override { return true; } in isFormatCopyable() argument 36 bool isFormatAsColorTypeRenderable(GrColorType ct, const GrBackendFormat& format, 38 bool isFormatRenderable(const GrBackendFormat& format, int sampleCount) const override; 43 int getRenderTargetSampleCount(int requestedCount, const GrBackendFormat&) const override; 46 int maxRenderTargetSampleCount(const GrBackendFormat&) const override; 52 const GrBackendFormat& surfaceFormat, 87 GrBackendFormat getBackendFormatFromCompressionType(SkImage::CompressionType) const override; 94 GrSwizzle getWriteSwizzle(const GrBackendFormat&, GrColorType) const override; [all …]
|
D | GrD3DCaps.cpp | 766 bool GrD3DCaps::isFormatSRGB(const GrBackendFormat& format) const { in isFormatSRGB() 780 bool GrD3DCaps::isFormatTexturable(const GrBackendFormat& format) const { in isFormatTexturable() 794 bool GrD3DCaps::isFormatAsColorTypeRenderable(GrColorType ct, const GrBackendFormat& format, in isFormatAsColorTypeRenderable() 810 bool GrD3DCaps::isFormatRenderable(const GrBackendFormat& format, int sampleCount) const { in isFormatRenderable() 828 const GrBackendFormat& format) const { in getRenderTargetSampleCount() 861 int GrD3DCaps::maxRenderTargetSampleCount(const GrBackendFormat& format) const { in maxRenderTargetSampleCount() 885 GrColorType surfaceColorType, const GrBackendFormat& surfaceFormat, in supportedWritePixelsColorType() 935 const GrBackendFormat& format) const { in onAreColorTypeAndFormatCompatible() 950 GrBackendFormat GrD3DCaps::onGetDefaultBackendFormat(GrColorType ct) const { in onGetDefaultBackendFormat() 955 return GrBackendFormat::MakeDxgi(format); in onGetDefaultBackendFormat() [all …]
|
/external/skqp/include/gpu/ |
D | GrBackendSurface.h | 41 class SK_API GrBackendFormat { 44 GrBackendFormat() : fValid(false) {} in GrBackendFormat() function 46 static GrBackendFormat MakeGL(GrGLenum format, GrGLenum target) { in MakeGL() 47 return GrBackendFormat(format, target); in MakeGL() 50 static GrBackendFormat MakeVk(VkFormat format) { in MakeVk() 51 return GrBackendFormat(format, GrVkYcbcrConversionInfo()); in MakeVk() 57 static GrBackendFormat MakeVk(const GrVkYcbcrConversionInfo& ycbcrInfo); 60 static GrBackendFormat MakeMtl(GrMTLPixelFormat format) { in MakeMtl() 61 return GrBackendFormat(format); in MakeMtl() 65 static GrBackendFormat MakeMock(GrPixelConfig config) { in MakeMock() [all …]
|
/external/skia/src/gpu/mtl/ |
D | GrMtlCaps.h | 27 bool isFormatSRGB(const GrBackendFormat&) const override; 29 bool isFormatTexturable(const GrBackendFormat&) const override; 32 bool isFormatCopyable(const GrBackendFormat&) const override { return true; } in isFormatCopyable() argument 34 bool isFormatAsColorTypeRenderable(GrColorType ct, const GrBackendFormat& format, 36 bool isFormatRenderable(const GrBackendFormat& format, int sampleCount) const override; 39 int getRenderTargetSampleCount(int requestedCount, const GrBackendFormat&) const override; 42 int maxRenderTargetSampleCount(const GrBackendFormat&) const override; 46 const GrBackendFormat& surfaceFormat, 83 GrBackendFormat getBackendFormatFromCompressionType(SkImage::CompressionType) const override; 90 GrSwizzle getWriteSwizzle(const GrBackendFormat&, GrColorType) const override; [all …]
|
D | GrMtlCppUtil.h | 14 class GrBackendFormat; variable 20 size_t GrMtlBackendFormatBytesPerBlock(const GrBackendFormat& format); 22 int GrMtlBackendFormatStencilBits(const GrBackendFormat& format); 26 SkImage::CompressionType GrMtlBackendFormatToCompressionType(const GrBackendFormat& format);
|
/external/skqp/src/gpu/ |
D | GrBackendSurface.cpp | 23 GrBackendFormat::GrBackendFormat(GrGLenum format, GrGLenum target) in GrBackendFormat() function in GrBackendFormat 42 const GrGLenum* GrBackendFormat::getGLFormat() const { in getGLFormat() 49 const GrGLenum* GrBackendFormat::getGLTarget() const { in getGLTarget() 66 GrBackendFormat GrBackendFormat::MakeVk(const GrVkYcbcrConversionInfo& ycbcrInfo) { in MakeVk() 68 return GrBackendFormat(VK_FORMAT_UNDEFINED, ycbcrInfo); in MakeVk() 70 return GrBackendFormat(); in MakeVk() 74 GrBackendFormat::GrBackendFormat(VkFormat vkFormat, const GrVkYcbcrConversionInfo& ycbcrInfo) in GrBackendFormat() function in GrBackendFormat 86 const VkFormat* GrBackendFormat::getVkFormat() const { in getVkFormat() 93 const GrVkYcbcrConversionInfo* GrBackendFormat::getVkYcbcrConversionInfo() const { in getVkYcbcrConversionInfo() 101 GrBackendFormat::GrBackendFormat(GrMTLPixelFormat mtlFormat) in GrBackendFormat() function in GrBackendFormat [all …]
|
D | GrAHardwareBufferImageGenerator.cpp | 160 const GrBackendFormat& backendFormat) { in make_vk_backend_texture() 373 const GrBackendFormat& backendFormat) { in make_gl_backend_texture() 431 const GrBackendFormat& backendFormat) { in make_backend_texture() 453 GrBackendFormat get_backend_format(GrContext* context, AHardwareBuffer* hardwareBuffer, in get_backend_format() 460 return GrBackendFormat::MakeGL(GR_GL_RGBA8, GR_GL_TEXTURE_EXTERNAL); in get_backend_format() 462 return GrBackendFormat::MakeGL(GR_GL_RGBA16F, GR_GL_TEXTURE_EXTERNAL); in get_backend_format() 464 return GrBackendFormat::MakeGL(GR_GL_RGB565, GR_GL_TEXTURE_EXTERNAL); in get_backend_format() 466 return GrBackendFormat::MakeGL(GR_GL_RGB10_A2, GR_GL_TEXTURE_EXTERNAL); in get_backend_format() 468 return GrBackendFormat::MakeGL(GR_GL_RGB8, GR_GL_TEXTURE_EXTERNAL); in get_backend_format() 470 return GrBackendFormat::MakeGL(GR_GL_RGBA8, GR_GL_TEXTURE_EXTERNAL); in get_backend_format() [all …]
|
D | GrProxyProvider.h | 79 sk_sp<GrTextureProxy> createMipMapProxy(const GrBackendFormat&, const GrSurfaceDesc&, 90 sk_sp<GrTextureProxy> createProxy(const GrBackendFormat&, const GrSurfaceDesc&, GrSurfaceOrigin, 95 const GrBackendFormat& format, const GrSurfaceDesc& desc, 164 sk_sp<GrTextureProxy> createLazyProxy(LazyInstantiateCallback&&, const GrBackendFormat&, 169 sk_sp<GrTextureProxy> createLazyProxy(LazyInstantiateCallback&&, const GrBackendFormat&, 173 sk_sp<GrTextureProxy> createLazyProxy(LazyInstantiateCallback&&, const GrBackendFormat&, 179 const GrBackendFormat&, 192 const GrBackendFormat&, Renderable,
|
/external/skqp/tests/ |
D | DeferredDisplayListTest.cpp | 51 static GrBackendFormat create_backend_format(GrContext* context, in create_backend_format() 63 return GrBackendFormat(); in create_backend_format() 66 return GrBackendFormat::MakeGL(GR_GL_ALPHA8, GR_GL_TEXTURE_2D); in create_backend_format() 69 return GrBackendFormat::MakeGL(GR_GL_R8, GR_GL_TEXTURE_2D); in create_backend_format() 74 return GrBackendFormat::MakeGL(GR_GL_RGB565, GR_GL_TEXTURE_2D); in create_backend_format() 79 return GrBackendFormat::MakeGL(GR_GL_RGBA4, GR_GL_TEXTURE_2D); in create_backend_format() 84 return GrBackendFormat::MakeGL(GR_GL_RGBA8, GR_GL_TEXTURE_2D); in create_backend_format() 89 return GrBackendFormat::MakeGL(GR_GL_RGB8, GR_GL_TEXTURE_2D); in create_backend_format() 95 return GrBackendFormat::MakeGL(GR_GL_RGBA8, GR_GL_TEXTURE_2D); in create_backend_format() 97 return GrBackendFormat::MakeGL(GR_GL_BGRA8, GR_GL_TEXTURE_2D); in create_backend_format() [all …]
|
/external/skia/src/gpu/vk/ |
D | GrVkCaps.h | 37 bool isFormatSRGB(const GrBackendFormat&) const override; 39 bool isFormatTexturable(const GrBackendFormat&) const override; 42 bool isFormatCopyable(const GrBackendFormat&) const override { return true; } in isFormatCopyable() argument 45 const GrBackendFormat& format, 47 bool isFormatRenderable(const GrBackendFormat& format, int sampleCount) const override; 50 int getRenderTargetSampleCount(int requestedCount, const GrBackendFormat&) const override; 53 int maxRenderTargetSampleCount(const GrBackendFormat&) const override; 57 const GrBackendFormat& surfaceFormat, 228 GrBackendFormat getBackendFormatFromCompressionType(SkImage::CompressionType) const override; 235 GrSwizzle getWriteSwizzle(const GrBackendFormat&, GrColorType) const override; [all …]
|
D | GrVkCaps.cpp | 1385 static bool backend_format_is_external(const GrBackendFormat& format) { in backend_format_is_external() 1401 bool GrVkCaps::isFormatSRGB(const GrBackendFormat& format) const { in isFormatSRGB() 1413 bool GrVkCaps::isFormatTexturable(const GrBackendFormat& format) const { in isFormatTexturable() 1431 bool GrVkCaps::isFormatAsColorTypeRenderable(GrColorType ct, const GrBackendFormat& format, in isFormatAsColorTypeRenderable() 1447 bool GrVkCaps::isFormatRenderable(const GrBackendFormat& format, int sampleCount) const { in isFormatRenderable() 1460 const GrBackendFormat& format) const { in getRenderTargetSampleCount() 1493 int GrVkCaps::maxRenderTargetSampleCount(const GrBackendFormat& format) const { in maxRenderTargetSampleCount() 1523 const GrBackendFormat& surfaceFormat, in supportedWritePixelsColorType() 1599 const GrBackendFormat& format) const { in onAreColorTypeAndFormatCompatible() 1624 GrBackendFormat GrVkCaps::onGetDefaultBackendFormat(GrColorType ct) const { in onGetDefaultBackendFormat() [all …]
|
/external/skia/src/gpu/gl/ |
D | GrGLCaps.h | 121 bool isFormatSRGB(const GrBackendFormat&) const override; 123 bool isFormatTexturable(const GrBackendFormat&) const override; 126 bool isFormatAsColorTypeRenderable(GrColorType ct, const GrBackendFormat& format, 128 bool isFormatRenderable(const GrBackendFormat& format, int sampleCount) const override; 134 const GrBackendFormat& format) const override { in getRenderTargetSampleCount() 139 int maxRenderTargetSampleCount(const GrBackendFormat& format) const override { in maxRenderTargetSampleCount() 144 bool isFormatCopyable(const GrBackendFormat&) const override; 327 const GrBackendFormat& surfaceFormat, 441 GrBackendFormat getBackendFormatFromCompressionType(SkImage::CompressionType) const override; 443 GrSwizzle getWriteSwizzle(const GrBackendFormat&, GrColorType) const override; [all …]
|