Flutter Engine
 
Loading...
Searching...
No Matches
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 ClearRenderContext ()
 
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 55 of file gpu_surface_metal_skia.mm.

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

◆ ~GPUSurfaceMetalSkia()

flutter::GPUSurfaceMetalSkia::~GPUSurfaceMetalSkia ( )
default

Member Function Documentation

◆ IsValid()

bool flutter::GPUSurfaceMetalSkia::IsValid ( )
overridevirtual

Implements flutter::Surface.

Definition at line 73 of file gpu_surface_metal_skia.mm.

73 {
74 return context_ != nullptr;
75}

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