commit | a4a0c7afb8d372c5f94de7b6c08294df402e667e | [log] [tgz] |
---|---|---|
author | Ady Abraham <adyabr@google.com> | Wed Jun 07 10:34:32 2023 -0700 |
committer | Ady Abraham <adyabr@google.com> | Thu Jun 08 21:44:58 2023 +0000 |
tree | a0f7755afded28b910fa553df2c4b87435702d43 | |
parent | 2cca7922f4f09fa515b208f6f4724235c81ad229 [diff] [blame] |
hwui: improve RenderThread jank classificaion Mark UI frames that didn't make it to their expected presentation due to RenderThread animations as dropped. Screenshot from Perfetto: https://screenshot.googleplex.com/3pQuNaDYAhHLYu7 Bug: 210605870 Test: manual Change-Id: I709b2bacbafb8027d97f2fcc39831de7735fc3ff
diff --git a/libs/hwui/renderthread/CanvasContext.h b/libs/hwui/renderthread/CanvasContext.h index 5219b57..32ac5af 100644 --- a/libs/hwui/renderthread/CanvasContext.h +++ b/libs/hwui/renderthread/CanvasContext.h
@@ -366,6 +366,12 @@ ColorMode mColorMode = ColorMode::Default; float mTargetSdrHdrRatio = 1.f; + + struct SkippedFrameInfo { + int64_t vsyncId; + int64_t startTime; + }; + std::optional<SkippedFrameInfo> mSkippedFrameInfo; }; } /* namespace renderthread */