Merge cherrypicks of [12222001, 12222002, 12222003, 12221903, 12221710, 12221711, 12221712, 12221713, 12221714, 12221715, 12221922] into rvc-release
Change-Id: Ib15f5ad051662581ac49d8d38fe4cffa68c5d6f0
diff --git a/src/gpu/GrCaps.h b/src/gpu/GrCaps.h
index d98890d..9d7a0c1 100644
--- a/src/gpu/GrCaps.h
+++ b/src/gpu/GrCaps.h
@@ -74,9 +74,14 @@
// 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; }