58 std::unique_ptr<Recorder> recorder = context->makeRecorder();
69 for (
const SkMatrix* mat : {
static_cast<const SkMatrix*
>(
nullptr), &xlate }) {
70 for (
bool mipmapped : {
false,
true }) {
104 std::unique_ptr<Recorder> recorder = context->makeRecorder();
115 for (
bool mipmapped : {
false,
true }) {
DEF_GRAPHITE_TEST_FOR_ALL_CONTEXTS(CacheKeyTest_Picture, reporter, context, CtsEnforcement::kNextRelease)
@ 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_ColorMAGENTA
@ kUnknown_SkPixelGeometry
#define REPORTER_ASSERT(r, cond,...)
void allocPixels(const SkImageInfo &info, size_t rowBytes)
bool extractSubset(SkBitmap *dst, const SkIRect &subset) const
uint32_t getGenerationID() const
void eraseColor(SkColor4f) const
void drawRect(const SkRect &rect, const SkPaint &paint)
static sk_sp< SkColorSpace > MakeSRGB()
uint32_t uniqueID() const
static SkMatrix Translate(SkScalar dx, SkScalar dy)
SkCanvas * beginRecording(const SkRect &bounds, sk_sp< SkBBoxHierarchy > bbh)
sk_sp< SkPicture > finishRecordingAsPicture()
FlutterSemanticsFlag flags
static SkBitmap create_bitmap(SkIRect contentRect, SkISize fullSize, GrSurfaceOrigin origin)
SK_API sk_sp< SkImage > DeferredFromPicture(sk_sp< SkPicture > picture, const SkISize &dimensions, const SkMatrix *matrix, const SkPaint *paint, BitDepth bitDepth, sk_sp< SkColorSpace > colorSpace, SkSurfaceProps props)
SK_API sk_sp< SkImage > RasterFromBitmap(const SkBitmap &bitmap)
@ kF16
uses 16-bit float per color component
@ kU8
uses 8-bit unsigned int per color component
Optional< SkRect > bounds
sk_sp< const SkPicture > picture
static constexpr SkIRect MakeXYWH(int32_t x, int32_t y, int32_t w, int32_t h)
static SkImageInfo Make(int width, int height, SkColorType ct, SkAlphaType at)
static constexpr SkRect MakeWH(float w, float h)