summaryrefslogtreecommitdiffstats
path: root/services/surfaceflinger/Layer.h
diff options
context:
space:
mode:
authorJamie Gennis <jgennis@google.com>2012-01-15 18:54:57 -0800
committerMathias Agopian <mathias@google.com>2012-01-24 15:41:50 -0800
commite8696a40e09b24b634214684d18526187b316a2f (patch)
tree3b6e438f63e0a7d9e6e1263ac7a5400a81846274 /services/surfaceflinger/Layer.h
parenteeae1de29e241e38f86c1bc2035facd291b1f910 (diff)
downloadframeworks_native-e8696a40e09b24b634214684d18526187b316a2f.zip
frameworks_native-e8696a40e09b24b634214684d18526187b316a2f.tar.gz
frameworks_native-e8696a40e09b24b634214684d18526187b316a2f.tar.bz2
hack up frame latency measurement
Change-Id: I6d9a466a23285304f0e229a5649815636ab5d6af
Diffstat (limited to 'services/surfaceflinger/Layer.h')
-rw-r--r--services/surfaceflinger/Layer.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/services/surfaceflinger/Layer.h b/services/surfaceflinger/Layer.h
index 2b9471b..9686259 100644
--- a/services/surfaceflinger/Layer.h
+++ b/services/surfaceflinger/Layer.h
@@ -78,6 +78,8 @@ public:
// LayerBaseClient interface
virtual wp<IBinder> getSurfaceTextureBinder() const;
+ virtual void onLayerDisplayed();
+
// only for debugging
inline const sp<GraphicBuffer>& getActiveBuffer() const { return mActiveBuffer; }
@@ -110,6 +112,9 @@ private:
uint32_t mCurrentTransform;
uint32_t mCurrentScalingMode;
bool mCurrentOpacity;
+ bool mFrameLatencyNeeded;
+ int mFrameLatencyOffset;
+ int64_t mFrameLatencies[128];
// constants
PixelFormat mFormat;