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

Commit a266c380 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Return NO_ERROR for setFrameRate"

parents 2a4434af 8ac14eb6
Loading
Loading
Loading
Loading
+7 −6
Original line number Diff line number Diff line
@@ -2627,12 +2627,13 @@ void Surface::ProducerListenerProxy::onBuffersDiscarded(const std::vector<int32_
    mSurfaceListener->onBuffersDiscarded(discardedBufs);
}

status_t Surface::setFrameRate(float /*frameRate*/, int8_t /*compatibility*/,
[[deprecated]] status_t Surface::setFrameRate(float /*frameRate*/, int8_t /*compatibility*/,
                                              int8_t /*changeFrameRateStrategy*/) {
    ATRACE_CALL();
    ALOGV("Surface::setFrameRate");
    // ISurfaceComposer no longer supports setFrameRate
    return BAD_VALUE;
    ALOGI("Surface::setFrameRate is deprecated, setFrameRate hint is dropped as destination is not "
          "SurfaceFlinger");
    // ISurfaceComposer no longer supports setFrameRate, we will return NO_ERROR when the api is
    // called to avoid apps crashing, as BAD_VALUE can generate fatal exception in apps.
    return NO_ERROR;
}

status_t Surface::setFrameTimelineInfo(const FrameTimelineInfo& /*frameTimelineInfo*/) {