Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
PathOpsThreadState Struct Reference

#include <PathOpsThreadedCommon.h>

Public Member Functions

void outputProgress (const char *pathStr, SkPathFillType)
 
void outputProgress (const char *pathStr, SkPathOp)
 

Public Attributes

unsigned char fA
 
unsigned char fB
 
unsigned char fC
 
unsigned char fD
 
std::string fPathStr
 
const char * fKey
 
char fSerialNo [256]
 
skiatest::ReporterfReporter
 
SkBitmapfBitmap
 

Detailed Description

Definition at line 27 of file PathOpsThreadedCommon.h.

Member Function Documentation

◆ outputProgress() [1/2]

void PathOpsThreadState::outputProgress ( const char *  pathStr,
SkPathFillType  pathFillType 
)

Definition at line 673 of file PathOpsExtendedTest.cpp.

673 {
674 const char testFunction[] = "testSimplify(path);";
675 const char* pathPrefix = nullptr;
676 const char* nameSuffix = nullptr;
677 if (pathFillType == SkPathFillType::kEvenOdd) {
678 pathPrefix = " path.setFillType(SkPathFillType::kEvenOdd);\n";
679 nameSuffix = "x";
680 }
681 appendTest(pathStr, pathPrefix, nameSuffix, testFunction, false, fPathStr);
682}
static void appendTest(const char *pathStr, const char *pathPrefix, const char *nameSuffix, const char *testFunction, bool twoPaths, std::string &out)

◆ outputProgress() [2/2]

void PathOpsThreadState::outputProgress ( const char *  pathStr,
SkPathOp  op 
)

Definition at line 684 of file PathOpsExtendedTest.cpp.

684 {
685 const char testFunction[] = "testOp(path);";
686 SkASSERT((size_t) op < std::size(opSuffixes));
687 const char* nameSuffix = opSuffixes[op];
688 appendTest(pathStr, nullptr, nameSuffix, testFunction, true, fPathStr);
689}
static const char * opSuffixes[]
#define SkASSERT(cond)
Definition SkAssert.h:116

Member Data Documentation

◆ fA

unsigned char PathOpsThreadState::fA

Definition at line 28 of file PathOpsThreadedCommon.h.

◆ fB

unsigned char PathOpsThreadState::fB

Definition at line 29 of file PathOpsThreadedCommon.h.

◆ fBitmap

SkBitmap* PathOpsThreadState::fBitmap

Definition at line 36 of file PathOpsThreadedCommon.h.

◆ fC

unsigned char PathOpsThreadState::fC

Definition at line 30 of file PathOpsThreadedCommon.h.

◆ fD

unsigned char PathOpsThreadState::fD

Definition at line 31 of file PathOpsThreadedCommon.h.

◆ fKey

const char* PathOpsThreadState::fKey

Definition at line 33 of file PathOpsThreadedCommon.h.

◆ fPathStr

std::string PathOpsThreadState::fPathStr

Definition at line 32 of file PathOpsThreadedCommon.h.

◆ fReporter

skiatest::Reporter* PathOpsThreadState::fReporter

Definition at line 35 of file PathOpsThreadedCommon.h.

◆ fSerialNo

char PathOpsThreadState::fSerialNo[256]

Definition at line 34 of file PathOpsThreadedCommon.h.


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