74 {
80
81
82
85
86
87
88 if (rContext) {
91 }
92
93
94
100 } else {
103 }
104
105
106
108 kN32_SkColorType,
114
116
119
122
125
126
133}
#define SkASSERT_RELEASE(cond)
constexpr SkColor SK_ColorBLUE
sk_sp< T > sk_ref_sp(T *obj)
static constexpr bool SkToBool(const T &x)
#define REPORTER_ASSERT(r, cond,...)
GrTextureProxy * asTextureProxy() const
SkColor getColor(int x, int y) const
const SkImageInfo & info() const
void allocN32Pixels(int width, int height, bool isOpaque=false)
void clear(SkColor color)
void draw(SkCanvas *canvas, SkScalar x, SkScalar y, const SkSamplingOptions &sampling, const SkPaint *paint, bool strict=true) const
virtual bool isGaneshBacked() const
SkColorSpace * getColorSpace() const
const SkIRect & subset() const
virtual bool isGraphiteBacked() const
bool AsBitmap(const SkSpecialImage *img, SkBitmap *result)
GrSurfaceProxyView AsView(GrRecordingContext *context, const SkSpecialImage *img)
SK_API sk_sp< SkSurface > Raster(const SkImageInfo &imageInfo, size_t rowBytes, const SkSurfaceProps *surfaceProps)
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)
constexpr int32_t top() const
constexpr int32_t height() const
constexpr int32_t width() const
constexpr int32_t left() const
static constexpr SkISize Make(int32_t w, int32_t h)