summaryrefslogtreecommitdiff
path: root/services/surfaceflinger/EventThread.h
diff options
context:
space:
mode:
author Ruchi Kandoi <kandoiruchi@google.com> 2014-06-20 17:07:04 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2014-06-20 02:15:46 +0000
commitcd13f9da9920b42843071b4ea2d01af55b590e35 (patch)
tree54926e121fd58fb40b8eb20f94e998a7da53babf /services/surfaceflinger/EventThread.h
parenteac96b9bfd476e1c7866e5ae685e941be97513dd (diff)
parentef472ec40a0fbb0ef96b79bef846f20b73da4971 (diff)
Merge "SurfaceFlinger: send VSYNC power hints to IPowerManager"
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 f6ab4a7872..d1c4fcd987 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;
};
// ---------------------------------------------------------------------------