summaryrefslogtreecommitdiffstats
path: root/services/surfaceflinger/EventThread.h
diff options
context:
space:
mode:
authorDan Stoza <stoza@google.com>2015-04-14 11:34:01 -0700
committerDan Stoza <stoza@google.com>2015-04-15 13:56:28 -0700
commitdb4ac3ce63074f5602b46074ffeabfea4a14d032 (patch)
treeba55bd86e10b857a6d63c76a8fd669c53c584410 /services/surfaceflinger/EventThread.h
parente7d20eb000c1d342c8f5f58011023c0eb7cea6d5 (diff)
downloadframeworks_native-db4ac3ce63074f5602b46074ffeabfea4a14d032.zip
frameworks_native-db4ac3ce63074f5602b46074ffeabfea4a14d032.tar.gz
frameworks_native-db4ac3ce63074f5602b46074ffeabfea4a14d032.tar.bz2
SF: Permit changing DispSync offsets at runtime
This modifies EventThread such that its phase offsets for both Choreographer and SurfaceFlinger may be modified at runtime. It also plumbs this functionality up to the SurfaceFlinger debug interface so that it is possible to rapidly test different offsets without restarting the framework. Change-Id: I426873f8553f931250dfebc9a8a4a78e9f1f4309
Diffstat (limited to 'services/surfaceflinger/EventThread.h')
-rw-r--r--services/surfaceflinger/EventThread.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/services/surfaceflinger/EventThread.h b/services/surfaceflinger/EventThread.h
index d1c4fcd..9ba179a 100644
--- a/services/surfaceflinger/EventThread.h
+++ b/services/surfaceflinger/EventThread.h
@@ -51,6 +51,7 @@ public:
virtual ~VSyncSource() {}
virtual void setVSyncEnabled(bool enable) = 0;
virtual void setCallback(const sp<Callback>& callback) = 0;
+ virtual void setPhaseOffset(nsecs_t phaseOffset) = 0;
};
class EventThread : public Thread, private VSyncSource::Callback {
@@ -99,6 +100,8 @@ public:
void dump(String8& result) const;
void sendVsyncHintOff();
+ void setPhaseOffset(nsecs_t phaseOffset);
+
private:
virtual bool threadLoop();
virtual void onFirstRef();