30 std::unique_ptr<Recorder> surfaceRecorder = context->makeRecorder();
36 std::unique_ptr<Recording> surfaceRecording = surfaceRecorder->snap();
38 context->insertRecording({surfaceRecording.get()});
42 paint.setStrokeWidth(3);
44 paint.setStyle(SkPaint::Style::kStroke_Style);
47 constexpr int kPathPoints[][2] = {
55 path.lineTo(kPathPoints[
i][0], kPathPoints[
i][1]);
60 std::unique_ptr<Recording> surfaceRecording2 = surfaceRecorder->snap();
62 context->insertRecording({surfaceRecording2.get()});
66 bitmap.allocPixels(surfaceImageInfo);
79 for (
size_t i = 0;
i <
std::size(kPathPoints) - 1; ++
i) {
@ kPremul_SkAlphaType
pixel components are premultiplied by alpha
@ kRGBA_8888_SkColorType
pixel with 8 bits for red, green, blue, alpha; in 32-bit word
#define REPORTER_ASSERT(r, cond,...)
void clear(SkColor color)
void drawPath(const SkPath &path, const SkPaint &paint)
constexpr SkColor4f kBlue
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)
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
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
DEF_GRAPHITE_TEST_FOR_ALL_CONTEXTS(DeviceTestVertexTransparency, reporter, context, CtsEnforcement::kNextRelease)
static SkImageInfo Make(int width, int height, SkColorType ct, SkAlphaType at)