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
Copy file name to clipboardExpand all lines: packages/react-native/ReactAndroid/src/main/java/com/facebook/react/devsupport/inspector/FrameTimingsObserver.kt
+15-13Lines changed: 15 additions & 13 deletions
Original file line number
Diff line number
Diff line change
@@ -124,14 +124,11 @@ internal class FrameTimingsObserver(
124
124
125
125
// Reuse bitmap if dimensions haven't changed
126
126
val bitmap =
127
-
bitmapBuffer?.let {
128
-
if (it.width == width && it.height == height) {
129
-
it
130
-
} else {
131
-
it.recycle()
132
-
null
133
-
}
134
-
} ?:Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888).also { bitmapBuffer = it }
0 commit comments