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

Commit aefe9fa2 authored by android-build-team Robot's avatar android-build-team Robot
Browse files

Snap for 6900534 from 162f643d to rvc-qpr2-release

Change-Id: I89760e00b986e0fe4814cac9759e0c77223c05a1
parents ee4585ca 162f643d
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -6227,6 +6227,11 @@ status_t SurfaceFlinger::setFrameRate(const sp<IGraphicBufferProducer>& surface,
        Mutex::Autolock lock(mStateLock);
        if (authenticateSurfaceTextureLocked(surface)) {
            sp<Layer> layer = (static_cast<MonitoredProducer*>(surface.get()))->getLayer();
            if (layer == nullptr) {
                ALOGE("Attempt to set frame rate on a layer that no longer exists");
                return BAD_VALUE;
            }

            if (layer->setFrameRate(
                        Layer::FrameRate(frameRate,
                                         Layer::FrameRate::convertCompatibility(compatibility)))) {