|
| 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 {
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 * 1
e-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 }
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++) {
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 |
◆ print() [4/6]
void Dumper::print |
( |
const SkRecords::Save & |
command, |
|
|
double |
ns |
|
) |
| |
|
inline |
◆ print() [5/6]
void Dumper::print |
( |
const SkRecords::SaveLayer & |
command, |
|
|
double |
ns |
|
) |
| |
|
inline |
◆ print() [6/6]
void Dumper::print |
( |
const T & |
command, |
|
|
double |
ns |
|
) |
| |
|
inline |
The documentation for this class was generated from the following file: