|
enum | Mode { kGM_Mode
, kSample_Mode
, kBench_Mode
} |
|
using | DrawResult = skiagm::DrawResult |
|
using | GraphiteTestContext = skiatest::graphite::GraphiteTestContext |
|
| 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) |
|
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 |
|
static constexpr char | kErrorMsg_DrawSkippedGpuOnly [] |
|
virtual DrawResult | onGpuSetup (SkCanvas *, SkString *, GraphiteTestContext *) |
|
virtual void | onGpuTeardown () |
|
virtual void | onOnceBeforeDraw () |
|
virtual DrawResult | onDraw (SkCanvas *, SkString *errorMsg) |
|
virtual bool | onAnimate (double) |
|
virtual bool | onGetControls (SkMetaData *) |
|
virtual void | onSetControls (const SkMetaData &) |
|
GraphiteTestContext * | graphiteTestContext () const |
|
Definition at line 39 of file runtimefunctions.cpp.
◆ getISize()
SkISize RuntimeFunctions::getISize |
( |
| ) |
|
|
inlineoverrideprivatevirtual |
◆ getName()
SkString RuntimeFunctions::getName |
( |
| ) |
const |
|
inlineoverrideprivatevirtual |
◆ onDraw()
void RuntimeFunctions::onDraw |
( |
SkCanvas * |
canvas | ) |
|
|
inlineoverrideprivatevirtual |
Reimplemented from skiagm::GM.
Definition at line 46 of file runtimefunctions.cpp.
46 {
50
53
54 SkV4 iResolution = { 255, 255, 0, 0 };
55 auto shader =
result.effect->makeShader(
58 p.setShader(std::move(shader));
60 }
#define SkASSERTF(cond, fmt,...)
void drawRect(const SkRect &rect, const SkPaint &paint)
static sk_sp< SkData > MakeWithCopy(const void *data, size_t length)
SkMatrix & setRotate(SkScalar degrees, SkScalar px, SkScalar py)
static Result MakeForShader(SkString sksl, const Options &)
static const char * RUNTIME_FUNCTIONS_SRC
◆ runAsBench()
bool RuntimeFunctions::runAsBench |
( |
| ) |
const |
|
inlineoverrideprivatevirtual |
The documentation for this class was generated from the following file: