Flutter Engine
The Flutter Engine
|
#include <MetalWindowContext.h>
Public Member Functions | |
sk_sp< SkSurface > | getBackbufferSurface () override |
bool | isValid () override |
void | setDisplayParams (const DisplayParams ¶ms) override |
Public Member Functions inherited from skwindow::WindowContext | |
WindowContext (const DisplayParams &) | |
virtual | ~WindowContext () |
virtual sk_sp< SkSurface > | getBackbufferSurface ()=0 |
void | swapBuffers () |
virtual bool | isValid ()=0 |
virtual void | resize (int w, int h)=0 |
virtual void | activate (bool isActive) |
const DisplayParams & | getDisplayParams () |
virtual void | setDisplayParams (const DisplayParams ¶ms)=0 |
GrDirectContext * | directContext () const |
int | width () const |
int | height () const |
SkISize | dimensions () const |
int | sampleCount () const |
int | stencilBits () const |
Protected Member Functions | |
MetalWindowContext (const DisplayParams &) | |
void | initializeContext () |
virtual bool | onInitializeContext ()=0 |
void | destroyContext () |
virtual void | onDestroyContext ()=0 |
void | onSwapBuffers () override |
Protected Member Functions inherited from skwindow::WindowContext | |
virtual bool | isGpuContext () |
virtual void | onSwapBuffers ()=0 |
Protected Attributes | |
bool | fValid |
sk_cfp< id< MTLDevice > > | fDevice |
sk_cfp< id< MTLCommandQueue > > | fQueue |
CAMetalLayer * | fMetalLayer |
GrMTLHandle | fDrawableHandle |
Protected Attributes inherited from skwindow::WindowContext | |
sk_sp< GrDirectContext > | fContext |
int | fWidth |
int | fHeight |
DisplayParams | fDisplayParams |
int | fSampleCount = 1 |
int | fStencilBits = 0 |
Definition at line 22 of file MetalWindowContext.h.
|
protected |
Definition at line 30 of file MetalWindowContext.mm.
|
protected |
Definition at line 68 of file MetalWindowContext.mm.
Implements skwindow::WindowContext.
Definition at line 84 of file MetalWindowContext.mm.
|
protected |
Definition at line 37 of file MetalWindowContext.mm.
|
inlineoverridevirtual |
|
protectedpure virtual |
|
protectedpure virtual |
|
overrideprotectedvirtual |
Implements skwindow::WindowContext.
Definition at line 122 of file MetalWindowContext.mm.
|
overridevirtual |
Implements skwindow::WindowContext.
Definition at line 135 of file MetalWindowContext.mm.
|
protected |
Definition at line 46 of file MetalWindowContext.h.
|
protected |
Definition at line 49 of file MetalWindowContext.h.
|
protected |
Definition at line 48 of file MetalWindowContext.h.
|
protected |
Definition at line 47 of file MetalWindowContext.h.
|
protected |
Definition at line 45 of file MetalWindowContext.h.