aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorandroid-autoroll <android-autoroll@skia-corp.google.com.iam.gserviceaccount.com>2020-07-23 01:37:53 +0000
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2020-07-23 01:37:53 +0000
commitc86c667ff32290d3aa7fb21a2a2dd0755b84db50 (patch)
treef9435bcfb1061d8007a803d8a017cacc05a2b152
parente9dc1c7e2d701cfcd20b5bc99079971bcfe5cb77 (diff)
parent66302698226902c6dcaf8cb00d7f0ce72a6d0a5a (diff)
downloadskia-android11-mainline-cellbroadcast-release.tar.gz
Original change: https://googleplex-android-review.googlesource.com/c/platform/external/skia/+/12200927 Change-Id: I736827ac75e80b6d5b638a447805d2e311996f77
-rw-r--r--src/gpu/GrCaps.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gpu/GrCaps.h b/src/gpu/GrCaps.h
index d98890df17..9d7a0c13a3 100644
--- a/src/gpu/GrCaps.h
+++ b/src/gpu/GrCaps.h
@@ -74,9 +74,14 @@ public:
// Should we discard stencil values after a render pass? (Tilers get better performance if we
// always load stencil buffers with a "clear" op, and then discard the content when finished.)
bool discardStencilValuesAfterRenderPass() const {
+#if defined(SK_BUILD_FOR_ANDROID)
+ // b/160958008
+ return false;
+#else
// This method is actually just a duplicate of preferFullscreenClears(), with a descriptive
// name for the sake of readability.
return this->preferFullscreenClears();
+#endif
}
bool preferVRAMUseOverFlushes() const { return fPreferVRAMUseOverFlushes; }