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
Fix Google Maps rendering issues in TLHC mode when using LATEST renderer
The Google Maps LATEST renderer always uses a TextureView. We can use a signal
from this TextureView to perform view invalidation that fixes the rendering
glitches (missing updates) in TLHC mode.
NOTE: We have an internal bug 311013682 requesting an official way of achieving
this functionality but if the bug is ever acted on it will take many months/years
before we can rely on this functionality.
In the meantime, chain the internal SurfaceTextureListener with our own and
piggyback on the OnSurfaceTextureUpdated callback to invalidate the MapView.
Fixesflutter/flutter#103686
Tested on an emulator and a physical device (Pixel 6 Pro).
Copy file name to clipboardExpand all lines: packages/google_maps_flutter/google_maps_flutter_android/android/src/main/java/io/flutter/plugins/googlemaps/GoogleMapController.java
Copy file name to clipboardExpand all lines: packages/google_maps_flutter/google_maps_flutter_android/android/src/test/java/io/flutter/plugins/googlemaps/GoogleMapControllerTest.java
-90Lines changed: 0 additions & 90 deletions
Original file line number
Diff line number
Diff line change
@@ -7,33 +7,24 @@
7
7
importstaticorg.junit.Assert.assertNotNull;
8
8
importstaticorg.junit.Assert.assertNull;
9
9
importstaticorg.junit.Assert.assertTrue;
10
-
importstaticorg.mockito.Mockito.mock;
11
-
importstaticorg.mockito.Mockito.never;
12
10
importstaticorg.mockito.Mockito.times;
13
11
importstaticorg.mockito.Mockito.verify;
14
12
15
13
importandroid.content.Context;
16
14
importandroid.os.Build;
17
-
importandroid.os.Looper;
18
15
importandroidx.activity.ComponentActivity;
19
16
importandroidx.test.core.app.ApplicationProvider;
20
17
importcom.google.android.gms.maps.GoogleMap;
21
-
importcom.google.android.gms.maps.MapView;
22
18
importio.flutter.plugin.common.BinaryMessenger;
23
-
importio.flutter.plugin.common.MethodCall;
24
-
importio.flutter.plugin.common.MethodChannel;
25
-
importjava.util.HashMap;
26
19
importorg.junit.After;
27
20
importorg.junit.Assert;
28
21
importorg.junit.Before;
29
22
importorg.junit.Test;
30
23
importorg.junit.runner.RunWith;
31
-
importorg.mockito.ArgumentCaptor;
32
24
importorg.mockito.Mock;
33
25
importorg.mockito.MockitoAnnotations;
34
26
importorg.robolectric.Robolectric;
35
27
importorg.robolectric.RobolectricTestRunner;
36
-
importorg.robolectric.Shadows;
37
28
importorg.robolectric.annotation.Config;
38
29
39
30
@RunWith(RobolectricTestRunner.class)
@@ -86,87 +77,6 @@ public void OnDestroyReleaseTheMap() throws InterruptedException {
0 commit comments