summaryrefslogtreecommitdiff
path: root/graphics/java/android/renderscript/RenderScript.java
diff options
context:
space:
mode:
authorChet Haase <chet@google.com>2013-05-14 17:56:01 -0700
committerChet Haase <chet@google.com>2013-05-14 21:19:48 -0700
commit5495c726121737b5565ea58a28efdd6dbc471891 (patch)
tree04ad2471761c8429343263b8aaf1e49041d6f1e2 /graphics/java/android/renderscript/RenderScript.java
parent60347e98e22d13c6279c32dded92f6ec96a705a7 (diff)
Dirty rect must expand, not contract.
Different devices have different precision, leading to different pixels being touched during rendering operations. We need to ensure that the dirty rect we draw with (and which gets erased on the following frame) encompasses all possible pixels instead of some ideal rounded rectangle. The bug from this code led to dropped-pixels artifacts on some devices, where we'd scale a view, drawing it into some pixels, then invalidate that same area on the next frame, but the invalidation rectangle didn't cover the same pixels as the device drew into. The fix is to floor() the left/top pixels and ceil() the right/bottom pixels of the transformed invalidation rectangle. Issue #8971348 dropped pixel artifacts during some scaling operations Change-Id: Iedb1afd5621dff43bf7a3919bdbd8d2251647fd2
Diffstat (limited to 'graphics/java/android/renderscript/RenderScript.java')
0 files changed, 0 insertions, 0 deletions