Flutter Engine
 
Loading...
Searching...
No Matches
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 RenderTargetGetRenderTarget () const
 
virtual bool Present () const
 

Detailed Description

Definition at line 12 of file surface.h.

Constructor & Destructor Documentation

◆ Surface() [1/2]

impeller::Surface::Surface ( )

Definition at line 11 of file surface.cc.

11: Surface(RenderTarget{}) {}

◆ Surface() [2/2]

impeller::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 use test Running tests that layout and measure text will not yield consistent results across various platforms Enabling this option will make font resolution default to the Ahem test font on all 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

References impeller::RenderTarget::GetColorAttachmentSize().

◆ ~Surface()

impeller::Surface::~Surface ( )
virtualdefault

Member Function Documentation

◆ GetRenderTarget()

const RenderTarget & impeller::Surface::GetRenderTarget ( ) const

Definition at line 33 of file surface.cc.

33 {
34 return desc_;
35}

◆ GetSize()

const ISize & impeller::Surface::GetSize ( ) const

Definition at line 25 of file surface.cc.

25 {
26 return size_;
27}

◆ IsValid()

bool impeller::Surface::IsValid ( ) const

Definition at line 29 of file surface.cc.

29 {
30 return is_valid_;
31}

◆ Present()

bool impeller::Surface::Present ( ) const
virtual

Reimplemented in impeller::SurfaceMTL.

Definition at line 37 of file surface.cc.

37 {
38 return false;
39};

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