Go to the source code of this file.
◆ REG_FIDDLE()
REG_FIDDLE |
( |
Canvas_MakeRasterDirect |
, |
|
|
256 |
, |
|
|
256 |
, |
|
|
true |
, |
|
|
0 |
|
|
) |
| |
Definition at line 4 of file Canvas_MakeRasterDirect.cpp.
4 {
7 const size_t minRowBytes =
info.minRowBytes();
8 const size_t size =
info.computeMinByteSize();
10
11
16 canvas->drawPoint(1, 1,
paint);
17 for (
int y = 0;
y <
info.height(); ++
y) {
18 for (
int x = 0;
x <
info.width(); ++
x) {
19 SkDebugf(
"%c", *pixels++ == pmWhite ?
'-' :
'x');
20 }
22 }
23 delete[] pixels;
24}
25}
static void info(const char *fmt,...) SK_PRINTF_LIKE(1
constexpr SkColor SK_ColorWHITE
void SK_SPI SkDebugf(const char format[],...) SK_PRINTF_LIKE(1
static void draw(SkCanvas *canvas, SkRect &target, int x, int y)
static std::unique_ptr< SkCanvas > MakeRasterDirect(const SkImageInfo &info, void *pixels, size_t rowBytes, const SkSurfaceProps *props=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 MakeN32Premul(int width, int height)