Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions build-skia.py
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,7 @@ def colored_print(message, color):

"win": """
skia_use_dawn = true
# Keep Direct3D enabled; the m149 build patch handles the Release-only issue.
skia_use_direct3d = true
is_trivial_abi = false
""",
Expand Down
36 changes: 36 additions & 0 deletions patches/fix_m149_d3d_backend_surface.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
diff --git a/src/gpu/ganesh/d3d/GrD3DBackendSurface.cpp b/src/gpu/ganesh/d3d/GrD3DBackendSurface.cpp
index 8d20c4fbda..e4d94b0c76 100644
--- a/src/gpu/ganesh/d3d/GrD3DBackendSurface.cpp
+++ b/src/gpu/ganesh/d3d/GrD3DBackendSurface.cpp
@@ -39,7 +39,6 @@ private:

GrColorFormatDesc desc() const override { return GrDxgiFormatDesc(fFormat); }

-#if defined(GPU_TEST_UTILS)
bool equal(const GrBackendFormatData* that) const override {
SkASSERT(!that || that->type() == GrBackendApi::kDirect3D);
if (auto otherD3D = static_cast<const GrD3DBackendFormatData*>(that)) {
@@ -47,7 +46,6 @@ private:
}
return false;
}
-#endif

std::string toString() const override {
#if defined(SK_DEBUG) || defined(GPU_TEST_UTILS)
@@ -114,6 +112,7 @@ private:

bool isProtected() const override { return false; }

+#if defined(GPU_TEST_UTILS)
bool equal(const GrBackendTextureData* that) const override {
SkASSERT(!that || that->type() == GrBackendApi::kDirect3D);
#if defined(GPU_TEST_UTILS)
@@ -123,6 +122,7 @@ private:
#endif
return false;
}
+#endif

bool isSameTexture(const GrBackendTextureData* that) const override {
SkASSERT(!that || that->type() == GrBackendApi::kDirect3D);