Flutter Engine
 
Loading...
Searching...
No Matches
flutter::GPUSurfaceNoop Class Reference

A rendering surface that accepts rendering intent but does not render anything. More...

#include <gpu_surface_noop.h>

Inheritance diagram for flutter::GPUSurfaceNoop:
flutter::Surface

Public Member Functions

 GPUSurfaceNoop ()
 
 ~GPUSurfaceNoop ()
 
bool IsValid () override
 
Surface::SurfaceData GetSurfaceData () const override
 
- Public Member Functions inherited from flutter::Surface
 Surface ()
 
virtual ~Surface ()
 
virtual bool ClearRenderContext ()
 

Detailed Description

A rendering surface that accepts rendering intent but does not render anything.

This is useful for running on platforms that need an engine instance and don't have the required drivers.

Definition at line 19 of file gpu_surface_noop.h.

Constructor & Destructor Documentation

◆ GPUSurfaceNoop()

flutter::GPUSurfaceNoop::GPUSurfaceNoop ( )
explicitdefault

◆ ~GPUSurfaceNoop()

flutter::GPUSurfaceNoop::~GPUSurfaceNoop ( )
default

Member Function Documentation

◆ GetSurfaceData()

Surface::SurfaceData flutter::GPUSurfaceNoop::GetSurfaceData ( ) const
overridevirtual

Capture the SurfaceData currently present in the surface.

Not guaranteed to work on all setups and not intended to be used in production. The data field will be null if it was unable to work.

Reimplemented from flutter::Surface.

Definition at line 29 of file gpu_surface_noop.mm.

29 {
30 return Surface::SurfaceData{};
31}

◆ IsValid()

bool flutter::GPUSurfaceNoop::IsValid ( )
overridevirtual

Implements flutter::Surface.

Definition at line 25 of file gpu_surface_noop.mm.

25 {
26 return true;
27}

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