Flutter Engine
The Flutter Engine
Public Member Functions | List of all members
WindowSurface Class Referencefinal

#include <Surface.h>

Inheritance diagram for WindowSurface:
Surface SkRefCnt SkRefCntBase

Public Member Functions

 WindowSurface (ANativeWindow *win, std::unique_ptr< skwindow::WindowContext > wctx)
 
- Public Member Functions inherited from Surface
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
 

Additional Inherited Members

- Protected Attributes inherited from Surface
sk_sp< SkSurfacefSurface
 

Detailed Description

Definition at line 46 of file Surface.h.

Constructor & Destructor Documentation

◆ WindowSurface()

WindowSurface::WindowSurface ( ANativeWindow win,
std::unique_ptr< skwindow::WindowContext wctx 
)

Definition at line 17 of file Surface.cpp.

18 : fWindow(win)
19 , fWindowContext(std::move(wctx))
20{
21 SkASSERT(fWindow);
22 SkASSERT(fWindowContext);
23
24 fSurface = fWindowContext->getBackbufferSurface();
25}
#define SkASSERT(cond)
Definition: SkAssert.h:116
sk_sp< SkSurface > fSurface
Definition: Surface.h:43

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