Home | History | Annotate | Download | only in tests

Lines Matching defs:context

21     // Test that if NVPR is requested, the context always has path rendering
22 // or the context creation fails.
27 GrContext* context = testFactory.get(ctxType,
29 if (!context) {
34 context->caps()->shaderCaps()->pathRenderingSupport());
39 // Test that if NVPR is explicitly disabled, the context has no path rendering support.
44 GrContext* context =
46 if (context) {
49 !context->caps()->shaderCaps()->pathRenderingSupport());
55 // Test that if sRGB support is requested, the context always has that capability
56 // or the context creation fails. Also test that if the creation fails, a context
62 GrContext* context =
65 if (context) {
66 REPORTER_ASSERT(reporter, context->caps()->srgbSupport());
68 context = testFactory.get(ctxType);
69 if (context) {
70 REPORTER_ASSERT(reporter, !context->caps()->srgbSupport());
89 // Test that we get different context after abandon.
95 // The GL context should also change, but it also could get the same address.
114 // Test that creating a context in a share group with an abandoned context fails.
119 // Create a new base context
126 // Creating a context in a share group may fail, but should never crash.
134 // Passing a different index should create a new (unique) context.
145 // Verify that contexts have a task group iff we supply an executor with context options