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

Commit 0a282280 authored by Android Build Coastguard Worker's avatar Android Build Coastguard Worker
Browse files

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

Change-Id: If33fe753ea6825244bd1fe3b2c3d8acb436bdf41
parents 7f83865f ff3011b4
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -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;
}