Flutter Engine
flutter::testing::EmbedderTestCompositorSoftware Class Reference

#include <embedder_test_compositor_software.h>

Inheritance diagram for flutter::testing::EmbedderTestCompositorSoftware:
flutter::testing::EmbedderTestCompositor

Public Member Functions

 EmbedderTestCompositorSoftware (SkISize surface_size)
 
 ~EmbedderTestCompositorSoftware () override
 
- Public Member Functions inherited from flutter::testing::EmbedderTestCompositor
 EmbedderTestCompositor (SkISize surface_size, sk_sp< GrDirectContext > context)
 
virtual ~EmbedderTestCompositor ()
 
void SetBackingStoreProducer (std::unique_ptr< EmbedderTestBackingStoreProducer > backingstore_producer)
 
bool CreateBackingStore (const FlutterBackingStoreConfig *config, FlutterBackingStore *backing_store_out)
 
bool CollectBackingStore (const FlutterBackingStore *backing_store)
 
bool Present (const FlutterLayer **layers, size_t layers_count)
 
void SetPlatformViewRendererCallback (const PlatformViewRendererCallback &callback)
 
void 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. More...
 
void SetPresentCallback (const PresentCallback &present_callback, bool one_shot)
 
void SetNextSceneCallback (const NextSceneCallback &next_scene_callback)
 
sk_sp< SkImage > GetLastComposition ()
 
size_t GetPendingBackingStoresCount () const
 
size_t GetBackingStoresCreatedCount () const
 
size_t GetBackingStoresCollectedCount () const
 
void AddOnCreateRenderTargetCallback (fml::closure callback)
 
void AddOnCollectRenderTargetCallback (fml::closure callback)
 
void AddOnPresentCallback (fml::closure callback)
 
sk_sp< GrDirectContext > GetGrContext ()
 

Additional Inherited Members

- Public Types inherited from flutter::testing::EmbedderTestCompositor
using PlatformViewRendererCallback = std::function< sk_sp< SkImage >(const FlutterLayer &layer, GrDirectContext *context)>
 
using PresentCallback = std::function< void(const FlutterLayer **layers, size_t layers_count)>
 
using NextSceneCallback = std::function< void(sk_sp< SkImage > image)>
 
- Protected Member Functions inherited from flutter::testing::EmbedderTestCompositor
 FML_DISALLOW_COPY_AND_ASSIGN (EmbedderTestCompositor)
 
- Protected Attributes inherited from flutter::testing::EmbedderTestCompositor
std::unique_ptr< EmbedderTestBackingStoreProducerbackingstore_producer_
 
const SkISize surface_size_
 
sk_sp< GrDirectContext > context_
 
PlatformViewRendererCallback platform_view_renderer_callback_
 
bool present_callback_is_one_shot_ = false
 
PresentCallback present_callback_
 
NextSceneCallback next_scene_callback_
 
sk_sp< SkImage > last_composition_
 
size_t backing_stores_created_ = 0
 
size_t backing_stores_collected_ = 0
 
std::vector< fml::closureon_create_render_target_callbacks_
 
std::vector< fml::closureon_collect_render_target_callbacks_
 
std::vector< fml::closureon_present_callbacks_
 

Detailed Description

Definition at line 13 of file embedder_test_compositor_software.h.

Constructor & Destructor Documentation

◆ EmbedderTestCompositorSoftware()

◆ ~EmbedderTestCompositorSoftware()

flutter::testing::EmbedderTestCompositorSoftware::~EmbedderTestCompositorSoftware ( )
overridedefault

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