Flutter Engine
The Flutter Engine
|
#include <MtlCaps.h>
Private Member Functions | |
const ColorTypeInfo * | getColorTypeInfo (SkColorType, const TextureInfo &) const override |
bool | onIsTexturable (const TextureInfo &) const override |
bool | supportsWritePixels (const TextureInfo &) const override |
bool | supportsReadPixels (const TextureInfo &) const override |
std::pair< SkColorType, bool > | supportedWritePixelsColorType (SkColorType dstColorType, const TextureInfo &dstTextureInfo, SkColorType srcColorType) const override |
std::pair< SkColorType, bool > | supportedReadPixelsColorType (SkColorType srcColorType, const TextureInfo &srcTextureInfo, SkColorType dstColorType) const override |
skgpu::graphite::MtlCaps::MtlCaps | ( | const id< MTLDevice > | device, |
const ContextOptions & | options | ||
) |
Definition at line 27 of file MtlCaps.mm.
|
overridevirtual |
Implements skgpu::graphite::Caps.
Definition at line 1214 of file MtlCaps.mm.
|
overridevirtual |
Implements skgpu::graphite::Caps.
Definition at line 1082 of file MtlCaps.mm.
|
overridevirtual |
Reimplemented from skgpu::graphite::Caps.
Definition at line 985 of file MtlCaps.mm.
|
overrideprivatevirtual |
Implements skgpu::graphite::Caps.
Definition at line 941 of file MtlCaps.mm.
|
overridevirtual |
Implements skgpu::graphite::Caps.
Definition at line 847 of file MtlCaps.mm.
|
overridevirtual |
Implements skgpu::graphite::Caps.
Definition at line 902 of file MtlCaps.mm.
|
overridevirtual |
Implements skgpu::graphite::Caps.
Definition at line 879 of file MtlCaps.mm.
|
overridevirtual |
Implements skgpu::graphite::Caps.
Definition at line 791 of file MtlCaps.mm.
|
overridevirtual |
Implements skgpu::graphite::Caps.
Definition at line 917 of file MtlCaps.mm.
uint64_t skgpu::graphite::MtlCaps::getRenderPassDescKey | ( | const RenderPassDesc & | renderPassDesc | ) | const |
Definition at line 1055 of file MtlCaps.mm.
|
overridevirtual |
Implements skgpu::graphite::Caps.
Definition at line 816 of file MtlCaps.mm.
|
inline |
|
inline |
|
overridevirtual |
Implements skgpu::graphite::Caps.
Definition at line 1104 of file MtlCaps.mm.
|
overridevirtual |
Implements skgpu::graphite::Caps.
Definition at line 1114 of file MtlCaps.mm.
|
overridevirtual |
Implements skgpu::graphite::Caps.
Definition at line 1065 of file MtlCaps.mm.
|
overridevirtual |
Implements skgpu::graphite::Caps.
Definition at line 962 of file MtlCaps.mm.
|
overrideprivatevirtual |
Implements skgpu::graphite::Caps.
Definition at line 1086 of file MtlCaps.mm.
|
overrideprivatevirtual |
Given a src surface's color type and its texture info as well as a color type the caller would like read into, this provides a legal color type that the caller can use for readPixels. The returned color type may differ from the passed dstColorType, in which case the caller must convert the read pixel data (see GrConvertPixels). When converting to dstColorType the swizzle in the returned struct should be applied. The caller must check the returned color type for kUnknown.
We currently don't have an SkColorType for a 3 channel RGB format. Additionally the current implementation of raster pipeline requires power of 2 channels, so it is not easy to add such an SkColorType. Thus we need to check for data that is 3 channels using the isRGBFormat return value and handle it manually
Implements skgpu::graphite::Caps.
Definition at line 1191 of file MtlCaps.mm.
|
overrideprivatevirtual |
Given a dst pixel config and a src color type what color type must the caller coax the the data into in order to use writePixels.
We currently don't have an SkColorType for a 3 channel RGB format. Additionally the current implementation of raster pipeline requires power of 2 channels, so it is not easy to add such an SkColorType. Thus we need to check for data that is 3 channels using the isRGBFormat return value and handle it manually
Implements skgpu::graphite::Caps.
Definition at line 1174 of file MtlCaps.mm.
|
overrideprivatevirtual |
Backends may have restrictions on what types of textures support Device::readPixels(). If this returns false then the caller should implement a fallback where a temporary texture is created, the original texture is copied or drawn into it, and then pixels read from the temporary texture.
Implements skgpu::graphite::Caps.
Definition at line 1155 of file MtlCaps.mm.
|
overrideprivatevirtual |
Backends may have restrictions on what types of textures support Device::writePixels(). If this returns false then the caller should implement a fallback where a temporary texture is created, pixels are written to it, and then that is copied or drawn into the the surface.
Implements skgpu::graphite::Caps.
Definition at line 1141 of file MtlCaps.mm.