#include <diff_context_test.h>
Public Member Functions | |
| DiffContextTest () | |
| Damage | DiffLayerTree (MockLayerTree &layer_tree, const MockLayerTree &old_layer_tree, const DlIRect &additional_damage=DlIRect(), int horizontal_clip_alignment=0, int vertical_alignment=0, bool use_raster_cache=true, bool impeller_enabled=false) |
| sk_sp< DisplayList > | CreateDisplayList (const DlRect &bounds, DlColor color=DlColor::kBlack()) |
| std::shared_ptr< DisplayListLayer > | CreateDisplayListLayer (const sk_sp< DisplayList > &display_list, const DlPoint &offset=DlPoint(0, 0)) |
| std::shared_ptr< ContainerLayer > | CreateContainerLayer (std::initializer_list< std::shared_ptr< Layer > > layers) |
| std::shared_ptr< ContainerLayer > | CreateContainerLayer (std::shared_ptr< Layer > l) |
| std::shared_ptr< OpacityLayer > | CreateOpacityLater (std::initializer_list< std::shared_ptr< Layer > > layers, uint8_t alpha, const DlPoint &offset=DlPoint(0, 0)) |
Public Member Functions inherited from flutter::testing::LayerTestBase< BaseT > | |
| LayerTestBase () | |
| void | use_null_raster_cache () |
| Use no raster cache in the preroll_context() and paint_context() structures. | |
| void | use_mock_raster_cache () |
| Use a mock raster cache in the preroll_context() and paint_context() structures. | |
| void | use_skia_raster_cache () |
| Use a normal raster cache in the preroll_context() and paint_context() structures. | |
| std::vector< RasterCacheItem * > & | cacheable_items () |
| std::shared_ptr< TextureRegistry > | texture_registry () |
| RasterCache * | raster_cache () |
| PrerollContext * | preroll_context () |
| PaintContext & | paint_context () |
| PaintContext & | display_list_paint_context () |
| sk_sp< DisplayList > | display_list () |
| void | reset_display_list () |
Public Member Functions inherited from flutter::testing::CanvasTestBase< BaseT > | |
| CanvasTestBase ()=default | |
| sk_sp< SkColorSpace > | mock_color_space () |
Definition at line 38 of file diff_context_test.h.
| flutter::testing::DiffContextTest::DiffContextTest | ( | ) |
Definition at line 13 of file diff_context_test.cc.
| std::shared_ptr< ContainerLayer > flutter::testing::DiffContextTest::CreateContainerLayer | ( | std::initializer_list< std::shared_ptr< Layer > > | layers | ) |
Definition at line 46 of file diff_context_test.cc.
References layers.
Referenced by CreateContainerLayer().
|
inline |
Definition at line 62 of file diff_context_test.h.
References CreateContainerLayer().
| sk_sp< DisplayList > flutter::testing::DiffContextTest::CreateDisplayList | ( | const DlRect & | bounds, |
| DlColor | color = DlColor::kBlack() |
||
| ) |
Definition at line 33 of file diff_context_test.cc.
References flutter::DisplayListBuilder::Build(), and flutter::DisplayListBuilder::DrawRect().
| std::shared_ptr< DisplayListLayer > flutter::testing::DiffContextTest::CreateDisplayListLayer | ( | const sk_sp< DisplayList > & | display_list, |
| const DlPoint & | offset = DlPoint(0, 0) |
||
| ) |
Definition at line 40 of file diff_context_test.cc.
References flutter::testing::LayerTestBase< BaseT >::display_list().
| std::shared_ptr< OpacityLayer > flutter::testing::DiffContextTest::CreateOpacityLater | ( | std::initializer_list< std::shared_ptr< Layer > > | layers, |
| uint8_t | alpha, | ||
| const DlPoint & | offset = DlPoint(0, 0) |
||
| ) |
Definition at line 55 of file diff_context_test.cc.
References layers.
| Damage flutter::testing::DiffContextTest::DiffLayerTree | ( | MockLayerTree & | layer_tree, |
| const MockLayerTree & | old_layer_tree, | ||
| const DlIRect & | additional_damage = DlIRect(), |
||
| int | horizontal_clip_alignment = 0, |
||
| int | vertical_alignment = 0, |
||
| bool | use_raster_cache = true, |
||
| bool | impeller_enabled = false |
||
| ) |
Definition at line 15 of file diff_context_test.cc.
References flutter::DiffContext::ComputeDamage(), flutter::ContainerLayer::Diff(), FML_CHECK, impeller::TRect< Scalar >::MakeSize(), flutter::testing::MockLayerTree::paint_region_map(), flutter::DiffContext::PushCullRect(), flutter::testing::MockLayerTree::root(), and flutter::testing::MockLayerTree::size().