45 {
46
52
54 if (dContext && !dContext->abandoned()) {
56 }
57
58#if defined(SK_GRAPHITE)
60 if (recorder) {
62 }
63#endif
64
67 }
69 *errorMsg = "Could not create surface.";
71 }
72
74
76 for (
int x = 0;
x < 10; ++
x) {
77 for (
int y = 0;
y < 10; ++
y) {
78 surface->getCanvas()->discard();
79
82 case 0:
84 break;
85 case 1:
87 break;
88 case 2:
92 break;
93 }
95 }
96 }
97
98 surface->getCanvas()->discard();
100 }
static void info(const char *fmt,...) SK_PRINTF_LIKE(1
static GrDirectContext * GrAsDirectContext(GrContext_Base *base)
constexpr SkColor SK_ColorBLACK
virtual GrRecordingContext * recordingContext() const
virtual skgpu::graphite::Recorder * recorder() const
void clear(SkColor color)
uint32_t nextULessThan(uint32_t count)
SkISize getISize() override
SK_API sk_sp< SkShader > Color(SkColor)
SK_API sk_sp< SkSurface > Raster(const SkImageInfo &imageInfo, size_t rowBytes, const SkSurfaceProps *surfaceProps)
SK_API sk_sp< SkSurface > RenderTarget(GrRecordingContext *context, skgpu::Budgeted budgeted, const SkImageInfo &imageInfo, int sampleCount, GrSurfaceOrigin surfaceOrigin, const SkSurfaceProps *surfaceProps, bool shouldCreateWithMips=false, bool isProtected=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
static SkImageInfo MakeN32Premul(int width, int height)