From 5cdb8f998c58a2226112b36e4c391866346e5e17 Mon Sep 17 00:00:00 2001 From: John Reck Date: Thu, 17 Jul 2014 11:00:36 -0700 Subject: [PATCH] Fix logging Bug: 16357287 Change-Id: Ic14e32c941e42ab1f1ed51ff8ed7185979e57a55 --- libs/hwui/renderthread/CanvasContext.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/hwui/renderthread/CanvasContext.cpp b/libs/hwui/renderthread/CanvasContext.cpp index a4ac2620fdf0a..214781095b5e3 100644 --- a/libs/hwui/renderthread/CanvasContext.cpp +++ b/libs/hwui/renderthread/CanvasContext.cpp @@ -185,7 +185,7 @@ void CanvasContext::draw() { } else if (!mDirtyRegionsEnabled || mHaveNewSurface) { dirty.setEmpty(); } else { - if (!dirty.intersect(0, 0, width, height)) { + if (!dirty.isEmpty() && !dirty.intersect(0, 0, width, height)) { ALOGW("Dirty " RECT_STRING " doesn't intersect with 0 0 %d %d ?", SK_RECT_ARGS(dirty), width, height); dirty.setEmpty();