summaryrefslogtreecommitdiffstats
path: root/include/gui/ISurfaceComposer.h
diff options
context:
space:
mode:
authorLajos Molnar <lajos@google.com>2014-09-11 14:58:45 -0700
committerLajos Molnar <lajos@google.com>2014-09-18 17:03:20 -0700
commit67d8bd66aaf04805cb8f2616ba964141b865e3b9 (patch)
treedd9b895d2b143726b92abe10f3634dde28f4e49b /include/gui/ISurfaceComposer.h
parent5bbf73ced30c168176fbcf87b15021ecca2fb90e (diff)
downloadframeworks_native-67d8bd66aaf04805cb8f2616ba964141b865e3b9.zip
frameworks_native-67d8bd66aaf04805cb8f2616ba964141b865e3b9.tar.gz
frameworks_native-67d8bd66aaf04805cb8f2616ba964141b865e3b9.tar.bz2
surfaceflinger: add getDisplayStats() method
This is used by media service to schedule video frames at the proper time, based on precise vsync timings. Bug: 14659809 Change-Id: I1a90603f3dc09dca9aa4f90a3aa845fab56e0a5e
Diffstat (limited to 'include/gui/ISurfaceComposer.h')
-rw-r--r--include/gui/ISurfaceComposer.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/gui/ISurfaceComposer.h b/include/gui/ISurfaceComposer.h
index 742fc83..3ffc67e 100644
--- a/include/gui/ISurfaceComposer.h
+++ b/include/gui/ISurfaceComposer.h
@@ -39,6 +39,7 @@ namespace android {
class ComposerState;
class DisplayState;
class DisplayInfo;
+class DisplayStatInfo;
class IDisplayEventConnection;
class IMemoryHeap;
class Rect;
@@ -122,6 +123,12 @@ public:
virtual status_t getDisplayConfigs(const sp<IBinder>& display,
Vector<DisplayInfo>* configs) = 0;
+ /* returns display statistics for a given display
+ * intended to be used by the media framework to properly schedule
+ * video frames */
+ virtual status_t getDisplayStats(const sp<IBinder>& display,
+ DisplayStatInfo* stats) = 0;
+
/* indicates which of the configurations returned by getDisplayInfo is
* currently active */
virtual int getActiveConfig(const sp<IBinder>& display) = 0;
@@ -177,6 +184,7 @@ public:
CLEAR_ANIMATION_FRAME_STATS,
GET_ANIMATION_FRAME_STATS,
SET_POWER_MODE,
+ GET_DISPLAY_STATS,
};
virtual status_t onTransact(uint32_t code, const Parcel& data,