| Index: bench/DrawLatticeBench.cpp
|
| diff --git a/bench/DrawLatticeBench.cpp b/bench/DrawLatticeBench.cpp
|
| index 4c03ca1dfa020fdf0038800b30c964222b3bf025..baafed6dbb6207c1998d264051d61e8c51e8aa06 100644
|
| --- a/bench/DrawLatticeBench.cpp
|
| +++ b/bench/DrawLatticeBench.cpp
|
| @@ -29,6 +29,10 @@ public:
|
| return fName.c_str();
|
| }
|
|
|
| + SkIPoint onGetSize() override {
|
| + return SkIPoint::Make(fDst.width(), fDst.height());
|
| + }
|
| +
|
| bool isSuitableFor(Backend backend) override {
|
| return kRaster_Backend == backend || kGPU_Backend == backend;
|
| }
|
| @@ -54,6 +58,9 @@ private:
|
| typedef Benchmark INHERITED;
|
| };
|
|
|
| -static int gDivs[2] = { 250, 750, };
|
| -DEF_BENCH(return new DrawLatticeBench(gDivs, 2, gDivs, 2, SkISize::Make(1000, 1000),
|
| - SkRect::MakeWH(4000.0f, 4000.0f), "StandardNine");)
|
| +static int gSmallDivs[2] = { 25, 75, };
|
| +DEF_BENCH(return new DrawLatticeBench(gSmallDivs, 2, gSmallDivs, 2, SkISize::Make(100, 100),
|
| + SkRect::MakeWH(500.0f, 500.0f), "Small");)
|
| +static int gLargeDivs[2] = { 250, 750, };
|
| +DEF_BENCH(return new DrawLatticeBench(gLargeDivs, 2, gLargeDivs, 2, SkISize::Make(1000, 1000),
|
| + SkRect::MakeWH(4000.0f, 4000.0f), "Large");)
|
|
|