Skip to content

Commit

Permalink
Fix the issue of blank rendering in PAGImageView on certain Samsung m…
Browse files Browse the repository at this point in the history
…odels (such as Galaxy S23 FE). (#2362)

Co-authored-by: kevingpqi <[email protected]>
(cherry picked from commit 1f8d6f9)
  • Loading branch information
kevingpqi123 committed Jul 8, 2024
1 parent 9fb54c5 commit 0aa1d22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion android/libpag/src/main/java/org/libpag/BitmapHelper.java
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ private static HardwareBuffer CreateHardwareBuffer(int width, int height) {
if (width > 0 && height > 0 && Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
try {
return HardwareBuffer.create(width, height, HardwareBuffer.RGBA_8888, 1,
HardwareBuffer.USAGE_GPU_SAMPLED_IMAGE | HardwareBuffer.USAGE_CPU_READ_OFTEN | HardwareBuffer.USAGE_CPU_WRITE_OFTEN);
HardwareBuffer.USAGE_GPU_SAMPLED_IMAGE | HardwareBuffer.USAGE_CPU_READ_OFTEN | HardwareBuffer.USAGE_CPU_WRITE_OFTEN | HardwareBuffer.USAGE_GPU_COLOR_OUTPUT);
} catch (Exception e) {
e.printStackTrace();
}
Expand Down

0 comments on commit 0aa1d22

Please sign in to comment.