#include <embedder_test_compositor.h>
Definition at line 19 of file embedder_test_compositor.h.
◆ NextSceneCallback
◆ PlatformViewRendererCallback
◆ PresentCallback
◆ EmbedderTestCompositor()
Definition at line 16 of file embedder_test_compositor.cc.
20}
const SkISize surface_size_
sk_sp< GrDirectContext > context_
#define FML_CHECK(condition)
◆ ~EmbedderTestCompositor()
flutter::testing::EmbedderTestCompositor::~EmbedderTestCompositor |
( |
| ) |
|
|
virtualdefault |
◆ AddOnCollectRenderTargetCallback()
void flutter::testing::EmbedderTestCompositor::AddOnCollectRenderTargetCallback |
( |
const fml::closure & |
callback | ) |
|
Definition at line 128 of file embedder_test_compositor.cc.
129 {
131}
std::vector< fml::closure > on_collect_render_target_callbacks_
FlKeyEvent uint64_t FlKeyResponderAsyncCallback callback
◆ AddOnCreateRenderTargetCallback()
void flutter::testing::EmbedderTestCompositor::AddOnCreateRenderTargetCallback |
( |
const fml::closure & |
callback | ) |
|
◆ AddOnPresentCallback()
void flutter::testing::EmbedderTestCompositor::AddOnPresentCallback |
( |
const fml::closure & |
callback | ) |
|
◆ CollectBackingStore()
bool flutter::testing::EmbedderTestCompositor::CollectBackingStore |
( |
const FlutterBackingStore * |
backing_store | ) |
|
Definition at line 43 of file embedder_test_compositor.cc.
44 {
45
46
47
48
51 return true;
52}
size_t backing_stores_collected_
static void InvokeAllCallbacks(const std::vector< fml::closure > &callbacks)
◆ CreateBackingStore()
Definition at line 32 of file embedder_test_compositor.cc.
34 {
36 if (success) {
39 }
40 return success;
41}
size_t backing_stores_created_
std::unique_ptr< EmbedderTestBackingStoreProducer > backingstore_producer_
◆ FML_DISALLOW_COPY_AND_ASSIGN()
◆ GetBackingStoresCollectedCount()
size_t flutter::testing::EmbedderTestCompositor::GetBackingStoresCollectedCount |
( |
| ) |
const |
◆ GetBackingStoresCreatedCount()
size_t flutter::testing::EmbedderTestCompositor::GetBackingStoresCreatedCount |
( |
| ) |
const |
◆ GetGrContext()
◆ GetLastComposition()
sk_sp< SkImage > flutter::testing::EmbedderTestCompositor::GetLastComposition |
( |
| ) |
|
◆ GetPendingBackingStoresCount()
size_t flutter::testing::EmbedderTestCompositor::GetPendingBackingStoresCount |
( |
| ) |
const |
◆ Present()
bool flutter::testing::EmbedderTestCompositor::Present |
( |
FlutterViewId |
view_id, |
|
|
const FlutterLayer ** |
layers, |
|
|
size_t |
layers_count |
|
) |
| |
Definition at line 63 of file embedder_test_compositor.cc.
65 {
68 << "Could not update the off-screen composition in the test compositor";
69 return false;
70 }
71
72
73
78 }
79 callback(view_id, layers, layers_count);
80 }
81
83 return true;
84}
bool present_callback_is_one_shot_
PresentCallback present_callback_
virtual bool UpdateOffscrenComposition(const FlutterLayer **layers, size_t layers_count)=0
#define FML_LOG(severity)
◆ SetBackingStoreProducer()
◆ SetNextPresentCallback()
void flutter::testing::EmbedderTestCompositor::SetNextPresentCallback |
( |
const PresentCallback & |
next_present_callback | ) |
|
Allows tests to install a callback to notify them when the entire render tree has been finalized so they can run their assertions.
- Parameters
-
[in] | next_present_callback | The next present callback |
Definition at line 86 of file embedder_test_compositor.cc.
87 {
89}
void SetPresentCallback(const PresentCallback &present_callback, bool one_shot)
◆ SetNextSceneCallback()
void flutter::testing::EmbedderTestCompositor::SetNextSceneCallback |
( |
const NextSceneCallback & |
next_scene_callback | ) |
|
◆ SetPlatformViewRendererCallback()
◆ SetPresentCallback()
void flutter::testing::EmbedderTestCompositor::SetPresentCallback |
( |
const PresentCallback & |
present_callback, |
|
|
bool |
one_shot |
|
) |
| |
◆ UpdateOffscrenComposition()
virtual bool flutter::testing::EmbedderTestCompositor::UpdateOffscrenComposition |
( |
const FlutterLayer ** |
layers, |
|
|
size_t |
layers_count |
|
) |
| |
|
protectedpure virtual |
◆ backing_stores_collected_
size_t flutter::testing::EmbedderTestCompositor::backing_stores_collected_ = 0 |
|
protected |
◆ backing_stores_created_
size_t flutter::testing::EmbedderTestCompositor::backing_stores_created_ = 0 |
|
protected |
◆ backingstore_producer_
◆ context_
◆ last_composition_
sk_sp<SkImage> flutter::testing::EmbedderTestCompositor::last_composition_ |
|
protected |
◆ next_scene_callback_
◆ on_collect_render_target_callbacks_
std::vector<fml::closure> flutter::testing::EmbedderTestCompositor::on_collect_render_target_callbacks_ |
|
protected |
◆ on_create_render_target_callbacks_
std::vector<fml::closure> flutter::testing::EmbedderTestCompositor::on_create_render_target_callbacks_ |
|
protected |
◆ on_present_callbacks_
std::vector<fml::closure> flutter::testing::EmbedderTestCompositor::on_present_callbacks_ |
|
protected |
◆ platform_view_renderer_callback_
◆ present_callback_
PresentCallback flutter::testing::EmbedderTestCompositor::present_callback_ |
|
protected |
◆ present_callback_is_one_shot_
bool flutter::testing::EmbedderTestCompositor::present_callback_is_one_shot_ = false |
|
protected |
◆ surface_size_
const SkISize flutter::testing::EmbedderTestCompositor::surface_size_ |
|
protected |
The documentation for this class was generated from the following files: