|
| Dumper (SkCanvas *canvas, int count) |
|
template<typename T > |
void | operator() (const T &command) |
|
void | operator() (const SkRecords::NoOp &) |
|
template<typename T > |
void | print (const T &command, double ns) |
|
void | print (const SkRecords::Restore &command, double ns) |
|
void | print (const SkRecords::Save &command, double ns) |
|
void | print (const SkRecords::SaveLayer &command, double ns) |
|
void | print (const SkRecords::DrawPicture &command, double ns) |
|
void | print (const SkRecords::DrawAnnotation &command, double ns) |
|
Definition at line 33 of file dump_record.cpp.
◆ Dumper()
Definition at line 35 of file dump_record.cpp.
36 : fDigits(0)
37 , fIndent(0)
38 , fIndex(0)
39 , fDraw(canvas, nullptr, nullptr, 0, nullptr)
40 {
43 fDigits++;
44 }
45 }
◆ operator()() [1/2]
void Dumper::operator() |
( |
const SkRecords::NoOp & |
| ) |
|
|
inline |
◆ operator()() [2/2]
void Dumper::operator() |
( |
const T & |
command | ) |
|
|
inline |
Definition at line 48 of file dump_record.cpp.
48 {
50 fDraw(command);
52 }
void print(const T &command, double ns)
◆ print() [1/6]
void Dumper::print |
( |
const SkRecords::DrawAnnotation & |
command, |
|
|
double |
ns |
|
) |
| |
|
inline |
Definition at line 93 of file dump_record.cpp.
93 {
94 int us = (
int)(ns * 1e-3);
95 if (!FLAGS_timeWithCommand) {
97 }
98 printf(
"%*d ", fDigits, fIndex++);
99 for (int i = 0; i < fIndent; i++) {
101 }
102 if (FLAGS_timeWithCommand) {
104 }
105 printf(
"DrawAnnotation [%g %g %g %g] %s\n",
108 }
Type::kYUV Type::kRGBA() int(0.7 *637)
std::string printf(const char *fmt,...) SK_PRINTF_LIKE(1
◆ print() [2/6]
void Dumper::print |
( |
const SkRecords::DrawPicture & |
command, |
|
|
double |
ns |
|
) |
| |
|
inline |
Definition at line 78 of file dump_record.cpp.
78 {
79 this->printNameAndTime(command, ns);
80
82 ++fIndent;
83
85 for (
int i = 0; i < record.
count(); i++) {
86 record.
visit(i, *
this);
87 }
88
89 --fIndent;
90 }
91 }
static const SkBigPicture * AsSkBigPicture(const sk_sp< const SkPicture > &picture)
auto visit(int i, F &&f) const -> decltype(f(SkRecords::NoOp()))
◆ print() [3/6]
void Dumper::print |
( |
const SkRecords::Restore & |
command, |
|
|
double |
ns |
|
) |
| |
|
inline |
Definition at line 63 of file dump_record.cpp.
63 {
64 --fIndent;
65 this->printNameAndTime(command, ns);
66 }
◆ print() [4/6]
void Dumper::print |
( |
const SkRecords::Save & |
command, |
|
|
double |
ns |
|
) |
| |
|
inline |
Definition at line 68 of file dump_record.cpp.
68 {
69 this->printNameAndTime(command, ns);
70 ++fIndent;
71 }
◆ print() [5/6]
void Dumper::print |
( |
const SkRecords::SaveLayer & |
command, |
|
|
double |
ns |
|
) |
| |
|
inline |
Definition at line 73 of file dump_record.cpp.
73 {
74 this->printNameAndTime(command, ns);
75 ++fIndent;
76 }
◆ print() [6/6]
void Dumper::print |
( |
const T & |
command, |
|
|
double |
ns |
|
) |
| |
|
inline |
Definition at line 59 of file dump_record.cpp.
59 {
60 this->printNameAndTime(command, ns);
61 }
The documentation for this class was generated from the following file: