diff options
author | Mike Reed <reed@google.com> | 2017-04-17 10:53:29 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-04-17 15:22:42 +0000 |
commit | 12e946b4bfdf598bffb276776ea6e25439e25265 (patch) | |
tree | 3431130a5008af573c497da13243da360d147918 /tests/WritePixelsTest.cpp | |
parent | 81340c65e0e507ca544e32c0fa0c6880f371eaff (diff) |
deprecate odd variants of SkCanvas::readPixels
Bug: skia:6513
Change-Id: I51179a85f0912d3f899c368c30a943d346dd1d05
Reviewed-on: https://skia-review.googlesource.com/13589
Reviewed-by: Florin Malita <fmalita@chromium.org>
Reviewed-by: Matt Sarett <msarett@google.com>
Commit-Queue: Mike Reed <reed@google.com>
Diffstat (limited to 'tests/WritePixelsTest.cpp')
-rw-r--r-- | tests/WritePixelsTest.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/WritePixelsTest.cpp b/tests/WritePixelsTest.cpp index cace6b196e..bf2e64efc1 100644 --- a/tests/WritePixelsTest.cpp +++ b/tests/WritePixelsTest.cpp @@ -191,7 +191,8 @@ static bool check_write(skiatest::Reporter* reporter, SkCanvas* canvas, const Sk // At some point this will be unsupported, as we won't allow accessBitmap() to magically call // readPixels for the client. SkBitmap secretDevBitmap; - if (!canvas->readPixels(canvasInfo.bounds(), &secretDevBitmap)) { + secretDevBitmap.allocN32Pixels(canvasInfo.width(), canvasInfo.height()); + if (!canvas->readPixels(secretDevBitmap, 0, 0)) { return false; } |