summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Android Build Coastguard Worker <android-build-coastguard-worker@google.com> 2025-04-15 12:02:44 -0700
committer Android Build Coastguard Worker <android-build-coastguard-worker@google.com> 2025-04-15 12:02:44 -0700
commit0a282280f40a3e7f16edce592e7889d4874dd3b0 (patch)
tree6d361b8a9302556aec6fef67a69c2ff125651ebf
parent7f83865f6fa01d85f491484242b904ddd354ca1b (diff)
parentff3011b427f6d1b8939f1e0e383b15208410d384 (diff)
Merge cherrypicks of ['googleplex-android-review.googlesource.com/31016471'] into 25Q2-release.
Change-Id: If33fe753ea6825244bd1fe3b2c3d8acb436bdf41
-rw-r--r--services/surfaceflinger/FrontEnd/RequestedLayerState.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/services/surfaceflinger/FrontEnd/RequestedLayerState.cpp b/services/surfaceflinger/FrontEnd/RequestedLayerState.cpp
index 621fd6c00e..a469fc52fa 100644
--- a/services/surfaceflinger/FrontEnd/RequestedLayerState.cpp
+++ b/services/surfaceflinger/FrontEnd/RequestedLayerState.cpp
@@ -594,6 +594,15 @@ bool RequestedLayerState::fillsColor() const {
color.b >= 0.0_hf;
}
+bool RequestedLayerState::hasBufferOrSidebandStream() const {
+ return ((sidebandStream != nullptr) || (externalTexture != nullptr));
+}
+
+bool RequestedLayerState::fillsColor() const {
+ return !hasBufferOrSidebandStream() && color.r >= 0.0_hf && color.g >= 0.0_hf &&
+ color.b >= 0.0_hf;
+}
+
bool RequestedLayerState::hasBlur() const {
return backgroundBlurRadius > 0 || blurRegions.size() > 0;
}