Definition at line 42 of file perspshaders.cpp.
◆ PerspShadersGM()
skiagm::PerspShadersGM::PerspShadersGM |
( |
bool |
doAA | ) |
|
|
inline |
◆ drawRow()
Definition at line 91 of file perspshaders.cpp.
91 {
94
98
105
107
109
111 canvas->
concat(fPerspMatrix);
114
117 canvas->
concat(fPerspMatrix);
120
123 canvas->
concat(fPerspMatrix);
126
129 canvas->
concat(fPerspMatrix);
132
135 canvas->
concat(fPerspMatrix);
138
141 canvas->
concat(fPerspMatrix);
142 canvas->
drawPath(fPath, gradPaint2);
144
146 }
void drawRect(const SkRect &rect, const SkPaint &paint)
void translate(SkScalar dx, SkScalar dy)
void drawImageRect(const SkImage *, const SkRect &src, const SkRect &dst, const SkSamplingOptions &, const SkPaint *, SrcRectConstraint)
void drawPath(const SkPath &path, const SkPaint &paint)
void concat(const SkMatrix &matrix)
void drawImage(const SkImage *image, SkScalar left, SkScalar top)
sk_sp< SkShader > makeShader(SkTileMode tmx, SkTileMode tmy, const SkSamplingOptions &, const SkMatrix *localMatrix=nullptr) const
void setAntiAlias(bool aa)
void setShader(sk_sp< SkShader > shader)
SkSamplingOptions sampling
static constexpr SkRect MakeWH(float w, float h)
◆ getISize()
SkISize skiagm::PerspShadersGM::getISize |
( |
| ) |
|
|
inlineoverrideprotectedvirtual |
◆ getName()
SkString skiagm::PerspShadersGM::getName |
( |
| ) |
const |
|
inlineoverrideprotectedvirtual |
Implements skiagm::GM.
Definition at line 47 of file perspshaders.cpp.
47 {
49 name.printf(
"persp_shaders_%s",
50 fDoAA ? "aa" : "bw");
52 }
DEF_SWITCHES_START aot vmservice shared library name
◆ onDraw()
void skiagm::PerspShadersGM::onDraw |
( |
SkCanvas * |
canvas | ) |
|
|
inlineoverrideprotectedvirtual |
Reimplemented from skiagm::GM.
Definition at line 148 of file perspshaders.cpp.
148 {
150 fImage =
make_image(canvas, kCellSize, kCellSize);
151 }
152
164 }
virtual GrRecordingContext * recordingContext() const
virtual bool isValid(GrRecordingContext *context) const =0
void drawRow(SkCanvas *canvas, const SkSamplingOptions &sampling)
SkSamplingOptions(SkFilterMode::kLinear))
static sk_sp< SkImage > make_image(SkColorType colorType, SkAlphaType alphaType)
static constexpr SkCubicResampler Mitchell()
static constexpr SkSamplingOptions Aniso(int maxAniso)
◆ onOnceBeforeDraw()
void skiagm::PerspShadersGM::onOnceBeforeDraw |
( |
| ) |
|
|
inlineoverrideprotectedvirtual |
Reimplemented from skiagm::GM.
Definition at line 58 of file perspshaders.cpp.
58 {
61
63 { 0, 0 },
65 };
67 { 0, 0 },
69 };
72 };
74
79
82
85 fPath.
lineTo(kCellSize/2.0f, kCellSize/2.0f);
89 }
constexpr SkColor SK_ColorYELLOW
constexpr SkColor SK_ColorBLUE
constexpr SkColor SK_ColorRED
constexpr SkColor SK_ColorGREEN
static sk_sp< SkShader > MakeLinear(const SkPoint pts[2], const SkColor colors[], const SkScalar pos[], int count, SkTileMode mode, uint32_t flags=0, const SkMatrix *localMatrix=nullptr)
SkMatrix & setPerspY(SkScalar v)
SkPath & moveTo(SkScalar x, SkScalar y)
SkPath & lineTo(SkScalar x, SkScalar y)
PODArray< SkColor > colors
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 keep the shell running after the Dart script has completed enable serial On low power devices with low core running concurrent GC tasks on threads can cause them to contend with the UI thread which could potentially lead to jank This option turns off all concurrent GC activities domain network JSON encoded network policy per domain This overrides the DisallowInsecureConnections switch Embedder can specify whether to allow or disallow insecure connections at a domain level old gen heap size
The documentation for this class was generated from the following file: