Format the world (or just HWUI)
Test: No code changes, just ran through clang-format
Change-Id: Id23aa4ec7eebc0446fe3a30260f33e7fd455bb8c
diff --git a/libs/hwui/thread/ThreadBase.h b/libs/hwui/thread/ThreadBase.h
index 402fd1e..b3fec1f 100644
--- a/libs/hwui/thread/ThreadBase.h
+++ b/libs/hwui/thread/ThreadBase.h
@@ -31,10 +31,7 @@
PREVENT_COPY_AND_ASSIGN(ThreadBase);
public:
- ThreadBase()
- : mLooper(new Looper(false))
- , mQueue([this](){ mLooper->wake(); }, mLock)
- {}
+ ThreadBase() : mLooper(new Looper(false)), mQueue([this]() { mLooper->wake(); }, mLock) {}
WorkQueue& queue() { return mQueue; }
@@ -43,13 +40,9 @@
mLooper->wake();
}
- void start(const char* name = "ThreadBase") {
- Thread::run(name);
- }
+ void start(const char* name = "ThreadBase") { Thread::run(name); }
- void join() {
- Thread::join();
- }
+ void join() { Thread::join(); }
protected:
void waitForWork() {
@@ -64,13 +57,10 @@
if (timeout < 0) timeout = 0;
}
int result = mLooper->pollOnce(timeout);
- LOG_ALWAYS_FATAL_IF(result == Looper::POLL_ERROR,
- "RenderThread Looper POLL_ERROR!");
+ LOG_ALWAYS_FATAL_IF(result == Looper::POLL_ERROR, "RenderThread Looper POLL_ERROR!");
}
- void processQueue() {
- mQueue.process();
- }
+ void processQueue() { mQueue.process(); }
virtual bool threadLoop() override {
while (!exitPending()) {
@@ -87,7 +77,6 @@
std::mutex mLock;
};
-} // namespace android::uirenderer
+} // namespace android::uirenderer
-
-#endif //HWUI_THREADBASE_H
+#endif // HWUI_THREADBASE_H