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
diff --git a/bench/RotatedRectBench.cpp b/bench/RotatedRectBench.cpp
index 87b4ec8..90bf611 100644
--- a/bench/RotatedRectBench.cpp
+++ b/bench/RotatedRectBench.cpp
@@ -83,8 +83,8 @@
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;