47 static const int kWidth = 100;
59 SkASSERT(!special->isTextureBacked());
68 SkASSERT(!special->isTextureBacked());
76 SkASSERT(!special->isTextureBacked());
87 auto dContext = ctxInfo.directContext();
89 static const int kWidth = 100;
DEF_GANESH_TEST_FOR_RENDERING_CONTEXTS(SpecialImage_GPUDevice, reporter, ctxInfo, CtsEnforcement::kApiLevel_T)
SkAssertResult(font.textToGlyphs("Hello", 5, SkTextEncoding::kUTF8, glyphs, std::size(glyphs))==count)
@ kBottomLeft_GrSurfaceOrigin
#define DEF_TEST(name, reporter)
static sk_sp< SkSpecialImage > MakeSpecial(SkDevice *dev, SkImage *img)
static sk_sp< SkSpecialImage > SnapSpecial(SkDevice *dev)
static sk_sp< SkSpecialImage > MakeSpecial(SkDevice *dev, const SkBitmap &bm)
static sk_sp< SkBitmapDevice > Create(const SkImageInfo &, const SkSurfaceProps &, SkRasterHandleAllocator *=nullptr)
sk_sp< SkImage > asImage() const
uint32_t getGenerationID() const
bool tryAllocN32Pixels(int width, int height, bool isOpaque=false)
virtual sk_sp< SkSpecialImage > snapSpecial(const SkIRect &subset, bool forceCopy=false)
virtual sk_sp< SkSpecialImage > makeSpecial(const SkBitmap &)
uint32_t uniqueID() const
virtual bool isGaneshBacked() const
uint32_t uniqueID() const
const SkIRect & subset() const
SK_API sk_sp< SkImage > TextureFromImage(GrDirectContext *, const SkImage *, skgpu::Mipmapped=skgpu::Mipmapped::kNo, skgpu::Budgeted=skgpu::Budgeted::kYes)
SK_API sk_sp< SkImage > RasterFromBitmap(const SkBitmap &bitmap)
sk_sp< const SkImage > image
static constexpr SkIRect MakeWH(int32_t w, int32_t h)
static SkImageInfo MakeN32Premul(int width, int height)