diff options
Diffstat (limited to 'tests/GrContextFactoryTest.cpp')
-rw-r--r-- | tests/GrContextFactoryTest.cpp | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/tests/GrContextFactoryTest.cpp b/tests/GrContextFactoryTest.cpp index 92801eba83..b05f2e29ce 100644 --- a/tests/GrContextFactoryTest.cpp +++ b/tests/GrContextFactoryTest.cpp @@ -47,28 +47,6 @@ DEF_GPUTEST(GrContextFactory_NoPathRenderingIfNVPRDisabled, reporter, options) { } } -DEF_GPUTEST(GrContextFactory_RequiredSRGBSupport, reporter, options) { - // Test that if sRGB support is requested, the context always has that capability - // or the context creation fails. Also test that if the creation fails, a context - // created without that flag would not have had sRGB support. - for (int i = 0; i < GrContextFactory::kContextTypeCnt; ++i) { - GrContextFactory testFactory(options); - // Test that if sRGB is requested, caps are in sync. - GrContextFactory::ContextType ctxType = static_cast<GrContextFactory::ContextType>(i); - GrContext* context = - testFactory.get(ctxType, GrContextFactory::ContextOverrides::kRequireSRGBSupport); - - if (context) { - REPORTER_ASSERT(reporter, context->contextPriv().caps()->srgbSupport()); - } else { - context = testFactory.get(ctxType); - if (context) { - REPORTER_ASSERT(reporter, !context->contextPriv().caps()->srgbSupport()); - } - } - } -} - DEF_GPUTEST(GrContextFactory_abandon, reporter, options) { for (int i = 0; i < GrContextFactory::kContextTypeCnt; ++i) { GrContextFactory testFactory(options); |