Merge cherrypicks of ['googleplex-android-review.googlesource.com/33079888'] into 25Q2-release.

Change-Id: Ic1fb23e1f27256cdb3239900db8811f65fe61faa
diff --git a/services/surfaceflinger/FrontEnd/RequestedLayerState.cpp b/services/surfaceflinger/FrontEnd/RequestedLayerState.cpp
index a469fc5..621fd6c 100644
--- a/services/surfaceflinger/FrontEnd/RequestedLayerState.cpp
+++ b/services/surfaceflinger/FrontEnd/RequestedLayerState.cpp
@@ -594,15 +594,6 @@
             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;
 }