Flutter Engine
flutter::OverlayLayer Struct Reference

#include <surface_pool.h>

Public Member Functions

 OverlayLayer (int id, std::unique_ptr< AndroidSurface > android_surface, std::unique_ptr< Surface > surface)
 
 ~OverlayLayer ()
 

Public Attributes

const int id
 
const std::unique_ptr< AndroidSurfaceandroid_surface
 
std::unique_ptr< Surfacesurface
 
intptr_t gr_context_key
 

Detailed Description

An Overlay layer represents an android.view.View in the C side.

The id is used to uniquely identify the layer and recycle it between frames.

Definition at line 20 of file surface_pool.h.

Constructor & Destructor Documentation

◆ OverlayLayer()

flutter::OverlayLayer::OverlayLayer ( int  id,
std::unique_ptr< AndroidSurface android_surface,
std::unique_ptr< Surface surface 
)

Definition at line 9 of file surface_pool.cc.

References flutter::SurfacePool::SurfacePool(), ~OverlayLayer(), and flutter::SurfacePool::~SurfacePool().

12  : id(id),
13  android_surface(std::move(android_surface)),
14  surface(std::move(surface)){};
std::unique_ptr< Surface > surface
Definition: surface_pool.h:34
const std::unique_ptr< AndroidSurface > android_surface
Definition: surface_pool.h:31

◆ ~OverlayLayer()

flutter::OverlayLayer::~OverlayLayer ( )
default

Referenced by OverlayLayer().

Member Data Documentation

◆ android_surface

const std::unique_ptr<AndroidSurface> flutter::OverlayLayer::android_surface

Definition at line 31 of file surface_pool.h.

Referenced by flutter::SurfacePool::GetLayer().

◆ gr_context_key

intptr_t flutter::OverlayLayer::gr_context_key

Definition at line 41 of file surface_pool.h.

Referenced by flutter::SurfacePool::GetLayer().

◆ id

const int flutter::OverlayLayer::id

Definition at line 28 of file surface_pool.h.

◆ surface

std::unique_ptr<Surface> flutter::OverlayLayer::surface

Definition at line 34 of file surface_pool.h.

Referenced by flutter::SurfacePool::GetLayer().


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