bench: Fix a couple presumed copy/paste errors
We switch to FILTER_HEIGHT_SMALL when fIsSmall. Change-Id: I5d21eacbee29a349caa96815b2059c0bebd819e2 Reviewed-on: https://skia-review.googlesource.com/c/190563 Reviewed-by: Mike Klein <mtklein@google.com> Commit-Queue: Mike Klein <mtklein@google.com>
This commit is contained in:
parent
0c85e78ddf
commit
fb7a713dc5
@ -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);
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user