Start adding D3D backend

Bug: skia:
Change-Id: Id24ed653adb80fe9b2ad597a34e459eb91ca53ec
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/271057
Commit-Queue: Jim Van Verth <jvanverth@google.com>
Reviewed-by: Brian Salomon <bsalomon@google.com>
diff --git a/src/gpu/GrLegacyDirectContext.cpp b/src/gpu/GrLegacyDirectContext.cpp
index 04a40bb..31e2678 100644
--- a/src/gpu/GrLegacyDirectContext.cpp
+++ b/src/gpu/GrLegacyDirectContext.cpp
@@ -228,6 +228,29 @@
 }
 #endif
 
+#ifdef SK_DIRECT3D
+sk_sp<GrContext> GrContext::MakeDirect3D(const GrD3DBackendContext& backendContext) {
+    GrContextOptions defaultOptions;
+    return MakeDirect3D(backendContext, defaultOptions);
+}
+
+sk_sp<GrContext> GrContext::MakeDirect3D(const GrD3DBackendContext& backendContext,
+                                         const GrContextOptions& options) {
+    return nullptr;
+    //sk_sp<GrContext> context(new GrLegacyDirectContext(GrBackendApi::kDirect3D, options));
+
+    //context->fGpu = GrD3DGpu::Make(backendContext, options, context.get());
+    //if (!context->fGpu) {
+    //    return nullptr;
+    //}
+
+    //if (!context->init(context->fGpu->refCaps())) {
+    //    return nullptr;
+    //}
+    //return context;
+}
+#endif
+
 #ifdef SK_DAWN
 sk_sp<GrContext> GrContext::MakeDawn(const wgpu::Device& device) {
     GrContextOptions defaultOptions;