summaryrefslogtreecommitdiffstats
path: root/libs/hwui/renderthread
diff options
context:
space:
mode:
authorJohn Reck <jreck@google.com>2014-07-17 11:00:36 -0700
committerChris Craik <ccraik@google.com>2014-07-17 18:12:01 +0000
commit5cdb8f998c58a2226112b36e4c391866346e5e17 (patch)
treea040107db60baec9e608bf05495fb825407e8cd4 /libs/hwui/renderthread
parent69eef8a0d250ae1b50b510499014e109bd2c6112 (diff)
downloadframeworks_base-5cdb8f998c58a2226112b36e4c391866346e5e17.zip
frameworks_base-5cdb8f998c58a2226112b36e4c391866346e5e17.tar.gz
frameworks_base-5cdb8f998c58a2226112b36e4c391866346e5e17.tar.bz2
Fix logging
Bug: 16357287 Change-Id: Ic14e32c941e42ab1f1ed51ff8ed7185979e57a55
Diffstat (limited to 'libs/hwui/renderthread')
-rw-r--r--libs/hwui/renderthread/CanvasContext.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/hwui/renderthread/CanvasContext.cpp b/libs/hwui/renderthread/CanvasContext.cpp
index a4ac262..2147810 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();