#include <layer_test.h>
Public Member Functions | |
| 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 37 of file layer_test.h.
|
inline |
Definition at line 43 of file layer_test.h.
References flutter::kGiantRect, flutter::LayerStateStack::set_delegate(), flutter::LayerStateStack::set_preroll_delegate(), and flutter::testing::LayerTestBase< BaseT >::use_null_raster_cache().
|
inline |
Definition at line 127 of file layer_test.h.
|
inline |
Definition at line 139 of file layer_test.h.
References flutter::DisplayListBuilder::Build().
Referenced by flutter::testing::DiffContextTest::CreateDisplayListLayer().
|
inline |
Definition at line 135 of file layer_test.h.
|
inline |
Definition at line 134 of file layer_test.h.
|
inline |
Definition at line 133 of file layer_test.h.
|
inline |
Definition at line 132 of file layer_test.h.
|
inline |
Definition at line 146 of file layer_test.h.
References flutter::DisplayListBuilder::Build(), FML_DCHECK, and flutter::LayerStateStack::is_empty().
|
inline |
Definition at line 129 of file layer_test.h.
|
inline |
Use a mock raster cache in the preroll_context() and paint_context() structures.
This method must be called before using the preroll_context() and paint_context() structures in calls to the Layer::Preroll() and Layer::Paint() methods. The mock raster cache behaves like a normal raster cache with respect to decisions about when layers and pictures should be cached, but it does not incur the overhead of rendering the layers or caching the resulting pixels.
Definition at line 105 of file layer_test.h.
|
inline |
Use no raster cache in the preroll_context() and paint_context() structures.
This method must be called before using the preroll_context() and paint_context() structures in calls to the Layer::Preroll() and Layer::Paint() methods. This is the default mode of operation.
Definition at line 89 of file layer_test.h.
Referenced by flutter::testing::LayerTestBase< BaseT >::LayerTestBase().
|
inline |
Use a normal raster cache in the preroll_context() and paint_context() structures.
This method must be called before using the preroll_context() and paint_context() structures in calls to the Layer::Preroll() and Layer::Paint() methods. The Skia raster cache will behave identically to the raster cache typically used when handling a frame on a device including rendering the contents of pictures and layers to an SkImage, but using a software rather than a hardware renderer.
Definition at line 123 of file layer_test.h.