aboutsummaryrefslogtreecommitdiffhomepage
path: root/bench/ReadPixBench.cpp
diff options
context:
space:
mode:
authorGravatar Mike Reed <reed@google.com>2017-02-22 13:21:42 -0500
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-02-22 19:41:04 +0000
commit3661bc997620899695041010a750d11dbe8a972d (patch)
treea3607cc09eaefdc85b6f3d511b8f9632b680dd95 /bench/ReadPixBench.cpp
parent2b767361de00fd85cb32dce62c4a95d30b7eaabf (diff)
hide trivial helpers on canvas
BUG=skia: Change-Id: I42d4ca92897bde5bd8e0575a0104b12b83134cef Reviewed-on: https://skia-review.googlesource.com/8852 Reviewed-by: Cary Clark <caryclark@google.com> Commit-Queue: Mike Reed <reed@google.com>
Diffstat (limited to 'bench/ReadPixBench.cpp')
-rw-r--r--bench/ReadPixBench.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/bench/ReadPixBench.cpp b/bench/ReadPixBench.cpp
index b1061a1cde..ad9f747e7d 100644
--- a/bench/ReadPixBench.cpp
+++ b/bench/ReadPixBench.cpp
@@ -26,7 +26,7 @@ protected:
void onDraw(int loops, SkCanvas* canvas) override {
canvas->clear(SK_ColorBLACK);
- SkISize size = canvas->getDeviceSize();
+ SkISize size = canvas->getBaseLayerSize();
int offX = (size.width() - kWindowSize) / kNumStepsX;
int offY = (size.height() - kWindowSize) / kNumStepsY;