Loading services/surfaceflinger/Scheduler/Scheduler.cpp +6 −4 Original line number Diff line number Diff line Loading @@ -39,7 +39,7 @@ std::atomic<int64_t> Scheduler::sNextId = 0; Scheduler::~Scheduler() = default; sp<Scheduler::ConnectionHandle> Scheduler::createConnection( const char* connectionName, DispSync* dispSync, int64_t phaseOffsetNs, const std::string& connectionName, DispSync* dispSync, int64_t phaseOffsetNs, impl::EventThread::ResyncWithRateLimitCallback resyncCallback, impl::EventThread::InterceptVSyncsCallback interceptCallback) { const int64_t id = sNextId++; Loading @@ -56,13 +56,15 @@ sp<Scheduler::ConnectionHandle> Scheduler::createConnection( } std::unique_ptr<EventThread> Scheduler::makeEventThread( const char* connectionName, DispSync* dispSync, int64_t phaseOffsetNs, const std::string& connectionName, DispSync* dispSync, int64_t phaseOffsetNs, impl::EventThread::ResyncWithRateLimitCallback resyncCallback, impl::EventThread::InterceptVSyncsCallback interceptCallback) { const std::string sourceName = connectionName + "Source"; std::unique_ptr<VSyncSource> eventThreadSource = std::make_unique<DispSyncSource>(dispSync, phaseOffsetNs, true, connectionName); std::make_unique<DispSyncSource>(dispSync, phaseOffsetNs, true, sourceName.c_str()); const std::string threadName = connectionName + "Thread"; return std::make_unique<impl::EventThread>(std::move(eventThreadSource), resyncCallback, interceptCallback, connectionName); interceptCallback, threadName.c_str()); } sp<IDisplayEventConnection> Scheduler::createDisplayEventConnection( Loading services/surfaceflinger/Scheduler/Scheduler.h +2 −2 Original line number Diff line number Diff line Loading @@ -56,7 +56,7 @@ public: /** Creates an EventThread connection. */ sp<ConnectionHandle> createConnection( const char* connectionName, DispSync* dispSync, int64_t phaseOffsetNs, const std::string& connectionName, DispSync* dispSync, int64_t phaseOffsetNs, impl::EventThread::ResyncWithRateLimitCallback resyncCallback, impl::EventThread::InterceptVSyncsCallback interceptCallback); sp<IDisplayEventConnection> createDisplayEventConnection(const sp<ConnectionHandle>& handle); Loading @@ -79,7 +79,7 @@ public: protected: virtual std::unique_ptr<EventThread> makeEventThread( const char* connectionName, DispSync* dispSync, int64_t phaseOffsetNs, const std::string& connectionName, DispSync* dispSync, int64_t phaseOffsetNs, impl::EventThread::ResyncWithRateLimitCallback resyncCallback, impl::EventThread::InterceptVSyncsCallback interceptCallback); Loading services/surfaceflinger/tests/unittests/SchedulerTest.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -40,7 +40,7 @@ protected: : mEventThread(std::move(eventThread)) {} std::unique_ptr<EventThread> makeEventThread( const char* /* connectionName */, DispSync* /* dispSync */, const std::string& /* connectionName */, DispSync* /* dispSync */, nsecs_t /* phaseOffsetNs */, impl::EventThread::ResyncWithRateLimitCallback /* resyncCallback */, impl::EventThread::InterceptVSyncsCallback /* interceptCallback */) override { Loading Loading
services/surfaceflinger/Scheduler/Scheduler.cpp +6 −4 Original line number Diff line number Diff line Loading @@ -39,7 +39,7 @@ std::atomic<int64_t> Scheduler::sNextId = 0; Scheduler::~Scheduler() = default; sp<Scheduler::ConnectionHandle> Scheduler::createConnection( const char* connectionName, DispSync* dispSync, int64_t phaseOffsetNs, const std::string& connectionName, DispSync* dispSync, int64_t phaseOffsetNs, impl::EventThread::ResyncWithRateLimitCallback resyncCallback, impl::EventThread::InterceptVSyncsCallback interceptCallback) { const int64_t id = sNextId++; Loading @@ -56,13 +56,15 @@ sp<Scheduler::ConnectionHandle> Scheduler::createConnection( } std::unique_ptr<EventThread> Scheduler::makeEventThread( const char* connectionName, DispSync* dispSync, int64_t phaseOffsetNs, const std::string& connectionName, DispSync* dispSync, int64_t phaseOffsetNs, impl::EventThread::ResyncWithRateLimitCallback resyncCallback, impl::EventThread::InterceptVSyncsCallback interceptCallback) { const std::string sourceName = connectionName + "Source"; std::unique_ptr<VSyncSource> eventThreadSource = std::make_unique<DispSyncSource>(dispSync, phaseOffsetNs, true, connectionName); std::make_unique<DispSyncSource>(dispSync, phaseOffsetNs, true, sourceName.c_str()); const std::string threadName = connectionName + "Thread"; return std::make_unique<impl::EventThread>(std::move(eventThreadSource), resyncCallback, interceptCallback, connectionName); interceptCallback, threadName.c_str()); } sp<IDisplayEventConnection> Scheduler::createDisplayEventConnection( Loading
services/surfaceflinger/Scheduler/Scheduler.h +2 −2 Original line number Diff line number Diff line Loading @@ -56,7 +56,7 @@ public: /** Creates an EventThread connection. */ sp<ConnectionHandle> createConnection( const char* connectionName, DispSync* dispSync, int64_t phaseOffsetNs, const std::string& connectionName, DispSync* dispSync, int64_t phaseOffsetNs, impl::EventThread::ResyncWithRateLimitCallback resyncCallback, impl::EventThread::InterceptVSyncsCallback interceptCallback); sp<IDisplayEventConnection> createDisplayEventConnection(const sp<ConnectionHandle>& handle); Loading @@ -79,7 +79,7 @@ public: protected: virtual std::unique_ptr<EventThread> makeEventThread( const char* connectionName, DispSync* dispSync, int64_t phaseOffsetNs, const std::string& connectionName, DispSync* dispSync, int64_t phaseOffsetNs, impl::EventThread::ResyncWithRateLimitCallback resyncCallback, impl::EventThread::InterceptVSyncsCallback interceptCallback); Loading
services/surfaceflinger/tests/unittests/SchedulerTest.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -40,7 +40,7 @@ protected: : mEventThread(std::move(eventThread)) {} std::unique_ptr<EventThread> makeEventThread( const char* /* connectionName */, DispSync* /* dispSync */, const std::string& /* connectionName */, DispSync* /* dispSync */, nsecs_t /* phaseOffsetNs */, impl::EventThread::ResyncWithRateLimitCallback /* resyncCallback */, impl::EventThread::InterceptVSyncsCallback /* interceptCallback */) override { Loading