Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Public Member Functions | List of all members
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 (FlutterViewId view_id, 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.
 
void SetPresentCallback (const PresentCallback &present_callback, bool one_shot)
 
void SetNextSceneCallback (const NextSceneCallback &next_scene_callback)
 
sk_sp< SkImageGetLastComposition ()
 
size_t GetPendingBackingStoresCount () const
 
size_t GetBackingStoresCreatedCount () const
 
size_t GetBackingStoresCollectedCount () const
 
void AddOnCreateRenderTargetCallback (const fml::closure &callback)
 
void AddOnCollectRenderTargetCallback (const fml::closure &callback)
 
void AddOnPresentCallback (const fml::closure &callback)
 
sk_sp< GrDirectContextGetGrContext ()
 

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(FlutterViewId view_id, 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< GrDirectContextcontext_
 
PlatformViewRendererCallback platform_view_renderer_callback_
 
bool present_callback_is_one_shot_ = false
 
PresentCallback present_callback_
 
NextSceneCallback next_scene_callback_
 
sk_sp< SkImagelast_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()

flutter::testing::EmbedderTestCompositorSoftware::EmbedderTestCompositorSoftware ( SkISize  surface_size)
explicit

Definition at line 14 of file embedder_test_compositor_software.cc.

16 : EmbedderTestCompositor(surface_size, nullptr) {}
EmbedderTestCompositor(SkISize surface_size, sk_sp< GrDirectContext > context)

◆ ~EmbedderTestCompositorSoftware()

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

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