Flutter Engine
flutter::testing::LayerTreeTest Class Reference
Inheritance diagram for flutter::testing::LayerTreeTest:
flutter::testing::CanvasTestBase< BaseT >

Public Member Functions

 LayerTreeTest ()
 
LayerTreelayer_tree ()
 
CompositorContext::ScopedFrameframe ()
 
const SkMatrix & root_transform ()
 
- Public Member Functions inherited from flutter::testing::CanvasTestBase< BaseT >
 CanvasTestBase ()=default
 
MockCanvasmock_canvas ()
 

Detailed Description

Definition at line 18 of file layer_tree_unittests.cc.

Constructor & Destructor Documentation

◆ LayerTreeTest()

flutter::testing::LayerTreeTest::LayerTreeTest ( )
inline

Definition at line 20 of file layer_tree_unittests.cc.

21  : layer_tree_(SkISize::Make(64, 64), 1.0f),
22  compositor_context_(fml::kDefaultFrameBudget),
23  root_transform_(SkMatrix::Translate(1.0f, 1.0f)),
24  scoped_frame_(compositor_context_.AcquireFrame(nullptr,
25  &mock_canvas(),
26  nullptr,
27  root_transform_,
28  false,
29  true,
30  nullptr)) {}
virtual std::unique_ptr< ScopedFrame > AcquireFrame(GrDirectContext *gr_context, SkCanvas *canvas, ExternalViewEmbedder *view_embedder, const SkMatrix &root_surface_transformation, bool instrumentation_enabled, bool surface_supports_readback, fml::RefPtr< fml::RasterThreadMerger > raster_thread_merger)
constexpr Milliseconds kDefaultFrameBudget
Definition: time_delta.h:21

Member Function Documentation

◆ frame()

CompositorContext::ScopedFrame& flutter::testing::LayerTreeTest::frame ( )
inline

Definition at line 33 of file layer_tree_unittests.cc.

Referenced by flutter::testing::TEST_F().

33 { return *scoped_frame_.get(); }

◆ layer_tree()

LayerTree& flutter::testing::LayerTreeTest::layer_tree ( )
inline

Definition at line 32 of file layer_tree_unittests.cc.

Referenced by flutter::testing::TEST_F().

32 { return layer_tree_; }

◆ root_transform()

const SkMatrix& flutter::testing::LayerTreeTest::root_transform ( )
inline

Definition at line 34 of file layer_tree_unittests.cc.

Referenced by flutter::testing::TEST_F().

34 { return root_transform_; }

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