From c9a642edf2d1c7f5380fe829adbb1a692f9969a6 Mon Sep 17 00:00:00 2001 From: Brian Salomon Date: Mon, 19 Mar 2018 12:29:39 -0400 Subject: New read pixels implementation that is simpler but does all conversions on CPU. Change-Id: Ia548cd24a8544b35a233311706faf48de353b7cf Reviewed-on: https://skia-review.googlesource.com/109902 Commit-Queue: Brian Salomon Reviewed-by: Robert Phillips --- tests/ReadWriteAlphaTest.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'tests/ReadWriteAlphaTest.cpp') diff --git a/tests/ReadWriteAlphaTest.cpp b/tests/ReadWriteAlphaTest.cpp index eaad411d5a..b82c48fd5d 100644 --- a/tests/ReadWriteAlphaTest.cpp +++ b/tests/ReadWriteAlphaTest.cpp @@ -99,6 +99,11 @@ DEF_GPUTEST_FOR_RENDERING_CONTEXTS(ReadWriteAlpha, reporter, ctxInfo) { // read the texture back result = sContext->readPixels(ii, readback.get(), rowBytes, 0, 0); + // We don't require reading from kAlpha_8 to be supported. TODO: At least make this work + // when kAlpha_8 is renderable. + if (!result) { + continue; + } REPORTER_ASSERT(reporter, result, "Initial A8 readPixels failed"); // make sure the original & read back versions match -- cgit v1.2.3