summaryrefslogtreecommitdiffstats
path: root/services/surfaceflinger/SurfaceFlinger.h
diff options
context:
space:
mode:
authorJesse Hall <jessehall@google.com>2013-10-14 12:56:09 -0700
committerJesse Hall <jessehall@google.com>2013-10-14 16:25:01 -0700
commit948fe0ce74c13e1bbff233883c158519fa8fb293 (patch)
tree3e4b8fbb223a63b22eb4c361c4b9f5548c4473d8 /services/surfaceflinger/SurfaceFlinger.h
parent8e26b28be62e7c0e093900540db5e5cdcf52a0ff (diff)
downloadframeworks_native-948fe0ce74c13e1bbff233883c158519fa8fb293.zip
frameworks_native-948fe0ce74c13e1bbff233883c158519fa8fb293.tar.gz
frameworks_native-948fe0ce74c13e1bbff233883c158519fa8fb293.tar.bz2
Disable hardware vsync when blanking the screen
Bug: 11220224 Change-Id: I99d0a42e1a6bb0aaf89706f6d100e9ef2a5deaa4
Diffstat (limited to 'services/surfaceflinger/SurfaceFlinger.h')
-rw-r--r--services/surfaceflinger/SurfaceFlinger.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/services/surfaceflinger/SurfaceFlinger.h b/services/surfaceflinger/SurfaceFlinger.h
index f1c19c2..353e7ba 100644
--- a/services/surfaceflinger/SurfaceFlinger.h
+++ b/services/surfaceflinger/SurfaceFlinger.h
@@ -383,8 +383,8 @@ private:
* VSync
*/
void enableHardwareVsync();
- void disableHardwareVsync();
- void resyncToHardwareVsync();
+ void disableHardwareVsync(bool makeUnavailable);
+ void resyncToHardwareVsync(bool makeAvailable);
/* ------------------------------------------------------------------------
* Debugging & dumpsys
@@ -467,6 +467,7 @@ private:
// protected by mHWVsyncLock
Mutex mHWVsyncLock;
bool mPrimaryHWVsyncEnabled;
+ bool mHWVsyncAvailable;
/* ------------------------------------------------------------------------
* Feature prototyping