Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Public Member Functions | Protected Attributes | List of all members
Surface Class Referenceabstract

#include <Surface.h>

Inheritance diagram for Surface:
SkRefCnt SkRefCntBase ThreadedSurface WindowSurface

Public Member Functions

virtual void release (JNIEnv *)=0
 
virtual void flushAndSubmit ()=0
 
virtual SkCanvasgetCanvas ()=0
 
int width () const
 
int height () const
 
sk_sp< SkImagemakeImageSnapshot () const
 
- Public Member Functions inherited from SkRefCntBase
 SkRefCntBase ()
 
virtual ~SkRefCntBase ()
 
bool unique () const
 
void ref () const
 
void unref () const
 

Protected Attributes

sk_sp< SkSurfacefSurface
 

Detailed Description

Definition at line 29 of file Surface.h.

Member Function Documentation

◆ flushAndSubmit()

virtual void Surface::flushAndSubmit ( )
pure virtual

Implemented in WindowSurface, and ThreadedSurface.

◆ getCanvas()

virtual SkCanvas * Surface::getCanvas ( )
pure virtual

Implemented in WindowSurface, and ThreadedSurface.

◆ height()

int Surface::height ( ) const
inline

Definition at line 36 of file Surface.h.

36{ return fSurface ? fSurface->height() : 0; }
int height() const
Definition SkSurface.h:184
sk_sp< SkSurface > fSurface
Definition Surface.h:43

◆ makeImageSnapshot()

sk_sp< SkImage > Surface::makeImageSnapshot ( ) const
inline

Definition at line 38 of file Surface.h.

38 {
39 return fSurface ? fSurface->makeImageSnapshot() : nullptr;
40 }
sk_sp< SkImage > makeImageSnapshot()
Definition SkSurface.cpp:90

◆ release()

virtual void Surface::release ( JNIEnv *  )
pure virtual

Implemented in WindowSurface, and ThreadedSurface.

◆ width()

int Surface::width ( ) const
inline

Definition at line 35 of file Surface.h.

35{ return fSurface ? fSurface->width() : 0; }
int width() const
Definition SkSurface.h:178

Member Data Documentation

◆ fSurface

sk_sp<SkSurface> Surface::fSurface
protected

Definition at line 43 of file Surface.h.


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