17class D3DTestContextImpl :
public sk_gpu_test::D3DTestContext {
19 static D3DTestContext*
Create(D3DTestContext* sharedContext) {
25 backendContext = sharedContext->getD3DBackendContext();
28 if (!sk_gpu_test::CreateD3DBackendContext(&backendContext)) {
34 return new D3DTestContextImpl(backendContext, ownsContext);
37 ~D3DTestContextImpl()
override { this->teardown(); }
39 void testAbandon()
override {}
42 return GrDirectContext::MakeDirect3D(fD3D,
options);
46 void teardown()
override {
47 INHERITED::teardown();
55 : D3DTestContext(backendContext, ownsContext) {
59 void onPlatformMakeNotCurrent()
const override {}
60 void onPlatformMakeCurrent()
const override {}
61 std::function<void()> onPlatformGetAutoContextRestore()
const override {
return nullptr; }
63 using INHERITED = sk_gpu_test::D3DTestContext;
68D3DTestContext* CreatePlatformD3DTestContext(D3DTestContext* sharedContext) {
static sk_sp< Effect > Create()
#define INHERITED(method,...)
Dart_NativeFunction function