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

Commit 0d097fa7 authored by Midas Chien's avatar Midas Chien Committed by Android (Google) Code Review
Browse files

Merge "Surfacefinger: Set HWC Callback to SCHED_FIFO" into qt-r1-dev

parents aacc75c2 ae211b44
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -24,6 +24,7 @@

#include <composer-command-buffer/2.2/ComposerCommandBuffer.h>
#include <gui/BufferQueue.h>
#include <hidl/HidlTransportSupport.h>
#include <hidl/HidlTransportUtils.h>

namespace android {
@@ -229,6 +230,7 @@ std::string Composer::dumpDebugInfo()

void Composer::registerCallback(const sp<IComposerCallback>& callback)
{
    android::hardware::setMinSchedulerPolicy(callback, SCHED_FIFO, 2);
    auto ret = mClient->registerCallback(callback);
    if (!ret.isOk()) {
        ALOGE("failed to register IComposerCallback");