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

Commit 8fa2a2c5 authored by Android Build Coastguard Worker's avatar Android Build Coastguard Worker
Browse files

Snap for 9556278 from 8a132e43 to udc-release

Change-Id: Ied709dbca8eeda0682ae7b2ba1699834ef87e622
parents 9bf3aa69 8a132e43
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -17,6 +17,8 @@
#ifndef ANDROID_PRIVATE_NATIVE_PERFORMANCE_HINT_PRIVATE_H
#define ANDROID_PRIVATE_NATIVE_PERFORMANCE_HINT_PRIVATE_H

#include <stdint.h>

__BEGIN_DECLS

/**
@@ -27,7 +29,7 @@ void APerformanceHint_setIHintManagerForTesting(void* iManager);
/**
 * Hints for the session used to signal upcoming changes in the mode or workload.
 */
enum SessionHint {
enum SessionHint: int32_t {
    /**
     * This hint indicates a sudden increase in CPU workload intensity. It means
     * that this hint session needs extra CPU resources immediately to meet the
@@ -61,7 +63,7 @@ enum SessionHint {
 * @return 0 on success
 *         EPIPE if communication with the system service has failed.
 */
int APerformanceHint_sendHint(void* session, int hint);
int APerformanceHint_sendHint(void* session, SessionHint hint);

/**
 * Return the list of thread ids, this API should only be used for testing only.
+8 −0
Original line number Diff line number Diff line
@@ -287,6 +287,14 @@ cc_defaults {
    cflags: [
        "-DBINDER_WITH_KERNEL_IPC",
    ],
    arch: {
        // TODO(b/254713216): undefined symbol in BufferedTextOutput::getBuffer
        riscv64: {
            lto: {
                thin: false,
            },
        },
    },
}

cc_library {
+2 −2
Original line number Diff line number Diff line
@@ -432,8 +432,8 @@ void BLASTBufferQueue::releaseBufferCallbackLocked(
        mCurrentMaxAcquiredBufferCount = *currentMaxAcquiredBufferCount;
    }

    const auto numPendingBuffersToHold =
            isEGL ? std::max(0u, mMaxAcquiredBuffers - mCurrentMaxAcquiredBufferCount) : 0;
    const uint32_t numPendingBuffersToHold =
            isEGL ? std::max(0, mMaxAcquiredBuffers - (int32_t)mCurrentMaxAcquiredBufferCount) : 0;

    auto rb = ReleasedBuffer{id, releaseFence};
    if (std::find(mPendingRelease.begin(), mPendingRelease.end(), rb) == mPendingRelease.end()) {
+3 −2
Original line number Diff line number Diff line
@@ -101,8 +101,9 @@ Choreographer* Choreographer::getForThread() {
    return gChoreographer;
}

Choreographer::Choreographer(const sp<Looper>& looper)
      : DisplayEventDispatcher(looper, gui::ISurfaceComposer::VsyncSource::eVsyncSourceApp),
Choreographer::Choreographer(const sp<Looper>& looper, const sp<IBinder>& layerHandle)
      : DisplayEventDispatcher(looper, gui::ISurfaceComposer::VsyncSource::eVsyncSourceApp, {},
                               layerHandle),
        mLooper(looper),
        mThreadId(std::this_thread::get_id()) {
    std::lock_guard<std::mutex> _l(gChoreographers.lock);
+3 −2
Original line number Diff line number Diff line
@@ -37,9 +37,10 @@ static constexpr nsecs_t WAITING_FOR_VSYNC_TIMEOUT = ms2ns(300);

DisplayEventDispatcher::DisplayEventDispatcher(const sp<Looper>& looper,
                                               gui::ISurfaceComposer::VsyncSource vsyncSource,
                                               EventRegistrationFlags eventRegistration)
                                               EventRegistrationFlags eventRegistration,
                                               const sp<IBinder>& layerHandle)
      : mLooper(looper),
        mReceiver(vsyncSource, eventRegistration),
        mReceiver(vsyncSource, eventRegistration, layerHandle),
        mWaitingForVsync(false),
        mLastVsyncCount(0),
        mLastScheduleVsyncTime(0) {
Loading