From: Greg Daniel Date: Wed, 19 Apr 2017 19:27:54 +0000 (-0400) Subject: Update ProxyTest to skip configs that don't support the requested sample counts X-Git-Tag: accepted/tizen/5.0/unified/20181102.025319~36^2~700 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=41cf197bf05aa8e4fe2232cc6ae4d6038a79048b;p=platform%2Fupstream%2FlibSkiaSharp.git Update ProxyTest to skip configs that don't support the requested sample counts Bug: skia: Change-Id: I806dc153b8b6cf6dd6b74549905990cadb55daab Reviewed-on: https://skia-review.googlesource.com/13871 Reviewed-by: Robert Phillips Commit-Queue: Greg Daniel --- diff --git a/tests/ProxyTest.cpp b/tests/ProxyTest.cpp index 7657e28..7fd3029 100644 --- a/tests/ProxyTest.cpp +++ b/tests/ProxyTest.cpp @@ -213,6 +213,7 @@ DEF_GPUTEST_FOR_RENDERING_CONTEXTS(WrappedProxyTest, reporter, ctxInfo) { for (auto config : { kAlpha_8_GrPixelConfig, kRGBA_8888_GrPixelConfig }) { for (auto budgeted : { SkBudgeted::kYes, SkBudgeted::kNo }) { for (auto numSamples: { 0, 4}) { + if (caps.maxSampleCount() < numSamples) continue; bool renderable = caps.isConfigRenderable(config, numSamples > 0); GrSurfaceDesc desc;