Merge "Fix logging" into lmp-dev

This commit is contained in:
John Reck
2014-07-17 18:12:51 +00:00
committed by Android (Google) Code Review

View File

@@ -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();