diff options
author | qctecmdr <qctecmdr@localhost> | 2019-04-16 04:40:52 -0700 |
---|---|---|
committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2019-04-16 04:40:52 -0700 |
commit | c14f7b44f396e23d962358333cfe0403bcd33c8c (patch) | |
tree | ae49f96aeeb4fc4da02cdc0ed55a7f1fb87a78d5 /sdm/libs/hwc2/hwc_session.cpp | |
parent | dafd7790369a126f76280906a9c01e35f9f32f96 (diff) | |
parent | 29525dff7e762b97264f5def38ac550d05e7087c (diff) |
Merge "display: add logs for systrace debugging"
Diffstat (limited to 'sdm/libs/hwc2/hwc_session.cpp')
-rw-r--r-- | sdm/libs/hwc2/hwc_session.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sdm/libs/hwc2/hwc_session.cpp b/sdm/libs/hwc2/hwc_session.cpp index df98f81c..00444fe1 100644 --- a/sdm/libs/hwc2/hwc_session.cpp +++ b/sdm/libs/hwc2/hwc_session.cpp @@ -2792,6 +2792,8 @@ void HWCSession::DestroyNonPluggableDisplay(DisplayMapInfo *map_info) { HWC2::Error HWCSession::ValidateDisplayInternal(hwc2_display_t display, uint32_t *out_num_types, uint32_t *out_num_requests) { HWCDisplay *hwc_display = hwc_display_[display]; + + DTRACE_SCOPED(); if (hwc_display->IsInternalValidateState()) { // Internal Validation has already been done on display, get the Output params. return hwc_display->GetValidateDisplayOutput(out_num_types, out_num_requests); @@ -2814,6 +2816,8 @@ HWC2::Error HWCSession::ValidateDisplayInternal(hwc2_display_t display, uint32_t HWC2::Error HWCSession::PresentDisplayInternal(hwc2_display_t display, int32_t *out_retire_fence) { HWCDisplay *hwc_display = hwc_display_[display]; + + DTRACE_SCOPED(); // If display is in Skip-Validate state and Validate cannot be skipped, do Internal // Validation to optimize for the frames which don't require the Client composition. if (hwc_display->IsSkipValidateState() && !hwc_display->CanSkipValidate()) { |