diff options
author | Brian Osman <brianosman@google.com> | 2017-06-15 14:16:08 -0400 |
---|---|---|
committer | Brian Osman <brianosman@google.com> | 2017-06-15 18:29:56 +0000 |
commit | bcf65edf2ca14bfd63712f7fb6a347973213daf5 (patch) | |
tree | 408456af87ef6df6eb628c90c463bab87affe6fc /tests/skbug6653.cpp | |
parent | 009e9af5549301be41cfbd9f286ad90842e4096b (diff) |
Bail out of test if MSAA surface creation fails
Bug: skia:
Change-Id: I44768314fad49fb0e094e30037a3fe159ebcbd0b
Reviewed-on: https://skia-review.googlesource.com/20044
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Brian Osman <brianosman@google.com>
Diffstat (limited to 'tests/skbug6653.cpp')
-rw-r--r-- | tests/skbug6653.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/skbug6653.cpp b/tests/skbug6653.cpp index eaf166c3e3..d200e14f4c 100644 --- a/tests/skbug6653.cpp +++ b/tests/skbug6653.cpp @@ -49,6 +49,10 @@ DEF_GPUTEST_FOR_RENDERING_CONTEXTS(skbug6653, reporter, ctxInfo) { for (int i = 0; i < kNumIterations; ++i) { auto s0 = make_surface(ctx); + if (!s0) { + // MSAA may not be supported + return; + } auto s1 = make_surface(ctx); s1->getCanvas()->clear(SK_ColorBLACK); |