diff options
Diffstat (limited to 'include/input/Input.h')
| -rw-r--r-- | include/input/Input.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/include/input/Input.h b/include/input/Input.h index f9fe6b9597..bb5ca0ef04 100644 --- a/include/input/Input.h +++ b/include/input/Input.h @@ -266,6 +266,20 @@ enum class MotionClassification : uint8_t { const char* motionClassificationToString(MotionClassification classification); /** + * Portion of FrameMetrics timeline of interest to input code. + */ +enum GraphicsTimeline : size_t { + /** Time when the app sent the buffer to SurfaceFlinger. */ + GPU_COMPLETED_TIME = 0, + + /** Time when the frame was presented on the display */ + PRESENT_TIME = 1, + + /** Total size of the 'GraphicsTimeline' array. Must always be last. */ + SIZE = 2 +}; + +/** * Generator of unique numbers used to identify input events. * * Layout of ID: |