Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 19e15875 authored by Automerger Merge Worker's avatar Automerger Merge Worker Committed by Android (Google) Code Review
Browse files

Merge "Merge "Do not draw snapshot starting window if allocate graphic buffer...

Merge "Merge "Do not draw snapshot starting window if allocate graphic buffer fail." into udc-dev am: 008b3f10 am: 3c159ba4"
parents ee246b68 59e89f1b
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -223,6 +223,11 @@ public class SnapshotDrawerUtils {
                        PixelFormat.RGBA_8888,
                        GraphicBuffer.USAGE_HW_TEXTURE | GraphicBuffer.USAGE_HW_COMPOSER
                                | GraphicBuffer.USAGE_SW_WRITE_RARELY);
                if (background == null) {
                    Log.e(TAG, "Unable to draw snapshot: failed to allocate graphic buffer for "
                            + mTitle);
                    return;
                }
                // TODO: Support this on HardwareBuffer
                final Canvas c = background.lockCanvas();
                drawBackgroundAndBars(c, frame);