diff options
author | Greg Daniel <egdaniel@google.com> | 2017-04-19 15:27:54 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-04-19 20:05:51 +0000 |
commit | 41cf197bf05aa8e4fe2232cc6ae4d6038a79048b (patch) | |
tree | 9540745155ca994f5a28d7ce8b25ce2f8407d10b /tests | |
parent | ffb48e1aaf7f21ad5cc6ee05f5c3ff971a3a967b (diff) |
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 <robertphillips@google.com>
Commit-Queue: Greg Daniel <egdaniel@google.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/ProxyTest.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/ProxyTest.cpp b/tests/ProxyTest.cpp index 7657e28f5a..7fd302951b 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; |