8 size_t s =
data->size();
9 const char*
d = (
const char*)
data->bytes();
21 if (
src.width() <= 0 ||
src.height() <= 0 || !
src.addr() ||
28 for (
int y = 0;
y <
src.height(); ++
y) {
29 for (
int x = 0;
x <
src.height(); ++
x) {
34 if (n < 6 || n + 1 > (
int)
sizeof(
buffer)) {
52 dump_txt(
data.get(),
"fooa.ppm");
@ kUnknown_SkColorType
uninitialized
#define SkColorGetR(color)
#define SkColorGetG(color)
#define SkColorGetB(color)
void SK_SPI SkDebugf(const char format[],...) SK_PRINTF_LIKE(1
REG_FIDDLE(SkImage_to_PPM_ascii, 256, 256, true, 4)
SK_API SkString SkStringPrintf(const char *format,...) SK_PRINTF_LIKE(1
Creates a new string and writes into it using a printf()-style format.
static void draw(SkCanvas *canvas, SkRect &target, int x, int y)
bool write(const void *buffer, size_t size) override
sk_sp< SkData > detachAsData()
bool asLegacyBitmap(SkBitmap *bitmap, LegacyBitmapMode legacyBitmapMode=kRO_LegacyBitmapMode) const
@ kRO_LegacyBitmapMode
returned bitmap is read-only and immutable
VULKAN_HPP_DEFAULT_DISPATCH_LOADER_DYNAMIC_STORAGE auto & d
static float min(float r, float g, float b)
bool ToBitmap(const SkImage *img, SkBitmap *dst)
sk_sp< const SkImage > image
DEF_SWITCHES_START aot vmservice shared library name
DEF_SWITCHES_START aot vmservice shared library Name of the *so containing AOT compiled Dart assets for launching the service isolate vm snapshot The VM snapshot data that will be memory mapped as read only SnapshotAssetPath must be present isolate snapshot The isolate snapshot data that will be memory mapped as read only SnapshotAssetPath must be present cache dir Path to the cache directory This is different from the persistent_cache_path in embedder which is used for Skia shader cache icu native lib Path to the library file that exports the ICU data vm service The hostname IP address on which the Dart VM Service should be served If not defaults to or::depending on whether ipv6 is specified vm service A custom Dart VM Service port The default is to pick a randomly available open port disable vm Disable the Dart VM Service The Dart VM Service is never available in release mode disable vm service Disable mDNS Dart VM Service publication Bind to the IPv6 localhost address for the Dart VM Service Ignored if vm service host is set endless trace buffer
std::shared_ptr< const fml::Mapping > data