Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bc5f22fd authored by Midas Chien's avatar Midas Chien
Browse files

SF: Fix incorrect early sf gl phase information dumped from SurfaceFlinger

early sf gl phase is equal to debug.sf.early_gl_phase_offset_ns if this
property is set, or it is equal to sf phase.

Also add ATRACE_TAG for DispSyncSource

Test: Check early sf gl is correct in dumpsys SurfaceFlinger
Test: VSYNC-app and VSYNC-sf shows on systrace

Change-Id: I9f5797c2e6e731d44c7521e8c37cefb9d3602d06
parent 86b78a72
Loading
Loading
Loading
Loading
+2 −0
Original line number Original line Diff line number Diff line
@@ -14,6 +14,8 @@
 * limitations under the License.
 * limitations under the License.
 */
 */


#define ATRACE_TAG ATRACE_TAG_GRAPHICS

#include "DispSyncSource.h"
#include "DispSyncSource.h"


#include <android-base/stringprintf.h>
#include <android-base/stringprintf.h>
+1 −1
Original line number Original line Diff line number Diff line
@@ -4253,7 +4253,7 @@ void SurfaceFlinger::dumpAllLocked(const Vector<String16>& args, size_t& index,
                appEarlyOffset,
                appEarlyOffset,
                sfEarlyOffset,
                sfEarlyOffset,
                appEarlyGlOffset,
                appEarlyGlOffset,
                sfEarlyOffset,
                sfEarlyGlOffset,
                dispSyncPresentTimeOffset, activeConfig->getVsyncPeriod());
                dispSyncPresentTimeOffset, activeConfig->getVsyncPeriod());
    }
    }
    result.append("\n");
    result.append("\n");