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

Commit a0ce699e authored by Midas Chien's avatar Midas Chien Committed by android-build-merger
Browse files

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

am: 0d097fa7

Change-Id: I16866b6eb69fab3fbd935f1099dc4719717fd1b7
parents ba225e3f 0d097fa7
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");