Flutter Engine
The Flutter Engine
Public Member Functions | List of all members
flutter::testing::MockLayerTree Class Reference

#include <diff_context_test.h>

Public Member Functions

 MockLayerTree (SkISize size=SkISize::Make(1000, 1000))
 
ContainerLayerroot ()
 
const ContainerLayerroot () const
 
PaintRegionMappaint_region_map ()
 
const PaintRegionMappaint_region_map () const
 
const SkISizesize () const
 

Detailed Description

Definition at line 18 of file diff_context_test.h.

Constructor & Destructor Documentation

◆ MockLayerTree()

flutter::testing::MockLayerTree::MockLayerTree ( SkISize  size = SkISize::Make(1000, 1000))
inlineexplicit

Definition at line 20 of file diff_context_test.h.

21 : root_(std::make_shared<ContainerLayer>()), size_(size) {}
const SkISize & size() const

Member Function Documentation

◆ paint_region_map() [1/2]

PaintRegionMap & flutter::testing::MockLayerTree::paint_region_map ( )
inline

Definition at line 26 of file diff_context_test.h.

26{ return paint_region_map_; }

◆ paint_region_map() [2/2]

const PaintRegionMap & flutter::testing::MockLayerTree::paint_region_map ( ) const
inline

Definition at line 27 of file diff_context_test.h.

27{ return paint_region_map_; }

◆ root() [1/2]

ContainerLayer * flutter::testing::MockLayerTree::root ( )
inline

Definition at line 23 of file diff_context_test.h.

23{ return root_.get(); }

◆ root() [2/2]

const ContainerLayer * flutter::testing::MockLayerTree::root ( ) const
inline

Definition at line 24 of file diff_context_test.h.

24{ return root_.get(); }

◆ size()

const SkISize & flutter::testing::MockLayerTree::size ( ) const
inline

Definition at line 29 of file diff_context_test.h.

29{ return size_; }

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