SF: Clang format selected sources
Bug: None
Test: None
Change-Id: Icef36ab31252e0e785d1088cbde2aaa0cf356fdf
diff --git a/services/surfaceflinger/DispSync.h b/services/surfaceflinger/DispSync.h
index 880a24d..d066d55 100644
--- a/services/surfaceflinger/DispSync.h
+++ b/services/surfaceflinger/DispSync.h
@@ -20,8 +20,8 @@
#include <stddef.h>
#include <utils/Mutex.h>
-#include <utils/Timers.h>
#include <utils/RefBase.h>
+#include <utils/Timers.h>
#include <ui/FenceTime.h>
@@ -47,12 +47,10 @@
// false to indicate that a resynchronization (via addResyncSample) is not
// needed.
class DispSync {
-
public:
-
- class Callback: public virtual RefBase {
+ class Callback : public virtual RefBase {
public:
- virtual ~Callback() {};
+ virtual ~Callback(){};
virtual void onDispSyncEvent(nsecs_t when) = 0;
};
@@ -108,8 +106,7 @@
// given phase offset from the hardware vsync events. The callback is
// called from a separate thread and it should return reasonably quickly
// (i.e. within a few hundred microseconds).
- status_t addEventListener(const char* name, nsecs_t phase,
- const sp<Callback>& callback);
+ status_t addEventListener(const char* name, nsecs_t phase, const sp<Callback>& callback);
// removeEventListener removes an already-registered event callback. Once
// this method returns that callback will no longer be called by the
@@ -126,7 +123,6 @@
void dump(String8& result) const;
private:
-
void updateModelLocked();
void updateErrorLocked();
void resetErrorLocked();
@@ -174,8 +170,7 @@
// These member variables store information about the present fences used
// to validate the currently computed model.
- std::shared_ptr<FenceTime>
- mPresentFences[NUM_PRESENT_SAMPLES] {FenceTime::NO_FENCE};
+ std::shared_ptr<FenceTime> mPresentFences[NUM_PRESENT_SAMPLES]{FenceTime::NO_FENCE};
size_t mPresentSampleOffset;
int mRefreshSkipCount;
@@ -195,6 +190,6 @@
bool mIgnorePresentFences;
};
-}
+} // namespace android
#endif // ANDROID_DISPSYNC_H