summaryrefslogtreecommitdiffstats
path: root/services/surfaceflinger/EventThread.h
diff options
context:
space:
mode:
authorRuchi Kandoi <kandoiruchi@google.com>2014-04-02 12:50:06 -0700
committerRuchi Kandoi <kandoiruchi@google.com>2014-04-04 20:22:31 +0000
commitd469a1c3285b974cf2637517cc25727da8f82668 (patch)
tree5480df5943f7242e7c37fb3a4e8c46a83ad3a983 /services/surfaceflinger/EventThread.h
parent9ae71b00601a346e91d9264fda2e00b1e4284dbb (diff)
downloadframeworks_native-d469a1c3285b974cf2637517cc25727da8f82668.zip
frameworks_native-d469a1c3285b974cf2637517cc25727da8f82668.tar.gz
frameworks_native-d469a1c3285b974cf2637517cc25727da8f82668.tar.bz2
SurfaceFlinger: send VSYNC power hints to IPowerManager
VSYNC power hints are now sent via binder to IPowerManager. SurfaceFlinger no longer loads a second copy of the PowerHAL. VSYNC power hints are sent in batches and not on per frame basis. Change-Id: Icc2eee5df56135bd24dc244a84e7c12dd5511fec
Diffstat (limited to 'services/surfaceflinger/EventThread.h')
-rw-r--r--services/surfaceflinger/EventThread.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/services/surfaceflinger/EventThread.h b/services/surfaceflinger/EventThread.h
index f6ab4a7..d1c4fcd 100644
--- a/services/surfaceflinger/EventThread.h
+++ b/services/surfaceflinger/EventThread.h
@@ -97,6 +97,7 @@ public:
DisplayEventReceiver::Event* event);
void dump(String8& result) const;
+ void sendVsyncHintOff();
private:
virtual bool threadLoop();
@@ -107,6 +108,7 @@ private:
void removeDisplayEventConnection(const wp<Connection>& connection);
void enableVSyncLocked();
void disableVSyncLocked();
+ void sendVsyncHintOnLocked();
// constants
sp<VSyncSource> mVSyncSource;
@@ -124,6 +126,9 @@ private:
// for debugging
bool mDebugVsyncEnabled;
+
+ bool mVsyncHintSent;
+ timer_t mTimerId;
};
// ---------------------------------------------------------------------------