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

#include <PathOpsThreadedCommon.h>

Public Member Functions

 PathOpsThreadedTestRunner (skiatest::Reporter *reporter)
 
 ~PathOpsThreadedTestRunner ()
 
void render ()
 

Public Attributes

SkTDArray< PathOpsThreadedRunnable * > fRunnables
 
skiatest::ReporterfReporter
 

Detailed Description

Definition at line 42 of file PathOpsThreadedCommon.h.

Constructor & Destructor Documentation

◆ PathOpsThreadedTestRunner()

PathOpsThreadedTestRunner::PathOpsThreadedTestRunner ( skiatest::Reporter reporter)
inline

Definition at line 44 of file PathOpsThreadedCommon.h.

reporter
Definition: FontMgrTest.cpp:39
skiatest::Reporter * fReporter

◆ ~PathOpsThreadedTestRunner()

PathOpsThreadedTestRunner::~PathOpsThreadedTestRunner ( )

Definition at line 13 of file PathOpsThreadedCommon.cpp.

13 {
14 for (int index = 0; index < fRunnables.size(); index++) {
15 delete fRunnables[index];
16 }
17}
SkTDArray< PathOpsThreadedRunnable * > fRunnables
int size() const
Definition: SkTDArray.h:138

Member Function Documentation

◆ render()

void PathOpsThreadedTestRunner::render ( )

Definition at line 19 of file PathOpsThreadedCommon.cpp.

19 {
20 SkTaskGroup().batch(fRunnables.size(), [&](int i) {
21 (*fRunnables[i])();
22 });
23}
void batch(int N, std::function< void(int)> fn)
Definition: SkTaskGroup.cpp:24

Member Data Documentation

◆ fReporter

skiatest::Reporter* PathOpsThreadedTestRunner::fReporter

Definition at line 52 of file PathOpsThreadedCommon.h.

◆ fRunnables

SkTDArray<PathOpsThreadedRunnable*> PathOpsThreadedTestRunner::fRunnables

Definition at line 51 of file PathOpsThreadedCommon.h.


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