-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add path that disables AtlasPathRenderer on D3D
- Loading branch information
1 parent
557ef0b
commit c5ee857
Showing
1 changed file
with
18 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
diff --git a/src/gpu/ganesh/ops/AtlasPathRenderer.cpp b/src/gpu/ganesh/ops/AtlasPathRenderer.cpp | ||
index 2a31b5a0d8..943bd29ece 100644 | ||
--- a/src/gpu/ganesh/ops/AtlasPathRenderer.cpp | ||
+++ b/src/gpu/ganesh/ops/AtlasPathRenderer.cpp | ||
@@ -106,6 +106,13 @@ bool AtlasPathRenderer::IsSupported(GrRecordingContext* rContext) { | ||
if (rContext->backend() == GrBackendApi::kOpenGL) { | ||
return false; | ||
} | ||
+#endif | ||
+#ifdef SK_BUILD_FOR_WIN | ||
+ // http://skbug.com/13519 There is a bug with the atlas path renderer on Direct3D, running on | ||
+ // Radeon hardware and possibly others. Disable until we can investigate. | ||
+ if (rContext->backend() == GrBackendApi::kDirect3D) { | ||
+ return false; | ||
+ } | ||
#endif | ||
const GrCaps& caps = *rContext->priv().caps(); | ||
auto atlasFormat = caps.getDefaultBackendFormat(kAtlasAlpha8Type, GrRenderable::kYes); |