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
diff --git a/services/surfaceflinger/Scheduler/DispSyncSource.cpp b/services/surfaceflinger/Scheduler/DispSyncSource.cpp
index 61f2ac8..697d634 100644
--- a/services/surfaceflinger/Scheduler/DispSyncSource.cpp
+++ b/services/surfaceflinger/Scheduler/DispSyncSource.cpp
@@ -14,6 +14,8 @@
  * limitations under the License.
  */
 
+#define ATRACE_TAG ATRACE_TAG_GRAPHICS
+
 #include "DispSyncSource.h"
 
 #include <android-base/stringprintf.h>
diff --git a/services/surfaceflinger/SurfaceFlinger.cpp b/services/surfaceflinger/SurfaceFlinger.cpp
index 41c7f22..58fa5c3 100644
--- a/services/surfaceflinger/SurfaceFlinger.cpp
+++ b/services/surfaceflinger/SurfaceFlinger.cpp
@@ -4253,7 +4253,7 @@
                 appEarlyOffset,
                 sfEarlyOffset,
                 appEarlyGlOffset,
-                sfEarlyOffset,
+                sfEarlyGlOffset,
                 dispSyncPresentTimeOffset, activeConfig->getVsyncPeriod());
     }
     result.append("\n");