summaryrefslogtreecommitdiffstats
path: root/services
diff options
context:
space:
mode:
authorDan Stoza <stoza@google.com>2015-05-29 13:00:23 -0700
committerDan Stoza <stoza@google.com>2015-05-29 13:00:23 -0700
commit9c64757f6530a0510f15f8bd75b1925a3001f83a (patch)
tree2784e458392fd38f2f6342ebd9ba3d1c90f90b54 /services
parent6e1a2fea67006b58e83ebbcc72f7b12f18c49d15 (diff)
downloadframeworks_native-9c64757f6530a0510f15f8bd75b1925a3001f83a.zip
frameworks_native-9c64757f6530a0510f15f8bd75b1925a3001f83a.tar.gz
frameworks_native-9c64757f6530a0510f15f8bd75b1925a3001f83a.tar.bz2
SF: Reduce resync samples without present
Reduces the number of resync samples that DispSync will attempt to collect without an intervening present from 12 to 4. The former value was causing excessive power draw for some vendors' implementations, and reducing it doesn't seem to harm anything. Bug: 20724456 Change-Id: Ifd6e0490be67756ed001d509a38e8a36953b4618
Diffstat (limited to 'services')
-rw-r--r--services/surfaceflinger/DispSync.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/services/surfaceflinger/DispSync.h b/services/surfaceflinger/DispSync.h
index 96efc34..67142b6 100644
--- a/services/surfaceflinger/DispSync.h
+++ b/services/surfaceflinger/DispSync.h
@@ -139,7 +139,7 @@ private:
enum { MAX_RESYNC_SAMPLES = 32 };
enum { MIN_RESYNC_SAMPLES_FOR_UPDATE = 3 };
enum { NUM_PRESENT_SAMPLES = 8 };
- enum { MAX_RESYNC_SAMPLES_WITHOUT_PRESENT = 12 };
+ enum { MAX_RESYNC_SAMPLES_WITHOUT_PRESENT = 4 };
// mPeriod is the computed period of the modeled vsync events in
// nanoseconds.