Go to the source code of this file.
|
static void | draw_failure_message (SkCanvas *canvas, const char format[],...) SK_PRINTF_LIKE(2 |
|
static void | draw_gpu_only_message (SkCanvas *canvas) |
|
static void | handle_gm_failure (SkCanvas *canvas, DrawResult result, const SkString &errorMsg) |
|
template<typename Fn > |
static void | mark (SkCanvas *canvas, SkScalar x, SkScalar y, Fn &&fn) |
|
void | MarkGMGood (SkCanvas *canvas, SkScalar x, SkScalar y) |
|
void | MarkGMBad (SkCanvas *canvas, SkScalar x, SkScalar y) |
|
void | skiagm::Register (skiagm::GM *gm) |
|
◆ draw_failure_message()
static void static void draw_failure_message |
( |
SkCanvas * |
canvas, |
|
|
const char |
format[], |
|
|
|
... |
|
) |
| |
|
static |
Definition at line 36 of file gm.cpp.
36 {
38
39 va_list argp;
43
51}
static constexpr uint64_t kOffset
#define SkColorSetRGB(r, g, b)
@ kUTF8
uses bytes to represent UTF-8 or ASCII
void drawColor(SkColor color, SkBlendMode mode=SkBlendMode::kSrcOver)
void drawString(const char str[], SkScalar x, SkScalar y, const SkFont &font, const SkPaint &paint)
void void void void appendVAList(const char format[], va_list) SK_PRINTF_LIKE(2
const char * c_str() const
uint32_t uint32_t * format
constexpr SkColor4f kWhite
Optional< SkRect > bounds
font
Font Metadata and Metrics.
◆ draw_gpu_only_message()
static void draw_gpu_only_message |
( |
SkCanvas * |
canvas | ) |
|
|
static |
Definition at line 53 of file gm.cpp.
53 {
60 bmpCanvas.drawString(
"GPU Only", 20, 40,
font,
paint);
67 localM));
69}
constexpr SkColor SK_ColorWHITE
sk_sp< SkShader > makeShader(SkTileMode tmx, SkTileMode tmy, const SkSamplingOptions &, const SkMatrix *localMatrix=nullptr) const
void allocN32Pixels(int width, int height, bool isOpaque=false)
void drawPaint(const SkPaint &paint)
SkMatrix & postTranslate(SkScalar dx, SkScalar dy)
SkMatrix & setRotate(SkScalar degrees, SkScalar px, SkScalar py)
◆ handle_gm_failure()
Definition at line 71 of file gm.cpp.
71 {
74 }
else if (
SkString(GM::kErrorMsg_DrawSkippedGpuOnly) == errorMsg) {
76 } else {
78 }
79}
static void draw_failure_message(SkCanvas *canvas, const char format[],...) SK_PRINTF_LIKE(2
static void draw_gpu_only_message(SkCanvas *canvas)
◆ mark()
Definition at line 211 of file gm.cpp.
211 {
217 fn();
219}
int saveLayer(const SkRect *bounds, const SkPaint *paint)
void translate(SkScalar dx, SkScalar dy)
void scale(SkScalar sx, SkScalar sy)
◆ MarkGMBad()
Definition at line 238 of file gm.cpp.
238 {
240
242
243
246 paint.setStrokeWidth(2);
252 });
253}
void drawLine(SkScalar x0, SkScalar y0, SkScalar x1, SkScalar y1, const SkPaint &paint)
void drawCircle(SkScalar cx, SkScalar cy, SkScalar radius, const SkPaint &paint)
@ kStroke_Style
set to stroke geometry
static void mark(SkCanvas *canvas, SkScalar x, SkScalar y, Fn &&fn)
constexpr SkColor4f kTransparent
◆ MarkGMGood()
Definition at line 221 of file gm.cpp.
221 {
223
225
226
229 paint.setStrokeWidth(2);
235 });
236}