Flutter Engine Uber Docs
Docs for the entire Flutter Engine repo.
 
Loading...
Searching...
No Matches
flutter::testing::DlSurfaceInstanceSkia Class Reference

#include <dl_test_surface_instance_skia.h>

Inheritance diagram for flutter::testing::DlSurfaceInstanceSkia:
flutter::testing::DlSurfaceInstanceSkiaBase flutter::testing::DlSurfaceInstance

Public Member Functions

 DlSurfaceInstanceSkia (sk_sp< SkSurface > surface)
 
 ~DlSurfaceInstanceSkia ()
 
- Public Member Functions inherited from flutter::testing::DlSurfaceInstanceSkiaBase
void Clear (const DlColor &color) override
 Clear the entire surface to the indicated color.
 
DlCanvasGetCanvas () override
 
void RenderDisplayList (const sk_sp< DisplayList > &display_list) override
 
void FlushSubmitCpuSync () override
 
std::unique_ptr< DlPixelDataSnapshotToPixelData () const override
 
sk_sp< DlImageSnapshotToImage () const override
 
bool SnapshotToFile (std::string &filename) const override
 Store a snapshot of this Surface to the file indicated by the filename.
 
int width () const override
 The width of the underlying surface.
 
int height () const override
 The height of the underlying surface.
 
sk_sp< SkSurface > sk_surface () override
 
- Public Member Functions inherited from flutter::testing::DlSurfaceInstance
virtual ~DlSurfaceInstance ()=default
 
DlISize GetSize () const
 The size of the underlying surface.
 

Protected Member Functions

sk_sp< SkSurface > GetSurface () const override
 
- Protected Member Functions inherited from flutter::testing::DlSurfaceInstanceSkiaBase
 DlSurfaceInstanceSkiaBase ()
 
virtual ~DlSurfaceInstanceSkiaBase ()
 

Detailed Description

Definition at line 57 of file dl_test_surface_instance_skia.h.

Constructor & Destructor Documentation

◆ DlSurfaceInstanceSkia()

flutter::testing::DlSurfaceInstanceSkia::DlSurfaceInstanceSkia ( sk_sp< SkSurface >  surface)
explicit

Definition at line 103 of file dl_test_surface_instance_skia.cc.

References surface.

◆ ~DlSurfaceInstanceSkia()

flutter::testing::DlSurfaceInstanceSkia::~DlSurfaceInstanceSkia ( )
default

Member Function Documentation

◆ GetSurface()

sk_sp< SkSurface > flutter::testing::DlSurfaceInstanceSkia::GetSurface ( ) const
overrideprotectedvirtual

Implements flutter::testing::DlSurfaceInstanceSkiaBase.

Definition at line 180 of file dl_test_surface_instance_skia.cc.

180 {
181 return surface_;
182}

The documentation for this class was generated from the following files: