From c589f6c9680f76b371b5a0ebcd986f2574751887 Mon Sep 17 00:00:00 2001 From: tomhudson Date: Mon, 23 Mar 2015 07:46:13 -0700 Subject: 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 --- bench/RotatedRectBench.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bench/RotatedRectBench.cpp') 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; -- cgit v1.2.3