Flutter Engine
The Flutter Engine
Public Member Functions | List of all members
PathOpsThreadedRunnable Class Reference

#include <PathOpsThreadedCommon.h>

Public Member Functions

 PathOpsThreadedRunnable (void(*testFun)(PathOpsThreadState *), int a, int b, int c, int d, PathOpsThreadedTestRunner *runner)
 
 PathOpsThreadedRunnable (void(*testFun)(PathOpsThreadState *), const char *str, PathOpsThreadedTestRunner *runner)
 
 PathOpsThreadedRunnable (void(*testFun)(PathOpsThreadState *), int dirNo, const char *str, PathOpsThreadedTestRunner *runner)
 
void operator() ()
 

Detailed Description

Definition at line 55 of file PathOpsThreadedCommon.h.

Constructor & Destructor Documentation

◆ PathOpsThreadedRunnable() [1/3]

PathOpsThreadedRunnable::PathOpsThreadedRunnable ( void(*)(PathOpsThreadState *)  testFun,
int  a,
int  b,
int  c,
int  d,
PathOpsThreadedTestRunner runner 
)
inline

Definition at line 57 of file PathOpsThreadedCommon.h.

58 {
59 fState.fA = (a & 0xFF);
60 fState.fB = (b & 0xFF);
61 fState.fC = (c & 0xFF);
62 fState.fD = (d & 0xFF);
63 fState.fReporter = runner->fReporter;
64 fTestFun = testFun;
65 }
skiatest::Reporter * fReporter
VULKAN_HPP_DEFAULT_DISPATCH_LOADER_DYNAMIC_STORAGE auto & d
Definition: main.cc:19
static bool b
struct MyStruct a[10]
skiatest::Reporter * fReporter

◆ PathOpsThreadedRunnable() [2/3]

PathOpsThreadedRunnable::PathOpsThreadedRunnable ( void(*)(PathOpsThreadState *)  testFun,
const char *  str,
PathOpsThreadedTestRunner runner 
)
inline

Definition at line 67 of file PathOpsThreadedCommon.h.

68 {
69 SkASSERT(strlen(str) < sizeof(fState.fSerialNo) - 1);
70 strcpy(fState.fSerialNo, str);
71 fState.fReporter = runner->fReporter;
72 fTestFun = testFun;
73 }
#define SkASSERT(cond)
Definition: SkAssert.h:116

◆ PathOpsThreadedRunnable() [3/3]

PathOpsThreadedRunnable::PathOpsThreadedRunnable ( void(*)(PathOpsThreadState *)  testFun,
int  dirNo,
const char *  str,
PathOpsThreadedTestRunner runner 
)
inline

Definition at line 75 of file PathOpsThreadedCommon.h.

76 {
77 SkASSERT(strlen(str) < sizeof(fState.fSerialNo) - 1);
78 fState.fA = dirNo;
79 strcpy(fState.fSerialNo, str);
80 fState.fReporter = runner->fReporter;
81 fTestFun = testFun;
82 }

Member Function Documentation

◆ operator()()

void PathOpsThreadedRunnable::operator() ( )
inline

Definition at line 84 of file PathOpsThreadedCommon.h.

84 {
86 fState.fBitmap = &bitmap;
87 (*fTestFun)(&fState);
88 }
Definition: bitmap.py:1

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