diff --git a/bench/DisplacementBench.cpp b/bench/DisplacementBench.cpp index 37d53d1d52..97c008aafe 100644 --- a/bench/DisplacementBench.cpp +++ b/bench/DisplacementBench.cpp @@ -32,7 +32,7 @@ protected: void makeBitmap() { const int w = this->isSmall() ? FILTER_WIDTH_SMALL : FILTER_WIDTH_LARGE; - const int h = this->isSmall() ? FILTER_HEIGHT_LARGE : FILTER_HEIGHT_LARGE; + const int h = this->isSmall() ? FILTER_HEIGHT_SMALL : FILTER_HEIGHT_LARGE; fBitmap.allocN32Pixels(w, h); SkCanvas canvas(fBitmap); canvas.clear(0x00000000); @@ -46,7 +46,7 @@ protected: void makeCheckerboard() { const int w = this->isSmall() ? FILTER_WIDTH_SMALL : FILTER_WIDTH_LARGE; - const int h = this->isSmall() ? FILTER_HEIGHT_LARGE : FILTER_HEIGHT_LARGE; + const int h = this->isSmall() ? FILTER_HEIGHT_SMALL : FILTER_HEIGHT_LARGE; auto surface(SkSurface::MakeRasterN32Premul(w, h)); SkCanvas* canvas = surface->getCanvas(); canvas->clear(0x00000000); diff --git a/bench/MagnifierBench.cpp b/bench/MagnifierBench.cpp index 6403aa6de7..d345c63653 100644 --- a/bench/MagnifierBench.cpp +++ b/bench/MagnifierBench.cpp @@ -53,7 +53,7 @@ protected: private: void make_checkerboard() { const int w = fIsSmall ? FILTER_WIDTH_SMALL : FILTER_WIDTH_LARGE; - const int h = fIsSmall ? FILTER_HEIGHT_LARGE : FILTER_HEIGHT_LARGE; + const int h = fIsSmall ? FILTER_HEIGHT_SMALL : FILTER_HEIGHT_LARGE; fCheckerboard.allocN32Pixels(w, h); SkCanvas canvas(fCheckerboard); canvas.clear(0x00000000);