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

Commit 2aa56c54 authored by Chris Craik's avatar Chris Craik
Browse files

Clearer message when failing to draw a SW layer

bug:21376603

Change-Id: I7433491c16c5bc95cffc8e35aac07eb551be9c8e
parent 82b3f677
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -15364,7 +15364,8 @@ public class View implements Drawable.Callback, KeyEvent.Callback,
                ViewConfiguration.get(mContext).getScaledMaximumDrawingCacheSize();
        if (width <= 0 || height <= 0 || projectedBitmapSize > drawingCacheSize) {
            if (width > 0 && height > 0) {
                Log.w(VIEW_LOG_TAG, "View too large to fit into drawing cache, needs "
                Log.w(VIEW_LOG_TAG, getClass().getSimpleName() + " not displayed because it is"
                        + " too large to fit into a software layer (or drawing cache), needs "
                        + projectedBitmapSize + " bytes, only "
                        + drawingCacheSize + " available");
            }