From 0a7aa14bf36cbb444b84902a37591d7a9c84fbd0 Mon Sep 17 00:00:00 2001 From: Greg Daniel Date: Wed, 21 Feb 2018 13:02:32 -0500 Subject: Add checks for failed SkImageInfo2GrPixelConfig calls Bug: skia:7645 Change-Id: I32b9326fb43490ef6a7a99527243b68d89184ae1 Reviewed-on: https://skia-review.googlesource.com/109083 Commit-Queue: Greg Daniel Reviewed-by: Brian Salomon --- tests/ProxyTest.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'tests/ProxyTest.cpp') diff --git a/tests/ProxyTest.cpp b/tests/ProxyTest.cpp index 20d721be86..f48e2a090f 100644 --- a/tests/ProxyTest.cpp +++ b/tests/ProxyTest.cpp @@ -199,6 +199,7 @@ DEF_GPUTEST_FOR_RENDERING_CONTEXTS(WrappedProxyTest, reporter, ctxInfo) { for (auto colorType : { kAlpha_8_SkColorType, kRGBA_8888_SkColorType }) { for (auto numSamples : {1, 4}) { GrPixelConfig config = SkImageInfo2GrPixelConfig(colorType, nullptr, caps); + SkASSERT(kUnknown_GrPixelConfig != config); int supportedNumSamples = caps.getRenderTargetSampleCount(numSamples, config); if (!supportedNumSamples) { -- cgit v1.2.3