Skip to content

Commit 0a96d95

Browse files
jushgithub-actions[bot]
authored andcommitted
Added traces and potential fix in render_impl
GitOrigin-RevId: 2a17dcedac96f45cf94fd91e39c07a13952b035a
1 parent 9048e63 commit 0a96d95

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

maps-sdk/src/main/java/com/mapbox/maps/renderer/MapboxRenderer.kt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,13 @@ package com.mapbox.maps.renderer
22

33
import android.graphics.Bitmap
44
import android.graphics.Matrix
5+
import android.util.Log
56
import androidx.annotation.AnyThread
67
import androidx.annotation.MainThread
78
import androidx.annotation.UiThread
89
import androidx.annotation.VisibleForTesting
910
import com.mapbox.common.Cancelable
11+
import com.mapbox.common.MapboxTracing
1012
import com.mapbox.maps.DelegatingMapClient
1113
import com.mapbox.maps.Map
1214
import com.mapbox.maps.MapView.OnSnapshotReady
@@ -73,7 +75,9 @@ internal abstract class MapboxRenderer(
7375

7476
@AnyThread
7577
override fun scheduleRepaint() {
76-
renderThread.queueRenderEvent(repaintRenderEvent)
78+
MapboxTracing.traceSync("scheduleRepaint") {
79+
renderThread.queueRenderEvent(repaintRenderEvent)
80+
}
7781
}
7882

7983
@AnyThread

0 commit comments

Comments
 (0)