Lines Matching defs:context

132     static void Release(const void* pixels, void* context) {
133 RasterDataHolder* self = static_cast<RasterDataHolder*>(context);
391 // Create a texture image in a another context.
416 auto imageContext = as_IB(image)->context();
417 // We expect to fail if image comes from a different context
431 // Did we ask for MIPs on a context that supports them?
441 // already have MIPs but we asked for MIPs and the context supports it.
612 // Give up all other refs on the context.
898 // expect the cross-context images not to work on multiple contexts at once.
903 // We test three lifetime patterns for a single context:
907 // ... and then repeat the last two patterns with drawing on a second* context:
946 // Configure second context
953 // Creating a context in a share group may fail
991 // Case #6: Verify that only one context can be using the image at a time
1000 // Any context should be able to borrow the texture at this point
1004 // But once it's borrowed, no other context should be able to borrow
1009 // Original context (that's already borrowing) should be okay
1015 // Release first ref from the original context
1018 // We released one proxy but not the other from the current borrowing context. Make sure
1019 // a new context is still not able to borrow the texture.
1024 // Release second ref from the original context
1028 // Now we should be able to borrow the texture from the other context
1083 auto context = ctxInfo.directContext();
1085 sk_sp<GrContextThreadSafeProxy> proxy = context->threadSafeProxy();
1092 auto createLarge = [context] {
1093 return create_image_large(context->priv().caps()->maxTextureSize());
1105 { [context] { return create_gpu_image(context); }, true, true },
1106 // Create a texture image in a another context.
1131 bool result = SkImage::MakeBackendTextureFromSkImage(context, std::move(image),
1150 context->flushAndSubmit();
1166 // After abandoning the context the backend texture should not be valid.