diff options
author | Mathias Agopian <mathias@google.com> | 2011-09-19 16:00:46 -0700 |
---|---|---|
committer | Mathias Agopian <mathias@google.com> | 2011-09-19 16:50:07 -0700 |
commit | 83b186a246e8ffd52b91a17c0019dd8c9c9d21b1 (patch) | |
tree | 0cd1c181c99cb42a8775a27b7911e62d20945ddd /native | |
parent | 4b5441a7201a2f28becf3ab7fb33694f137e1998 (diff) | |
download | frameworks_base-83b186a246e8ffd52b91a17c0019dd8c9c9d21b1.zip frameworks_base-83b186a246e8ffd52b91a17c0019dd8c9c9d21b1.tar.gz frameworks_base-83b186a246e8ffd52b91a17c0019dd8c9c9d21b1.tar.bz2 |
fix the float Rect in OpenGLRenderer to handle NANs
- we want functions like isEmpty() to return true if NANs are
involved in the Rect
- also clean-up the intersect familly of calls
- minor cleanup in the int32_t Rect as well
These played a role in http://b/5331198.
Bug: 5331198
Change-Id: I5369725ab482e4b83da9f1bd4cee5256e5de75b2
Diffstat (limited to 'native')
-rw-r--r-- | native/include/android/rect.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/native/include/android/rect.h b/native/include/android/rect.h index 3e81f53..64d487d 100644 --- a/native/include/android/rect.h +++ b/native/include/android/rect.h @@ -23,6 +23,9 @@ extern "C" { #endif typedef struct ARect { +#ifdef __cplusplus + typedef int32_t value_type; +#endif int32_t left; int32_t top; int32_t right; |