22 for (
auto& v :
value) {
45 for (
int i = 0;
i < loops;
i++) {
59 for (
int i = 0;
i < 10000; ++
i) {
74 for (
int i = 0;
i < 10000; ++
i) {
88 for (
int i = 0;
i < 10000; ++
i) {
101 for (
int i = 0;
i < 10000; ++
i) {
119 SkV4 v = {1, 2, 3, 4};
120 for (
int i = 0;
i < 100000; ++
i) {
137 for (
int i = 0;
i < 100000; ++
i) {
161 const char* typeName;
187 fM.
setRow(3, {-.2f, -.6f, 0.f, 8.f});
193 fName.printf(
"mapRect_%s_%s",
name, typeName);
209 for (
int i = 0;
i < loops;
i++) {
224 for (
int i = 0;
i < 100000; ++
i) {
246 for (
int i = 0;
i < 100000; ++
i) {
247 fD = fM33.mapRect(fS);
#define INHERITED(method,...)
#define SkDegreesToRadians(degrees)
void performTest() override
M33_mapRectBench(MapMatrixType type)
void onDraw(int loops, SkCanvas *) override
bool isSuitableFor(Backend backend) override
virtual void performTest()=0
M4Bench(const char name[])
const char * onGetName() override
virtual int mulLoopCount() const
void performTest() override
void performTest() override
void performTest() override
void performTest() override
void performTest() override
void performTest() override
M4_mapRectBench(MapMatrixType type)
void performTest() override
MapRectBench(MapMatrixType type, const char name[])
bool isSuitableFor(Backend backend) override
virtual int mulLoopCount() const
virtual void performTest()=0
const char * onGetName() override
void onDraw(int loops, SkCanvas *) override
SkM44 & postTranslate(SkScalar x, SkScalar y, SkScalar z=0)
static SkM44 ColMajor(const SkScalar c[16])
void setRow(int i, const SkV4 &v)
static SkM44 Rotate(SkV3 axis, SkScalar radians)
SkM44 & preConcat(const SkM44 &m)
static SkM44 Translate(SkScalar x, SkScalar y, SkScalar z=0)
static SkM44 Perspective(float near, float far, float angle)
static SkM44 Scale(SkScalar x, SkScalar y, SkScalar z=1)
SkM44 & preTranslate(SkScalar x, SkScalar y, SkScalar z=0)
SkM44 & setConcat(const SkM44 &a, const SkM44 &b)
static SkRect MapRect(const SkM44 &m, const SkRect &r)
DEF_SWITCHES_START aot vmservice shared library name
static constexpr SkRect MakeXYWH(float x, float y, float w, float h)