Go to the source code of this file.
◆ DEF_TEST()
DEF_TEST |
( |
Image_NewFromGenerator |
, |
|
|
r |
|
|
) |
| |
Definition at line 94 of file CachedDecodingPixelRefTest.cpp.
94 {
98 };
100 kN32_SkColorType,
102 };
105 for (
const SkColorType testColorType : testColorTypes) {
106 auto gen = std::make_unique<TestImageGenerator>(
test, r, testColorType);
108 if (
nullptr ==
image) {
109 ERRORF(r,
"SkImage::NewFromGenerator unexpecedly failed [%zu]",
i);
110 continue;
111 }
115
119 const SkColor kDefaultColor = 0xffabcdef;
120 canvas.clear(kDefaultColor);
121 canvas.drawImage(
image, 0, 0);
125 }
126 else {
128 }
129 }
130 }
131}
@ kRGB_565_SkColorType
pixel with 5 bits red, 6 bits green, 5 bits blue, in 16-bit word
#define REPORTER_ASSERT(r, cond,...)
virtual bool isLazyGenerated() const =0
@ kFailGetPixels_TestType
@ kSucceedGetPixels_TestType
SK_API sk_sp< SkImage > DeferredFromGenerator(std::unique_ptr< SkImageGenerator > imageGenerator)
sk_sp< const SkImage > image
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