#include <FlutterCompositor.h>
Public Member Functions | |
| FlutterCompositor (id< FlutterViewProvider > view_provider, FlutterTimeConverter *time_converter, FlutterPlatformViewController *platform_views_controller) | |
| ~FlutterCompositor ()=default | |
| void | AddView (FlutterViewId view_id) |
| void | RemoveView (FlutterViewId view_id) |
| bool | CreateBackingStore (const FlutterBackingStoreConfig *config, FlutterBackingStore *backing_store_out) |
| bool | Present (FlutterViewIdentifier view_id, const FlutterLayer **layers, size_t layers_count) |
| size_t | DebugNumViews () |
Definition at line 36 of file FlutterCompositor.h.
| FlutterCompositor::FlutterCompositor | ( | id< FlutterViewProvider > | view_provider, |
| FlutterTimeConverter * | time_converter, | ||
| FlutterPlatformViewController * | platform_views_controller | ||
| ) |
Definition at line 35 of file FlutterCompositor.mm.
References FML_CHECK.
|
default |
| void FlutterCompositor::AddView | ( | FlutterViewId | view_id | ) |
Definition at line 44 of file FlutterCompositor.mm.
References view_id.
| bool FlutterCompositor::CreateBackingStore | ( | const FlutterBackingStoreConfig * | config, |
| FlutterBackingStore * | backing_store_out | ||
| ) |
Definition at line 54 of file FlutterCompositor.mm.
References FlutterSize::height, kFlutterBackingStoreTypeMetal, FlutterBackingStore::metal, flutter::size, FlutterBackingStoreConfig::size, FlutterMetalBackingStore::struct_size, FlutterBackingStore::struct_size, surface, FlutterMetalBackingStore::texture, FlutterBackingStore::type, view, FlutterBackingStoreConfig::view_id, and FlutterSize::width.
| size_t FlutterCompositor::DebugNumViews | ( | ) |
Definition at line 134 of file FlutterCompositor.mm.
Referenced by flutter::testing::TEST_F().
| bool FlutterCompositor::Present | ( | FlutterViewIdentifier | view_id, |
| const FlutterLayer ** | layers, | ||
| size_t | layers_count | ||
| ) |
Definition at line 71 of file FlutterCompositor.mm.
References FlutterLayer::backing_store, FlutterLayer::backing_store_present_info, i, kFlutterLayerContentTypeBackingStore, layers, layers_count, FlutterBackingStore::metal, FlutterSurfacePresentInfo::offset, FlutterLayer::offset, FlutterBackingStorePresentInfo::paint_region, FlutterSurfacePresentInfo::paintRegion, FlutterLayer::presentation_time, surface, FlutterSurfacePresentInfo::surface, FlutterMetalBackingStore::texture, FlutterLayer::type, view, view_id, FlutterPoint::x, FlutterPoint::y, and FlutterSurfacePresentInfo::zIndex.
| void FlutterCompositor::RemoveView | ( | FlutterViewId | view_id | ) |
Definition at line 49 of file FlutterCompositor.mm.
References view_id.