25 3 * 256 + 40, 256 + 128 + 30) {
28 *errorMsg =
"Could not load mandrill_256.png. Did you forget to set the resourcePath?";
32 auto dContext = rContext->asDirectContext();
34 *errorMsg =
"CrossContext image creation requires a direct context.";
49 canvas->translate(10, 10);
54 canvas->drawImage(
images[
i], 0, 0);
55 canvas->translate(0, 256 + 10);
59 canvas->drawImage(subset, 0, 0);
60 canvas->translate(128, 0);
67 canvas->translate(256 + 10, 0);
SkAssertResult(font.textToGlyphs("Hello", 5, SkTextEncoding::kUTF8, glyphs, std::size(glyphs))==count)
sk_sp< SkData > GetResourceAsData(const char *resource)
#define SkASSERTF(cond, fmt,...)
bool peekPixels(SkPixmap *pixmap) const
DEF_SIMPLE_GPU_GM_CAN_FAIL(cross_context_image, rContext, canvas, errorMsg, 3 *256+40, 256+128+30)
std::array< MockImage, 3 > images
SK_API sk_sp< SkImage > DeferredFromEncodedData(sk_sp< SkData > encoded, std::optional< SkAlphaType > alphaType=std::nullopt)
SK_API sk_sp< SkImage > CrossContextTextureFromPixmap(GrDirectContext *context, const SkPixmap &pixmap, bool buildMips, bool limitToMaxTextureSize=false)
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
SkSamplingOptions(SkFilterMode::kLinear))
static constexpr SkIRect MakeXYWH(int32_t x, int32_t y, int32_t w, int32_t h)
static constexpr SkRect MakeWH(float w, float h)