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/BUILD.gn b/BUILD.gn
index ab6e22a..0acc43e 100644
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -597,6 +597,16 @@
}
}
+ if (skia_use_direct3d) {
+ public_defines += [ "SK_DIRECT3D" ]
+ sources += skia_direct3d_sources
+ libs += [
+ "d3d12.lib",
+ "dxgi.lib",
+ "d3dcompiler.lib",
+ ]
+ }
+
cflags_objcc = []
if (skia_use_metal) {
public_defines += [ "SK_METAL" ]
@@ -1372,6 +1382,9 @@
if (skia_use_metal) {
sources += [ "tools/gpu/mtl/MtlTestContext.mm" ]
}
+ if (skia_use_direct3d) {
+ sources += [ "tools/gpu/d3d/D3DTestContext.cpp" ]
+ }
if (skia_use_dawn) {
public_deps += [ "//third_party/dawn:dawn_headers" ]
sources += [ "tools/gpu/dawn/DawnTestContext.cpp" ]