5#ifndef FLUTTER_DISPLAY_LIST_TESTING_SKIA_DL_TEST_SURFACE_INSTANCE_SKIA_H_
6#define FLUTTER_DISPLAY_LIST_TESTING_SKIA_DL_TEST_SURFACE_INSTANCE_SKIA_H_
37 int width()
const override;
40 int height()
const override;
54 sk_sp<SkImage> GetRasterImage()
const;
66 sk_sp<SkSurface> surface_;
Developer-facing API for rendering anything within the engine.
Backend implementation of |DlCanvas| for |SkCanvas|.
std::unique_ptr< DlPixelData > SnapshotToPixelData() const override
sk_sp< SkSurface > sk_surface() override
DlCanvas * GetCanvas() override
virtual sk_sp< SkSurface > GetSurface() const =0
void RenderDisplayList(const sk_sp< DisplayList > &display_list) override
bool SnapshotToFile(std::string &filename) const override
Store a snapshot of this Surface to the file indicated by the filename.
DlSurfaceInstanceSkiaBase()
void FlushSubmitCpuSync() override
sk_sp< DlImage > SnapshotToImage() const override
int height() const override
The height of the underlying surface.
void Clear(const DlColor &color) override
Clear the entire surface to the indicated color.
virtual ~DlSurfaceInstanceSkiaBase()
int width() const override
The width of the underlying surface.
sk_sp< SkSurface > GetSurface() const override