103 {
106
107#if defined(SK_GRAPHITE)
109 isGPU = isGPU ||
SkToBool(recorder);
110#endif
111
112 if (!isGPU) {
115 }
116
117
118
120
127 *errorMsg = "This test requires a surface";
129 }
130
132 paint.setAntiAlias(
true);
133
135
138
140
141
142
143
146 yOffset += stride;
148
149
150 surfaceCanvas->
rotate(-0.05f);
153 yOffset += stride;
154
155 if (dContext) {
156
158 }
159
162 yOffset += stride;
164 }
static void info(const char *fmt,...) SK_PRINTF_LIKE(1
static GrDirectContext * GrAsDirectContext(GrContext_Base *base)
@ kPremul_SkAlphaType
pixel components are premultiplied by alpha
constexpr SkColor SK_ColorWHITE
#define SkScalarCeilToScalar(x)
@ kUnknown_SkPixelGeometry
static constexpr bool SkToBool(const T &x)
void drawColor(SkColor color, SkBlendMode mode=SkBlendMode::kSrcOver)
virtual GrRecordingContext * recordingContext() const
virtual skgpu::graphite::Recorder * recorder() const
void rotate(SkScalar degrees)
SkImageInfo imageInfo() const
void drawTextBlob(const SkTextBlob *blob, SkScalar x, SkScalar y, const SkPaint &paint)
const SkRect & bounds() const
static constexpr char kErrorMsg_DrawSkippedGpuOnly[]
sk_sp< SkColorSpace > refColorSpace() const
static SkImageInfo Make(int width, int height, SkColorType ct, SkAlphaType at)
SkColorType colorType() const
constexpr float height() const