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

Public Member Functions

 EmptyClipPictureBBHTest ()
 
void doTest (SkCanvas &playbackCanvas, SkCanvas &recordingCanvas) override
 
 ~EmptyClipPictureBBHTest () override
 
- Public Member Functions inherited from PictureBBHTestBase
 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 75 of file PictureBBHTest.cpp.

Constructor & Destructor Documentation

◆ EmptyClipPictureBBHTest()

EmptyClipPictureBBHTest::EmptyClipPictureBBHTest ( )
inline

Definition at line 77 of file PictureBBHTest.cpp.

78 : PictureBBHTestBase(2, 2, 3, 3) {}
PictureBBHTestBase(int playbackWidth, int playbackHeight, int recordWidth, int recordHeight)

◆ ~EmptyClipPictureBBHTest()

EmptyClipPictureBBHTest::~EmptyClipPictureBBHTest ( )
inlineoverride

Definition at line 87 of file PictureBBHTest.cpp.

87{}

Member Function Documentation

◆ doTest()

void EmptyClipPictureBBHTest::doTest ( SkCanvas playbackCanvas,
SkCanvas recordingCanvas 
)
inlineoverridevirtual

Implements PictureBBHTestBase.

Definition at line 80 of file PictureBBHTest.cpp.

80 {
81 // intersect with out of bounds rect -> empty clip.
82 playbackCanvas.clipRect(SkRect::MakeXYWH(10, 10, 1, 1));
84 recordingCanvas.drawRect(SkRect::MakeWH(3, 3), paint);
85 }
void drawRect(const SkRect &rect, const SkPaint &paint)
Definition: SkCanvas.cpp:1673
void clipRect(const SkRect &rect, SkClipOp op, bool doAntiAlias)
Definition: SkCanvas.cpp:1361
const Paint & paint
Definition: color_source.cc:38
static constexpr SkRect MakeXYWH(float x, float y, float w, float h)
Definition: SkRect.h:659
static constexpr SkRect MakeWH(float w, float h)
Definition: SkRect.h:609

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