Flutter Engine
The Flutter Engine
Public Member Functions | List of all members
skiagm::ConicalGradientsGM Class Reference
Inheritance diagram for skiagm::ConicalGradientsGM:
skiagm::GM

Public Member Functions

 ConicalGradientsGM (GradCaseType gradCaseType, bool dither, SkTileMode mode=SkTileMode::kClamp)
 
- Public Member Functions inherited from skiagm::GM
 GM (SkColor backgroundColor=SK_ColorWHITE)
 
virtual ~GM ()
 
void setMode (Mode mode)
 
Mode getMode () const
 
DrawResult gpuSetup (SkCanvas *, SkString *errorMsg, GraphiteTestContext *=nullptr)
 
void gpuTeardown ()
 
void onceBeforeDraw ()
 
DrawResult draw (SkCanvas *canvas)
 
DrawResult draw (SkCanvas *, SkString *errorMsg)
 
void drawBackground (SkCanvas *)
 
DrawResult drawContent (SkCanvas *canvas)
 
DrawResult drawContent (SkCanvas *, SkString *errorMsg)
 
virtual SkISize getISize ()=0
 
virtual SkString getName () const =0
 
virtual bool runAsBench () const
 
SkScalar width ()
 
SkScalar height ()
 
SkColor getBGColor () const
 
void setBGColor (SkColor)
 
void drawSizeBounds (SkCanvas *, SkColor)
 
bool animate (double)
 
virtual bool onChar (SkUnichar)
 
bool getControls (SkMetaData *controls)
 
void setControls (const SkMetaData &controls)
 
virtual void modifyGrContextOptions (GrContextOptions *)
 
virtual void modifyGraphiteContextOptions (skgpu::graphite::ContextOptions *) const
 
virtual bool isBazelOnly () const
 
virtual std::map< std::string, std::string > getGoldKeys () const
 

Additional Inherited Members

- Public Types inherited from skiagm::GM
enum  Mode { kGM_Mode , kSample_Mode , kBench_Mode }
 
using DrawResult = skiagm::DrawResult
 
using GraphiteTestContext = skiatest::graphite::GraphiteTestContext
 
- Static Public Attributes inherited from skiagm::GM
static constexpr char kErrorMsg_DrawSkippedGpuOnly []
 
- Protected Member Functions inherited from skiagm::GM
virtual DrawResult onGpuSetup (SkCanvas *, SkString *, GraphiteTestContext *)
 
virtual void onGpuTeardown ()
 
virtual void onOnceBeforeDraw ()
 
virtual DrawResult onDraw (SkCanvas *, SkString *errorMsg)
 
virtual void onDraw (SkCanvas *)
 
virtual bool onAnimate (double)
 
virtual bool onGetControls (SkMetaData *)
 
virtual void onSetControls (const SkMetaData &)
 
GraphiteTestContextgraphiteTestContext () const
 

Detailed Description

Definition at line 323 of file gradients_2pt_conical.cpp.

Constructor & Destructor Documentation

◆ ConicalGradientsGM()

skiagm::ConicalGradientsGM::ConicalGradientsGM ( GradCaseType  gradCaseType,
bool  dither,
SkTileMode  mode = SkTileMode::kClamp 
)
inline

Definition at line 325 of file gradients_2pt_conical.cpp.

327 : fGradCaseType(gradCaseType)
328 , fDither(dither)
329 , fMode(mode) {
330 fName.printf("gradients_2pt_conical_%s%s", gGradCases[gradCaseType].fName,
331 fDither ? "" : "_nodither");
332 switch (mode) {
334 fName.appendf("_repeat");
335 break;
337 fName.appendf("_mirror");
338 break;
339 default:
340 break;
341 }
342 }
const char * fName
void printf(const char format[],...) SK_PRINTF_LIKE(2
Definition: SkString.cpp:534
it will be possible to load the file into Perfetto s trace viewer disable asset Prevents usage of any non test fonts unless they were explicitly Loaded via prefetched default font Indicates whether the embedding started a prefetch of the default font manager before creating the engine run In non interactive mode
Definition: switches.h:228
constexpr struct skiagm::@259 gGradCases[]

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