Flutter Engine
The Flutter Engine
Public Member Functions | List of all members
PictureBBHTestBase Class Referenceabstract
Inheritance diagram for PictureBBHTestBase:
DrawEmptyPictureBBHTest EmptyClipPictureBBHTest

Public Member Functions

 PictureBBHTestBase (int playbackWidth, int playbackHeight, int recordWidth, int recordHeight)
 
virtual ~PictureBBHTestBase ()
 
virtual void doTest (SkCanvas &playbackCanvas, SkCanvas &recordingCanvas)=0
 
void run (skiatest::Reporter *reporter)
 

Detailed Description

Definition at line 20 of file PictureBBHTest.cpp.

Constructor & Destructor Documentation

◆ PictureBBHTestBase()

PictureBBHTestBase::PictureBBHTestBase ( int  playbackWidth,
int  playbackHeight,
int  recordWidth,
int  recordHeight 
)
inline

Definition at line 22 of file PictureBBHTest.cpp.

23 {
24
25 fResultBitmap.allocN32Pixels(playbackWidth, playbackHeight);
26 fPictureWidth = recordWidth;
27 fPictureHeight = recordHeight;
28 }
void allocN32Pixels(int width, int height, bool isOpaque=false)
Definition: SkBitmap.cpp:232

◆ ~PictureBBHTestBase()

virtual PictureBBHTestBase::~PictureBBHTestBase ( )
inlinevirtual

Definition at line 30 of file PictureBBHTest.cpp.

30{ }

Member Function Documentation

◆ doTest()

virtual void PictureBBHTestBase::doTest ( SkCanvas playbackCanvas,
SkCanvas recordingCanvas 
)
pure virtual

◆ run()

void PictureBBHTestBase::run ( skiatest::Reporter reporter)
inline

Definition at line 34 of file PictureBBHTest.cpp.

34 {
35 // No BBH
36 this->run(nullptr, reporter);
37
38 // With an R-Tree
39 SkRTreeFactory RTreeFactory;
40 this->run(&RTreeFactory, reporter);
41 }
reporter
Definition: FontMgrTest.cpp:39
void run(skiatest::Reporter *reporter)

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