aboutsummaryrefslogtreecommitdiffhomepage
path: root/bench/RotatedRectBench.cpp
diff options
context:
space:
mode:
authorGravatar tomhudson <tomhudson@google.com>2015-03-23 07:46:13 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2015-03-23 07:46:13 -0700
commitc589f6c9680f76b371b5a0ebcd986f2574751887 (patch)
tree05d2522790e370dc7badf41b095b43e6da2ef6d4 /bench/RotatedRectBench.cpp
parent68260fa1e913cb1f1f4f07755acd11357a47dc6f (diff)
Get rid of excess cleverness in benchmark
RotatedRectBench was asking for its base layer size, which may not be what it expects with odd canvas modes (particularly proxies). Most benchmarks are not so sophisticated; they hard-wire their size and just use that (expected) value. R=mtklein@google.com,djsollen@google.com BUG=skia:3566 Review URL: https://codereview.chromium.org/1015013004
Diffstat (limited to 'bench/RotatedRectBench.cpp')
-rw-r--r--bench/RotatedRectBench.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/bench/RotatedRectBench.cpp b/bench/RotatedRectBench.cpp
index 87b4ec8bd4..90bf611eb4 100644
--- a/bench/RotatedRectBench.cpp
+++ b/bench/RotatedRectBench.cpp
@@ -83,8 +83,8 @@ protected:
paint.setXfermodeMode(fMode);
SkColor color = start_color(fColorType);
- int w = canvas->getBaseLayerSize().width();
- int h = canvas->getBaseLayerSize().height();
+ int w = this->getSize().x();
+ int h = this->getSize().y();
static const SkScalar kRectW = 25.1f;
static const SkScalar kRectH = 25.9f;