diff options
author | Mike Reed <reed@google.com> | 2017-02-22 13:21:42 -0500 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-02-22 19:41:04 +0000 |
commit | 3661bc997620899695041010a750d11dbe8a972d (patch) | |
tree | a3607cc09eaefdc85b6f3d511b8f9632b680dd95 /tests/WritePixelsTest.cpp | |
parent | 2b767361de00fd85cb32dce62c4a95d30b7eaabf (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 'tests/WritePixelsTest.cpp')
-rw-r--r-- | tests/WritePixelsTest.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/WritePixelsTest.cpp b/tests/WritePixelsTest.cpp index 1c5ce81cbf..c38e4d665d 100644 --- a/tests/WritePixelsTest.cpp +++ b/tests/WritePixelsTest.cpp @@ -382,7 +382,7 @@ static void test_write_pixels(skiatest::Reporter* reporter, SkSurface* surface) rect.fLeft, rect.fTop)); // we should change the genID iff pixels were actually written. - SkIRect canvasRect = SkIRect::MakeSize(canvas.getDeviceSize()); + SkIRect canvasRect = SkIRect::MakeSize(canvas.getBaseLayerSize()); SkIRect writeRect = SkIRect::MakeXYWH(rect.fLeft, rect.fTop, bmp.width(), bmp.height()); bool intersects = SkIRect::Intersects(canvasRect, writeRect) ; |