You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 5775c28
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: CHANGELOG.md
+6Lines changed: 6 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,11 +5,17 @@ Mapbox welcomes participation and contributions from everyone.
5
5
> **16 KB Page Size Support:** Starting with version 11.7.0 and 10.19.0, **NDK 27 is supported** with dedicated artifacts that include [support for 16 KB page sizes](https://developer.android.com/guide/practices/page-sizes). If your app does not require 16 KB page size support, you can keep using our default artifacts without `-ndk27` suffix. For more information about our NDK support, see https://docs.mapbox.com/android/maps/guides/#ndk-support
6
6
7
7
# main
8
+
## Breaking changes ⚠️
9
+
* Remove the deprecated experimental `RenderThreadStats.totalDroppedFrames`. Use `totalSkippedVsync` instead, which holds the same value.
10
+
* Replace the experimental `setRenderThreadStatsRecorder()` with a `renderThreadStatsRecorder` property on `MapView` and `MapSurface`. Each map now owns its recorder, and the `RenderThreadStatsRecorder` constructor is no longer public.
11
+
* Rename the experimental `RenderThreadStatsRecorder.end()` to `stop()`, to match `start()`.
12
+
8
13
## Features ✨ and improvements 🏁
9
14
* [compose] Add `showHdRoads` and `colorHdRoads` configuration options to the Standard style.
10
15
11
16
## Bug fixes 🐞
12
17
* Fix a native crash that could occur when the app went to background or the `MapView` was detached while the map was still rendering.
18
+
* Fix a race in the experimental `RenderThreadStatsRecorder` where calling `stop()` while the map was rendering could return inconsistent stats or carry frames over into the next recording session. Recording never makes the render thread wait.
Copy file name to clipboardExpand all lines: maps-sdk/api/maps-sdk.api
+5-7Lines changed: 5 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,7 @@ public abstract interface class com/mapbox/maps/MapControllable : com/mapbox/map
2
2
public abstract fun addRendererSetupErrorListener (Lcom/mapbox/maps/renderer/RendererSetupErrorListener;)V
3
3
public abstract fun addWidget (Lcom/mapbox/maps/renderer/widget/Widget;)V
4
4
public abstract fun getMapboxMap ()Lcom/mapbox/maps/MapboxMap;
5
+
public abstract fun getRenderThreadStatsRecorder ()Lcom/mapbox/maps/renderer/RenderThreadStatsRecorder;
5
6
public abstract fun onGenericMotionEvent (Landroid/view/MotionEvent;)Z
6
7
public abstract fun onSizeChanged (II)V
7
8
public abstract fun onTouchEvent (Landroid/view/MotionEvent;)Z
@@ -10,7 +11,6 @@ public abstract interface class com/mapbox/maps/MapControllable : com/mapbox/map
10
11
public abstract fun removeWidget (Lcom/mapbox/maps/renderer/widget/Widget;)Z
11
12
public abstract fun setMaximumFps (I)V
12
13
public abstract fun setOnFpsChangedListener (Lcom/mapbox/maps/renderer/OnFpsChangedListener;)V
13
-
public abstract fun setRenderThreadStatsRecorder (Lcom/mapbox/maps/renderer/RenderThreadStatsRecorder;)V
14
14
public abstract fun snapshot ()Landroid/graphics/Bitmap;
15
15
public abstract fun snapshot (Lcom/mapbox/maps/MapView$OnSnapshotReady;)V
16
16
}
@@ -90,6 +90,7 @@ public final class com/mapbox/maps/MapSurface : com/mapbox/maps/MapControllable,
90
90
public final synthetic fun getMapboxMapDeprecated ()Lcom/mapbox/maps/MapboxMap;
91
91
public final fun getMaximumFps ()Ljava/lang/Integer;
92
92
public fun getPlugin (Ljava/lang/String;)Lcom/mapbox/maps/plugin/MapPlugin;
93
+
public fun getRenderThreadStatsRecorder ()Lcom/mapbox/maps/renderer/RenderThreadStatsRecorder;
93
94
public final fun getSurface ()Landroid/view/Surface;
94
95
public fun onDestroy ()V
95
96
public fun onGenericMotionEvent (Landroid/view/MotionEvent;)Z
@@ -106,7 +107,6 @@ public final class com/mapbox/maps/MapSurface : com/mapbox/maps/MapControllable,
106
107
public fun removeWidget (Lcom/mapbox/maps/renderer/widget/Widget;)Z
107
108
public fun setMaximumFps (I)V
108
109
public fun setOnFpsChangedListener (Lcom/mapbox/maps/renderer/OnFpsChangedListener;)V
109
-
public fun setRenderThreadStatsRecorder (Lcom/mapbox/maps/renderer/RenderThreadStatsRecorder;)V
110
110
public fun snapshot ()Landroid/graphics/Bitmap;
111
111
public fun snapshot (Lcom/mapbox/maps/MapView$OnSnapshotReady;)V
112
112
public final fun surfaceChanged (II)V
@@ -132,6 +132,7 @@ public class com/mapbox/maps/MapView : android/widget/FrameLayout, com/mapbox/ma
132
132
public final synthetic fun getMapboxMapDeprecated ()Lcom/mapbox/maps/MapboxMap;
133
133
public final fun getMaximumFps ()Ljava/lang/Integer;
134
134
public fun getPlugin (Ljava/lang/String;)Lcom/mapbox/maps/plugin/MapPlugin;
135
+
public fun getRenderThreadStatsRecorder ()Lcom/mapbox/maps/renderer/RenderThreadStatsRecorder;
135
136
public final fun getViewAnnotationManager ()Lcom/mapbox/maps/viewannotation/ViewAnnotationManager;
136
137
public static final fun isRenderingSupported ()Z
137
138
public static final fun isTerrainRenderingSupported ()Z
@@ -155,7 +156,6 @@ public class com/mapbox/maps/MapView : android/widget/FrameLayout, com/mapbox/ma
155
156
public final fun setDebugOptions (Ljava/util/Set;)V
156
157
public fun setMaximumFps (I)V
157
158
public fun setOnFpsChangedListener (Lcom/mapbox/maps/renderer/OnFpsChangedListener;)V
158
-
public fun setRenderThreadStatsRecorder (Lcom/mapbox/maps/renderer/RenderThreadStatsRecorder;)V
159
159
public final fun setSnapshotLegacyMode (Z)V
160
160
public fun snapshot ()Landroid/graphics/Bitmap;
161
161
public fun snapshot (Lcom/mapbox/maps/MapView$OnSnapshotReady;)V
@@ -751,7 +751,7 @@ public abstract interface annotation class com/mapbox/maps/renderer/RenderThread
751
751
}
752
752
753
753
public final class com/mapbox/maps/renderer/RenderThreadStats {
754
-
public synthetic fun <init> (JJJJJJLjava/util/List;Ljava/lang/Double;Ljava/lang/Double;Ljava/lang/Double;Ljava/lang/Double;Lkotlin/jvm/internal/DefaultConstructorMarker;)V
754
+
public synthetic fun <init> (JJJJJLjava/util/List;Ljava/lang/Double;Ljava/lang/Double;Ljava/lang/Double;Ljava/lang/Double;Lkotlin/jvm/internal/DefaultConstructorMarker;)V
755
755
public fun equals (Ljava/lang/Object;)Z
756
756
public final fun getFrameTimeList ()Ljava/util/List;
757
757
public final fun getMissedMapRenderFrames ()J
@@ -760,7 +760,6 @@ public final class com/mapbox/maps/renderer/RenderThreadStats {
760
760
public final fun getPercentile90 ()Ljava/lang/Double;
761
761
public final fun getPercentile95 ()Ljava/lang/Double;
762
762
public final fun getPercentile99 ()Ljava/lang/Double;
763
-
public final fun getTotalDroppedFrames ()J
764
763
public final fun getTotalFrames ()J
765
764
public final fun getTotalSkippedVsync ()J
766
765
public final fun getTotalTime ()J
@@ -769,10 +768,9 @@ public final class com/mapbox/maps/renderer/RenderThreadStats {
769
768
}
770
769
771
770
public final class com/mapbox/maps/renderer/RenderThreadStatsRecorder {
772
-
public fun <init> ()V
773
-
public final fun end ()Lcom/mapbox/maps/renderer/RenderThreadStats;
774
771
public final fun isRecording ()Z
775
772
public final fun start ()V
773
+
public final fun stop ()Lcom/mapbox/maps/renderer/RenderThreadStats;
776
774
}
777
775
778
776
public final class com/mapbox/maps/renderer/RendererError {
0 commit comments