OSDN Git Service

Log wallpaper redraw
authorLucas Dupin <dupin@google.com>
Thu, 14 Dec 2017 22:50:11 +0000 (14:50 -0800)
committerLucas Dupin <dupin@google.com>
Thu, 14 Dec 2017 22:50:11 +0000 (14:50 -0800)
Added logging to make it easier to debug and
re-route drawing problems.

Test: Set wallpaper, look at logs.
Test: Rotate screen, look at logs.
Bug: 70361780
Change-Id: I894bc6217b1ffd804a07f0f631f57d72b968dd63

packages/SystemUI/src/com/android/systemui/ImageWallpaper.java

index 593bb50..a59c97e 100644 (file)
@@ -494,7 +494,8 @@ public class ImageWallpaper extends WallpaperService {
                     }
                     if (mBackground != null) {
                         RectF dest = new RectF(left, top, right, bottom);
-                        // add a filter bitmap?
+                        Log.i(TAG, "Redrawing in rect: " + dest + " with surface size: "
+                                + mLastRequestedWidth + "x" + mLastRequestedHeight);
                         c.drawBitmap(mBackground, null, dest, null);
                     }
                 } finally {