111 {
114#if defined(SK_GRAPHITE)
116#endif
117 if (!context && !recorder) {
120 }
121
122 if (!fYUVImage) {
123 *errorMsg = "No valid YUV image generated -- skipping";
125 }
126
130
131
134
136
139
143
144 const SkIRect* subset = j > 0 ? &kColorRect :
nullptr;
145
147 if (j > 0) {
149 }
150
155
156
159 if (subset) {
161#if defined(SK_GRAPHITE)
162 if (recorder) {
163 subsetImg = fYUVImage->
makeSubset(recorder, *subset, {
false});
164 } else
165#endif
166 {
167 subsetImg = fYUVImage->
makeSubset(context, *subset);
168 }
172 } else {
175 }
178 x +=
rect.width() + kTestPad;
179 }
180
181 y +=
rect.height() + kTestPad;
182 }
183
185 }
static GrDirectContext * GrAsDirectContext(GrContext_Base *base)
constexpr SkColor SK_ColorBLACK
static constexpr int kSkTileModeCount
void drawRect(const SkRect &rect, const SkPaint &paint)
virtual GrRecordingContext * recordingContext() const
virtual skgpu::graphite::Recorder * recorder() const
void concat(const SkMatrix &matrix)
SkISize dimensions() const
sk_sp< SkShader > makeShader(SkTileMode tmx, SkTileMode tmy, const SkSamplingOptions &, const SkMatrix *localMatrix=nullptr) const
virtual sk_sp< SkImage > makeSubset(GrDirectContext *direct, const SkIRect &subset) const =0
SkMatrix & postScale(SkScalar sx, SkScalar sy, SkScalar px, SkScalar py)
static SkMatrix Translate(SkScalar dx, SkScalar dy)
static const SkMatrix & I()
static constexpr char kErrorMsg_DrawSkippedGpuOnly[]
sk_sp< SkBlender > blender SkRect rect
SkSamplingOptions sampling
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 constexpr SkIRect MakeLTRB(int32_t l, int32_t t, int32_t r, int32_t b)
static SkRect Make(const SkISize &size)