John Reck

Results 5 comments of John Reck

To reproduce decode this: https://cs.android.com/android/platform/superproject/main/+/main:frameworks/base/tests/graphics/SilkFX/assets/gainmaps/fountain_night.jpg to a Config.HARDWARE output and check that `bitmap#getGainmap()` returns non-null. You can force this failure path on a pixel device by first doing `adb shell...

Correction to #1, you can't simply .copy the Config.ALPHA_8 to Config.ARGB_8888, you need to instead do this: private static Bitmap copyWithOpaqueAlpha(Bitmap bitmap) { Bitmap newContents = Bitmap.createBitmap( bitmap.getWidth(), bitmap.getHeight(), Config.ARGB_8888);...

> While digging in AOSP code, I've noticed this change : https://cs.android.com/android/_/android/platform/frameworks/base/+/1b152e712159c0b82831a7567ce2f3c49cdc11bf It apparently modified how `SurfaceView` is clipped. > > It seemed to have been released in Android 14...

I can confirm that the clipping change is *not* the cause of this issue.

The issue is that somehow this transaction isn't happening: https://cs.android.com/android/platform/superproject/main/+/main:frameworks/base/core/java/android/view/SurfaceView.java;drc=a7ba109ec6c7c1ca82f96651863b3d2c10c6bc34;l=2113 In the repro app the transaction that updates the bounds of the SurfaceView is just getting dropped on the floor,...