diff options
author | bsalomon <bsalomon@google.com> | 2016-04-11 14:21:33 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-04-11 14:21:33 -0700 |
commit | dc0fcd41e75682a8bfd5e285d684461475226330 (patch) | |
tree | a88c9ae58427a3d3afbd3bfb9705db49cb9fa298 /tests/GrContextFactoryTest.cpp | |
parent | 849b175c029bcb5d4abb7fdadc45e8ed36f29a78 (diff) |
Vulkan config in dm
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1872283003
Review URL: https://codereview.chromium.org/1872283003
Diffstat (limited to 'tests/GrContextFactoryTest.cpp')
-rw-r--r-- | tests/GrContextFactoryTest.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/tests/GrContextFactoryTest.cpp b/tests/GrContextFactoryTest.cpp index 395fa6a37f..fe4f1ef82f 100644 --- a/tests/GrContextFactoryTest.cpp +++ b/tests/GrContextFactoryTest.cpp @@ -78,7 +78,9 @@ DEF_GPUTEST(GrContextFactory_abandon, reporter, /*factory*/) { if (!info1.fGrContext) { continue; } - REPORTER_ASSERT(reporter, info1.fGLContext); + if (GrContextFactory::ContextTypeBackend(ctxType) == kOpenGL_GrBackend) { + REPORTER_ASSERT(reporter, info1.fGLContext); + } // Ref for comparison. The API does not explicitly say that this stays alive. info1.fGrContext->ref(); testFactory.abandonContexts(); @@ -86,7 +88,9 @@ DEF_GPUTEST(GrContextFactory_abandon, reporter, /*factory*/) { // Test that we get different context after abandon. ContextInfo info2 = testFactory.getContextInfo(ctxType); REPORTER_ASSERT(reporter, info2.fGrContext); - REPORTER_ASSERT(reporter, info2.fGLContext); + if (GrContextFactory::ContextTypeBackend(ctxType) == kOpenGL_GrBackend) { + REPORTER_ASSERT(reporter, info2.fGLContext); + } REPORTER_ASSERT(reporter, info1.fGrContext != info2.fGrContext); // fGLContext should also change, but it also could get the same address. |