am e29b4b11: am e8dab95b: am 74fed612: Merge "Clearer message when failing to draw a SW layer" into mnc-dev

* commit 'e29b4b11e6b993f9290496e60c6b7bcd31aea63b':
  Clearer message when failing to draw a SW layer
This commit is contained in:
Chris Craik
2015-07-06 20:54:17 +00:00
committed by Android Git Automerger

View File

@@ -15366,7 +15366,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");
}