Loading include/private/performance_hint_private.h +4 −2 Original line number Diff line number Diff line Loading @@ -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 /** Loading @@ -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 Loading Loading @@ -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. Loading libs/binder/Android.bp +8 −0 Original line number Diff line number Diff line Loading @@ -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 { Loading libs/gui/BLASTBufferQueue.cpp +2 −2 Original line number Diff line number Diff line Loading @@ -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()) { Loading libs/gui/Choreographer.cpp +3 −2 Original line number Diff line number Diff line Loading @@ -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); Loading libs/gui/DisplayEventDispatcher.cpp +3 −2 Original line number Diff line number Diff line Loading @@ -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 Loading
include/private/performance_hint_private.h +4 −2 Original line number Diff line number Diff line Loading @@ -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 /** Loading @@ -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 Loading Loading @@ -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. Loading
libs/binder/Android.bp +8 −0 Original line number Diff line number Diff line Loading @@ -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 { Loading
libs/gui/BLASTBufferQueue.cpp +2 −2 Original line number Diff line number Diff line Loading @@ -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()) { Loading
libs/gui/Choreographer.cpp +3 −2 Original line number Diff line number Diff line Loading @@ -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); Loading
libs/gui/DisplayEventDispatcher.cpp +3 −2 Original line number Diff line number Diff line Loading @@ -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