Flutter Engine
The Flutter Engine
|
#include <DawnCaps.h>
Static Public Attributes | |
static constexpr size_t | kFormatCnt = 16 |
Private Member Functions | |
const ColorTypeInfo * | getColorTypeInfo (SkColorType, const TextureInfo &) const override |
bool | onIsTexturable (const TextureInfo &) const override |
bool | supportsWritePixels (const TextureInfo &textureInfo) const override |
bool | supportsReadPixels (const TextureInfo &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 |
Definition at line 22 of file DawnCaps.h.
skgpu::graphite::DawnCaps::DawnCaps | ( | const DawnBackendContext & | backendContext, |
const ContextOptions & | options | ||
) |
Definition at line 72 of file DawnCaps.cpp.
|
overridedefault |
|
inline |
Definition at line 28 of file DawnCaps.h.
|
overridevirtual |
Implements skgpu::graphite::Caps.
Definition at line 888 of file DawnCaps.cpp.
|
overridevirtual |
Implements skgpu::graphite::Caps.
Definition at line 82 of file DawnCaps.cpp.
|
overrideprivatevirtual |
Implements skgpu::graphite::Caps.
Definition at line 344 of file DawnCaps.cpp.
|
overridevirtual |
Implements skgpu::graphite::Caps.
Definition at line 236 of file DawnCaps.cpp.
|
overridevirtual |
Implements skgpu::graphite::Caps.
Definition at line 281 of file DawnCaps.cpp.
|
overridevirtual |
Implements skgpu::graphite::Caps.
Definition at line 258 of file DawnCaps.cpp.
|
overridevirtual |
Implements skgpu::graphite::Caps.
Definition at line 182 of file DawnCaps.cpp.
|
overridevirtual |
Implements skgpu::graphite::Caps.
Definition at line 301 of file DawnCaps.cpp.
|
overridevirtual |
Reimplemented from skgpu::graphite::Caps.
Definition at line 326 of file DawnCaps.cpp.
uint64_t skgpu::graphite::DawnCaps::getRenderPassDescKey | ( | const RenderPassDesc & | renderPassDesc | ) | const |
Definition at line 836 of file DawnCaps.cpp.
|
overridevirtual |
Implements skgpu::graphite::Caps.
Definition at line 208 of file DawnCaps.cpp.
|
overridevirtual |
Implements skgpu::graphite::Caps.
Definition at line 149 of file DawnCaps.cpp.
|
overridevirtual |
Implements skgpu::graphite::Caps.
Definition at line 155 of file DawnCaps.cpp.
|
overridevirtual |
Implements skgpu::graphite::Caps.
Definition at line 871 of file DawnCaps.cpp.
|
overridevirtual |
Implements skgpu::graphite::Caps.
Definition at line 849 of file DawnCaps.cpp.
|
overrideprivatevirtual |
Implements skgpu::graphite::Caps.
Definition at line 86 of file DawnCaps.cpp.
|
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 380 of file DawnCaps.cpp.
|
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 373 of file DawnCaps.cpp.
|
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 368 of file DawnCaps.cpp.
|
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 363 of file DawnCaps.cpp.
|
inline |
Definition at line 27 of file DawnCaps.h.
|
staticconstexpr |
Definition at line 60 of file DawnCaps.h.