summaryrefslogtreecommitdiff
path: root/services/surfaceflinger/EventControlThread.cpp
diff options
context:
space:
mode:
author Lloyd Pique <lpique@google.com> 2018-01-22 17:31:47 -0800
committer Lloyd Pique <lpique@google.com> 2018-03-19 17:53:23 -0700
commit379adc10ebe94eec8c7754d262c6184fbfb3f0a3 (patch)
tree24a8da589efef8e04fe814fa30180b80bf3f51b1 /services/surfaceflinger/EventControlThread.cpp
parente98c417072ee0f18d3ff5ca24d4205788a55c87b (diff)
SF: Separate EventControlThread into interface and impl
Test: Builds Bug: 74827900 Change-Id: Ib79503860bf9409cc71d98e2e845ffaff114fbb1
Diffstat (limited to 'services/surfaceflinger/EventControlThread.cpp')
-rw-r--r--services/surfaceflinger/EventControlThread.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/services/surfaceflinger/EventControlThread.cpp b/services/surfaceflinger/EventControlThread.cpp
index ac54059360..fb6cff5705 100644
--- a/services/surfaceflinger/EventControlThread.cpp
+++ b/services/surfaceflinger/EventControlThread.cpp
@@ -26,6 +26,10 @@
namespace android {
+EventControlThread::~EventControlThread() = default;
+
+namespace impl {
+
EventControlThread::EventControlThread(EventControlThread::SetVSyncEnabledFunction function)
: mSetVSyncEnabled(function) {
pthread_setname_np(mThread.native_handle(), "EventControlThread");
@@ -67,4 +71,5 @@ void EventControlThread::threadMain() NO_THREAD_SAFETY_ANALYSIS {
}
}
+} // namespace impl
} // namespace android