summaryrefslogtreecommitdiff
path: root/libs/hwui/DamageAccumulator.h
diff options
context:
space:
mode:
authorJohn Reck <jreck@google.com>2015-08-12 13:39:11 -0700
committerJohn Reck <jreck@google.com>2015-08-12 13:52:01 -0700
commitc128823940fb0be96eda810fa9f0c75f66d944b0 (patch)
tree80acd00da3cf348f7af45ed1ebda6a1ea302e834 /libs/hwui/DamageAccumulator.h
parent2d2ba516e6f1ea9e515f29cdf84e75a17e8fa60b (diff)
Fix bug in calculating perspective damage
Change-Id: Iacab98cf3525f891012087acf85e4205b5e8f0d0
Diffstat (limited to 'libs/hwui/DamageAccumulator.h')
-rw-r--r--libs/hwui/DamageAccumulator.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/libs/hwui/DamageAccumulator.h b/libs/hwui/DamageAccumulator.h
index dd3365a49d78..e44fc20feaa8 100644
--- a/libs/hwui/DamageAccumulator.h
+++ b/libs/hwui/DamageAccumulator.h
@@ -24,6 +24,11 @@
#include "utils/Macros.h"
+// Smaller than INT_MIN/INT_MAX because we offset these values
+// and thus don't want to be adding offsets to INT_MAX, that's bad
+#define DIRTY_MIN (-0x7ffffff-1)
+#define DIRTY_MAX (0x7ffffff)
+
namespace android {
namespace uirenderer {