Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Public Member Functions | List of all members
impeller::Surface Class Reference

#include <surface.h>

Inheritance diagram for impeller::Surface:
impeller::SurfaceGLES impeller::SurfaceMTL impeller::SurfaceVK

Public Member Functions

 Surface ()
 
 Surface (const RenderTarget &target_desc)
 
virtual ~Surface ()
 
const ISizeGetSize () const
 
bool IsValid () const
 
const RenderTargetGetTargetRenderPassDescriptor () const
 
virtual bool Present () const
 

Detailed Description

Definition at line 18 of file surface.h.

Constructor & Destructor Documentation

◆ Surface() [1/2]

Surface::Surface ( )

Definition at line 11 of file surface.cc.

11: Surface(RenderTarget{}) {}

◆ Surface() [2/2]

Surface::Surface ( const RenderTarget target_desc)
explicit

Definition at line 13 of file surface.cc.

13 : desc_(target_desc) {
14 if (auto size = desc_.GetColorAttachmentSize(0u); size.has_value()) {
15 size_ = size.value();
16 } else {
17 return;
18 }
19
20 is_valid_ = true;
21}
std::optional< ISize > GetColorAttachmentSize(size_t index) const
it will be possible to load the file into Perfetto s trace viewer disable asset Prevents usage of any non test fonts unless they were explicitly Loaded via prefetched default font Indicates whether the embedding started a prefetch of the default font manager before creating the engine run In non interactive keep the shell running after the Dart script has completed enable serial On low power devices with low core running concurrent GC tasks on threads can cause them to contend with the UI thread which could potentially lead to jank This option turns off all concurrent GC activities domain network JSON encoded network policy per domain This overrides the DisallowInsecureConnections switch Embedder can specify whether to allow or disallow insecure connections at a domain level old gen heap size
Definition switches.h:259

◆ ~Surface()

Surface::~Surface ( )
virtualdefault

Member Function Documentation

◆ GetSize()

const ISize & Surface::GetSize ( ) const

Definition at line 25 of file surface.cc.

25 {
26 return size_;
27}

◆ GetTargetRenderPassDescriptor()

const RenderTarget & Surface::GetTargetRenderPassDescriptor ( ) const

Definition at line 33 of file surface.cc.

33 {
34 return desc_;
35}

◆ IsValid()

bool Surface::IsValid ( ) const

Definition at line 29 of file surface.cc.

29 {
30 return is_valid_;
31}

◆ Present()

bool Surface::Present ( ) const
virtual

Reimplemented in impeller::SurfaceGLES, impeller::SurfaceMTL, and impeller::SurfaceVK.

Definition at line 37 of file surface.cc.

37 {
38 return false;
39};

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