Inherits AsyncReadGMBase.
Definition at line 531 of file asyncrescaleandread.cpp.
◆ AyncYUVNoScaleGM()
Type::kRGBA::AyncYUVNoScaleGM::AyncYUVNoScaleGM |
( |
| ) |
|
|
inline |
◆ getISize()
SkISize Type::kRGBA::AyncYUVNoScaleGM::getISize |
( |
| ) |
|
|
inlineoverride |
◆ onDraw()
DrawResult Type::kRGBA::AyncYUVNoScaleGM::onDraw |
( |
SkCanvas * |
canvas, |
|
|
SkString * |
errorMsg |
|
) |
| |
|
inlineoverride |
Definition at line 534 of file asyncrescaleandread.cpp.
534 {
537 *errorMsg = "Not supported on recording/vector backends.";
539 }
540
542 if (!dContext &&
surface->recordingContext()) {
543 *errorMsg = "Not supported in DDL mode";
545 }
546
550 }
553
556 auto yuvImage = readAndScaleYUVA<ReadSource::kSurface>(
surface,
559 false,
560 dContext,
561 recorder,
565 &scopeExit);
566
569
571 }
static GrDirectContext * GrAsDirectContext(GrContext_Base *base)
constexpr SkColor SK_ColorWHITE
@ kRec601_SkYUVColorSpace
SkSurface * getSurface() const
virtual skgpu::graphite::Recorder * recorder() const
void clear(SkColor color)
void drawImage(const SkImage *image, SkScalar left, SkScalar top)
sk_sp< const SkImage > image
static constexpr SkIRect MakeWH(int32_t w, int32_t h)
The documentation for this class was generated from the following file: