CompositionStats struct is a copy of HwcDisplay::Stats and is extracted from HwcDisplay as a prestep for supporting stats reporting beyond dumpsys. CompositionStatsProvider interface can be implemented by a class that will poll all displays and return a display->CompositionStats map for the cumulative stats for each display. CompositionStatsTracker is a helper class that tracks the state of the last queried stats and calculates the delta between the last stats and the currently pulled stats. A Callback function can be passed into the Report function which will be called for each display, with the cumulative and delta stats as arguments. Change-Id: I4200df5b41a4dbc612160aec038c83336b68bc4b Signed-off-by: Drew Davenport <ddavenport@google.com> |
||
|---|---|---|
| .. | ||
| CompositionStats.cpp | ||
| CompositionStats.h | ||
| CompositionStatsTest.cpp | ||