Loading services/surfaceflinger/SurfaceTracing.cpp +2 −0 Original line number Diff line number Diff line Loading @@ -71,12 +71,14 @@ status_t SurfaceTracing::writeToFile() { } void SurfaceTracing::notify(const char* where) { std::scoped_lock lock(mTraceLock); if (mEnabled) { runner->notify(where); } } void SurfaceTracing::notifyLocked(const char* where) { std::scoped_lock lock(mTraceLock); if (mEnabled) { runner->notifyLocked(where); } Loading services/surfaceflinger/SurfaceTracing.h +2 −2 Original line number Diff line number Diff line Loading @@ -81,8 +81,8 @@ private: SurfaceFlinger& mFlinger; mutable std::mutex mTraceLock; bool mEnabled = false; std::unique_ptr<Runner> runner; bool mEnabled GUARDED_BY(mTraceLock) = false; std::unique_ptr<Runner> runner GUARDED_BY(mTraceLock); struct Config { uint32_t flags = TRACE_CRITICAL | TRACE_INPUT | TRACE_SYNC; Loading Loading
services/surfaceflinger/SurfaceTracing.cpp +2 −0 Original line number Diff line number Diff line Loading @@ -71,12 +71,14 @@ status_t SurfaceTracing::writeToFile() { } void SurfaceTracing::notify(const char* where) { std::scoped_lock lock(mTraceLock); if (mEnabled) { runner->notify(where); } } void SurfaceTracing::notifyLocked(const char* where) { std::scoped_lock lock(mTraceLock); if (mEnabled) { runner->notifyLocked(where); } Loading
services/surfaceflinger/SurfaceTracing.h +2 −2 Original line number Diff line number Diff line Loading @@ -81,8 +81,8 @@ private: SurfaceFlinger& mFlinger; mutable std::mutex mTraceLock; bool mEnabled = false; std::unique_ptr<Runner> runner; bool mEnabled GUARDED_BY(mTraceLock) = false; std::unique_ptr<Runner> runner GUARDED_BY(mTraceLock); struct Config { uint32_t flags = TRACE_CRITICAL | TRACE_INPUT | TRACE_SYNC; Loading