29#include <initializer_list>
52 for (
int i = 0;
i < 2; ++
i) {
86 rb.
alloc(surfs[1]->imageInfo().makeWH(1, 1));
87 for (
int x : {5, 95}) {
88 for (
int y : {5, 95}) {
89 if (!surfs[1]->readPixels(rb,
x,
y)) {
95 "Expected green at (%d, %d), instead got 0x%08x.",
DEF_GANESH_TEST_FOR_RENDERING_CONTEXTS(crbug_1271431, reporter, context_info, CtsEnforcement::kApiLevel_T)
@ kPremul_SkAlphaType
pixel components are premultiplied by alpha
@ kRGBA_8888_SkColorType
pixel with 8 bits for red, green, blue, alpha; in 32-bit word
constexpr SkColor SK_ColorBLUE
constexpr SkColor SK_ColorRED
constexpr SkColor SK_ColorGREEN
constexpr SkColor SK_ColorWHITE
static SkPath clip(const SkPath &path, const SkHalfPlane &plane)
void flushAndSubmit(GrSyncCpu sync=GrSyncCpu::kNo)
void alloc(const SkImageInfo &)
void drawRect(const SkRect &rect, const SkPaint &paint)
void clear(SkColor color)
void clipPath(const SkPath &path, SkClipOp op, bool doAntiAlias)
SkPath & addCircle(SkScalar x, SkScalar y, SkScalar radius, SkPathDirection dir=SkPathDirection::kCW)
const uint32_t * addr32() const
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)
const myers::Point & get(const myers::Segment &)
static SkImageInfo Make(int width, int height, SkColorType ct, SkAlphaType at)
static constexpr SkRect MakeLTRB(float l, float t, float r, float b)