#include <DMSrcSink.h>
Definition at line 515 of file DMSrcSink.h.
◆ RasterSink()
Definition at line 2120 of file DMSrcSink.cpp.
static SkColorType colorType(AImageDecoder *decoder, const AImageDecoderHeaderInfo *headerInfo)
◆ colorInfo()
Returns the color type and space used by the sink.
Reimplemented from DM::Sink.
Definition at line 524 of file DMSrcSink.h.
524 {
525
528
529 return SkColorInfo(fColorType, alphaType, fColorSpace);
530 }
@ kPremul_SkAlphaType
pixel components are premultiplied by alpha
SK_API bool SkColorTypeValidateAlphaType(SkColorType colorType, SkAlphaType alphaType, SkAlphaType *canonical=nullptr)
◆ draw()
Implements DM::Sink.
Definition at line 2123 of file DMSrcSink.cpp.
2123 {
2125 if (
size.isEmpty()) {
2128 }
2129
2132
2135 return src.draw(
surface->getCanvas(),
nullptr);
2136}
SK_API SkString SkStringPrintf(const char *format,...) SK_PRINTF_LIKE(1
Creates a new string and writes into it using a printf()-style format.
SkColorInfo colorInfo() const override
@ kZeroPixels_AllocFlag
zero pixel memory. No effect. This is the default.
SK_API sk_sp< SkSurface > WrapPixels(const SkImageInfo &imageInfo, void *pixels, size_t rowBytes, const SkSurfaceProps *surfaceProps=nullptr)
it will be possible to load the file into Perfetto s trace viewer disable asset Prevents usage of any non test fonts unless they were explicitly Loaded via prefetched default font Indicates whether the embedding started a prefetch of the default font manager before creating the engine run In non interactive keep the shell running after the Dart script has completed enable serial On low power devices with low core running concurrent GC tasks on threads can cause them to contend with the UI thread which could potentially lead to jank This option turns off all concurrent GC activities domain network JSON encoded network policy per domain This overrides the DisallowInsecureConnections switch Embedder can specify whether to allow or disallow insecure connections at a domain level old gen heap size
static SkImageInfo Make(int width, int height, SkColorType ct, SkAlphaType at)
◆ fileExtension()
const char * DM::RasterSink::fileExtension |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ flags()
◆ setColorSpace()
The documentation for this class was generated from the following files: