Flutter Engine
The Flutter Engine
Public Member Functions | Public Attributes | List of all members
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 22 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 11 of file surface_pool.cc.

14 : id(id),
16 surface(std::move(surface)){};
const std::unique_ptr< AndroidSurface > android_surface
Definition: surface_pool.h:33
std::unique_ptr< Surface > surface
Definition: surface_pool.h:36

◆ ~OverlayLayer()

flutter::OverlayLayer::~OverlayLayer ( )
default

Member Data Documentation

◆ android_surface

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

Definition at line 33 of file surface_pool.h.

◆ gr_context_key

intptr_t flutter::OverlayLayer::gr_context_key

Definition at line 43 of file surface_pool.h.

◆ id

const int flutter::OverlayLayer::id

Definition at line 30 of file surface_pool.h.

◆ surface

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

Definition at line 36 of file surface_pool.h.


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