Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 127ec112 authored by Android Build Coastguard Worker's avatar Android Build Coastguard Worker
Browse files

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

Change-Id: Ic1fb23e1f27256cdb3239900db8811f65fe61faa
parents 0a282280 2c903c71
Loading
Loading
Loading
Loading
+0 −9
Original line number Diff line number Diff line
@@ -594,15 +594,6 @@ 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;
}