Flutter Engine
The Flutter Engine
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
skiatest::Test Struct Reference

#include <Test.h>

Public Member Functions

void modifyGrContextOptions (GrContextOptions *options)
 
void modifyGraphiteContextOptions (skgpu::graphite::ContextOptions *options)
 
void cpu (skiatest::Reporter *r) const
 
void ganesh (skiatest::Reporter *r, const GrContextOptions &options) const
 
void graphite (skiatest::Reporter *r, const graphite::TestOptions &options) const
 

Static Public Member Functions

static Test MakeCPU (const char *name, CPUTestProc proc)
 
static Test MakeCPUSerial (const char *name, CPUTestProc proc)
 
static Test MakeGanesh (const char *name, CtsEnforcement ctsEnforcement, GaneshTestProc proc, GaneshContextOptionsProc optionsProc=nullptr)
 
static Test MakeGraphite (const char *name, CtsEnforcement ctsEnforcement, GraphiteTestProc proc, GraphiteContextOptionsProc optionsProc=nullptr)
 

Public Attributes

const char * fName
 
TestType fTestType
 
CtsEnforcement fCTSEnforcement
 
CPUTestProc fCPUProc = nullptr
 
GaneshTestProc fGaneshProc = nullptr
 
GraphiteTestProc fGraphiteProc = nullptr
 
GaneshContextOptionsProc fGaneshContextOptionsProc = nullptr
 
GraphiteContextOptionsProc fGraphiteContextOptionsProc = nullptr
 

Detailed Description

Definition at line 119 of file Test.h.

Member Function Documentation

◆ cpu()

void skiatest::Test::cpu ( skiatest::Reporter r) const
inline

Definition at line 167 of file Test.h.

167 {
170 TRACE_EVENT1("test_cpu", TRACE_FUNC, "name", this->fName/*these are static*/);
171 this->fCPUProc(r);
172 }
#define SkASSERT(cond)
Definition: SkAssert.h:116
#define TRACE_FUNC
Definition: SkTraceEvent.h:30
CPUTestProc fCPUProc
Definition: Test.h:149
TestType fTestType
Definition: Test.h:147
const char * fName
Definition: Test.h:146
#define TRACE_EVENT1(category_group, name, arg1_name, arg1_val)
Definition: trace_event.h:141

◆ ganesh()

void skiatest::Test::ganesh ( skiatest::Reporter r,
const GrContextOptions options 
) const
inline

Definition at line 174 of file Test.h.

174 {
176 TRACE_EVENT1("test_ganesh", TRACE_FUNC, "name", this->fName/*these are static*/);
177 this->fGaneshProc(r, options);
178 }
const char * options
GaneshTestProc fGaneshProc
Definition: Test.h:150

◆ graphite()

void skiatest::Test::graphite ( skiatest::Reporter r,
const graphite::TestOptions options 
) const
inline

Definition at line 180 of file Test.h.

180 {
182 TRACE_EVENT1("test_graphite", TRACE_FUNC, "name", this->fName/*these are static*/);
183 this->fGraphiteProc(r, options);
184 }
GraphiteTestProc fGraphiteProc
Definition: Test.h:151

◆ MakeCPU()

static Test skiatest::Test::MakeCPU ( const char *  name,
CPUTestProc  proc 
)
inlinestatic

Definition at line 120 of file Test.h.

120 {
122 proc, nullptr, nullptr, nullptr, nullptr};
123 }
DEF_SWITCHES_START aot vmservice shared library name
Definition: switches.h:32

◆ MakeCPUSerial()

static Test skiatest::Test::MakeCPUSerial ( const char *  name,
CPUTestProc  proc 
)
inlinestatic

Definition at line 125 of file Test.h.

125 {
127 proc, nullptr, nullptr, nullptr, nullptr};
128 }

◆ MakeGanesh()

static Test skiatest::Test::MakeGanesh ( const char *  name,
CtsEnforcement  ctsEnforcement,
GaneshTestProc  proc,
GaneshContextOptionsProc  optionsProc = nullptr 
)
inlinestatic

Definition at line 130 of file Test.h.

133 {
134 return Test{name, TestType::kGanesh, ctsEnforcement,
135 nullptr, proc, nullptr, optionsProc, nullptr};
136 }

◆ MakeGraphite()

static Test skiatest::Test::MakeGraphite ( const char *  name,
CtsEnforcement  ctsEnforcement,
GraphiteTestProc  proc,
GraphiteContextOptionsProc  optionsProc = nullptr 
)
inlinestatic

Definition at line 138 of file Test.h.

141 {
142 return Test{name, TestType::kGraphite, ctsEnforcement,
143 nullptr, nullptr, proc, nullptr, optionsProc};
144 }

◆ modifyGraphiteContextOptions()

void skiatest::Test::modifyGraphiteContextOptions ( skgpu::graphite::ContextOptions options)
inline

Definition at line 161 of file Test.h.

161 {
163 (*fGraphiteContextOptionsProc)(options);
164 }
165 }
GraphiteContextOptionsProc fGraphiteContextOptionsProc
Definition: Test.h:153

◆ modifyGrContextOptions()

void skiatest::Test::modifyGrContextOptions ( GrContextOptions options)
inline

Definition at line 155 of file Test.h.

155 {
157 (*fGaneshContextOptionsProc)(options);
158 }
159 }
GaneshContextOptionsProc fGaneshContextOptionsProc
Definition: Test.h:152

Member Data Documentation

◆ fCPUProc

CPUTestProc skiatest::Test::fCPUProc = nullptr

Definition at line 149 of file Test.h.

◆ fCTSEnforcement

CtsEnforcement skiatest::Test::fCTSEnforcement

Definition at line 148 of file Test.h.

◆ fGaneshContextOptionsProc

GaneshContextOptionsProc skiatest::Test::fGaneshContextOptionsProc = nullptr

Definition at line 152 of file Test.h.

◆ fGaneshProc

GaneshTestProc skiatest::Test::fGaneshProc = nullptr

Definition at line 150 of file Test.h.

◆ fGraphiteContextOptionsProc

GraphiteContextOptionsProc skiatest::Test::fGraphiteContextOptionsProc = nullptr

Definition at line 153 of file Test.h.

◆ fGraphiteProc

GraphiteTestProc skiatest::Test::fGraphiteProc = nullptr

Definition at line 151 of file Test.h.

◆ fName

const char* skiatest::Test::fName

Definition at line 146 of file Test.h.

◆ fTestType

TestType skiatest::Test::fTestType

Definition at line 147 of file Test.h.


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