diff options
author | Mike Reed <reed@google.com> | 2017-07-21 14:24:29 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-07-21 18:49:05 +0000 |
commit | f19421961c59ceabfb88a5c5cdf7c7e31a95b015 (patch) | |
tree | 5908b47d389465242a24c1439c115db57295f883 /tests/PremulAlphaRoundTripTest.cpp | |
parent | ce98801bbb5ac251b374f8b565445add43017aaa (diff) |
don't rely on canvas->readPixels
Bug: skia:3216
Change-Id: I01a8d0083c79c0fe71fbc4d8cfdde4fa6e48b636
Reviewed-on: https://skia-review.googlesource.com/25741
Commit-Queue: Mike Reed <reed@google.com>
Reviewed-by: Brian Salomon <bsalomon@google.com>
Diffstat (limited to 'tests/PremulAlphaRoundTripTest.cpp')
-rw-r--r-- | tests/PremulAlphaRoundTripTest.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/PremulAlphaRoundTripTest.cpp b/tests/PremulAlphaRoundTripTest.cpp index 7719ad88ab..2c3cb005b5 100644 --- a/tests/PremulAlphaRoundTripTest.cpp +++ b/tests/PremulAlphaRoundTripTest.cpp @@ -76,10 +76,10 @@ static void test_premul_alpha_roundtrip(skiatest::Reporter* reporter, SkSurface* readBmp1.eraseColor(0); readBmp2.eraseColor(0); - canvas->readPixels(readBmp1, 0, 0); + surf->readPixels(readBmp1, 0, 0); sk_tool_utils::write_pixels(canvas, readBmp1, 0, 0, gUnpremul[upmaIdx].fColorType, kUnpremul_SkAlphaType); - canvas->readPixels(readBmp2, 0, 0); + surf->readPixels(readBmp2, 0, 0); bool success = true; for (int y = 0; y < 256 && success; ++y) { |