aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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; }