Flutter Engine
The Flutter Engine
Public Member Functions | List of all members
flutter::GPUSurfaceMetalSkia Class Reference

#include <gpu_surface_metal_skia.h>

Inheritance diagram for flutter::GPUSurfaceMetalSkia:
flutter::Surface

Public Member Functions

 GPUSurfaceMetalSkia (GPUSurfaceMetalDelegate *delegate, sk_sp< GrDirectContext > context, bool render_to_surface=true)
 
 ~GPUSurfaceMetalSkia ()
 
bool IsValid () override
 
- Public Member Functions inherited from flutter::Surface
 Surface ()
 
virtual ~Surface ()
 
virtual bool IsValid ()=0
 
virtual std::unique_ptr< SurfaceFrameAcquireFrame (const SkISize &size)=0
 
virtual SkMatrix GetRootTransformation () const =0
 
virtual GrDirectContextGetContext ()=0
 
virtual std::unique_ptr< GLContextResultMakeRenderContextCurrent ()
 
virtual bool ClearRenderContext ()
 
virtual bool AllowsDrawingWhenGpuDisabled () const
 
virtual bool EnableRasterCache () const
 
virtual std::shared_ptr< impeller::AiksContextGetAiksContext () const
 
virtual SurfaceData GetSurfaceData () const
 

Detailed Description

Definition at line 17 of file gpu_surface_metal_skia.h.

Constructor & Destructor Documentation

◆ GPUSurfaceMetalSkia()

flutter::GPUSurfaceMetalSkia::GPUSurfaceMetalSkia ( GPUSurfaceMetalDelegate delegate,
sk_sp< GrDirectContext context,
bool  render_to_surface = true 
)

Definition at line 59 of file gpu_surface_metal_skia.mm.

62 : delegate_(delegate),
63 render_target_type_(delegate->GetRenderTargetType()),
64 context_(std::move(context)),
65 render_to_surface_(render_to_surface) {
66 // If this preference is explicitly set, we allow for disabling partial repaint.
67 NSNumber* disablePartialRepaint =
68 [[NSBundle mainBundle] objectForInfoDictionaryKey:@"FLTDisablePartialRepaint"];
69 if (disablePartialRepaint != nil) {
70 disable_partial_repaint_ = disablePartialRepaint.boolValue;
71 }
72}

◆ ~GPUSurfaceMetalSkia()

flutter::GPUSurfaceMetalSkia::~GPUSurfaceMetalSkia ( )
default

Member Function Documentation

◆ IsValid()

bool flutter::GPUSurfaceMetalSkia::IsValid ( )
overridevirtual

Implements flutter::Surface.

Definition at line 77 of file gpu_surface_metal_skia.mm.

77 {
78 return context_ != nullptr;
79}

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