Go to the source code of this file.
◆ DEF_SIMPLE_GM()
DEF_SIMPLE_GM |
( |
sk3d_simple |
, |
|
|
real_canvas |
, |
|
|
300 |
, |
|
|
300 |
|
|
) |
| |
Definition at line 65 of file 3d.cpp.
65 {
66 do_draw(real_canvas, 0xFFFF0000);
67
70
72
74 real_canvas->drawPicture(pic);
75}
static void do_draw(SkCanvas *canvas, SkColor color)
SkCanvas * beginRecording(const SkRect &bounds, sk_sp< SkBBoxHierarchy > bbh)
sk_sp< SkPicture > finishRecordingAsPicture()
◆ do_draw()
Definition at line 47 of file 3d.cpp.
47 {
49
51
53
55
60}
static SkM44 make_ctm(const Info &info, const SkM44 &model, SkSize size)
static void info(const char *fmt,...) SK_PRINTF_LIKE(1
void drawRect(const SkRect &rect, const SkPaint &paint)
void translate(SkScalar dx, SkScalar dy)
void concat(const SkMatrix &matrix)
static SkM44 Rotate(SkV3 axis, SkScalar radians)
◆ inv()
Definition at line 26 of file 3d.cpp.
26 {
28 if (!
m.invert(&inverse)) {
29 inverse.setIdentity();
30 }
31 return inverse;
32}
@ kUninitialized_Constructor
◆ make_ctm()
Definition at line 34 of file 3d.cpp.
34 {
35 SkM44 camera, perspective, viewport;
36
39
43
44 return viewport * perspective * camera * model *
inv(viewport);
45}
static SkM44 inv(const SkM44 &m)
static SkM44 LookAt(const SkV3 &eye, const SkV3 ¢er, const SkV3 &up)
SkM44 & setScale(SkScalar x, SkScalar y, SkScalar z=1)
static SkM44 Perspective(float near, float far, float angle)
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