Flutter Engine
The Flutter Engine
Public Member Functions | Public Attributes | List of all members
ClipRectVisitor Struct Reference

Public Member Functions

template<typename T >
SkRect operator() (const T &)
 
SkRect operator() (const SkRecords::ClipRect &op)
 

Public Attributes

skiatest::Reporterr
 

Detailed Description

Definition at line 73 of file CanvasTest.cpp.

Member Function Documentation

◆ operator()() [1/2]

SkRect ClipRectVisitor::operator() ( const SkRecords::ClipRect &  op)
inline

Definition at line 82 of file CanvasTest.cpp.

82 {
83 return op.rect;
84 }

◆ operator()() [2/2]

template<typename T >
SkRect ClipRectVisitor::operator() ( const T )
inline

Definition at line 77 of file CanvasTest.cpp.

77 {
78 REPORTER_ASSERT(r, false, "unexpected record");
79 return {1,1,0,0};
80 }
#define REPORTER_ASSERT(r, cond,...)
Definition: Test.h:286
skiatest::Reporter * r
Definition: CanvasTest.cpp:74

Member Data Documentation

◆ r

skiatest::Reporter* ClipRectVisitor::r

Definition at line 74 of file CanvasTest.cpp.


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