summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/RenderScript.java
diff options
context:
space:
mode:
authorNarayan Kamath <narayan@google.com>2014-03-03 17:12:03 +0000
committerNarayan Kamath <narayan@google.com>2014-03-10 10:00:02 +0000
commit6381dd4ff212a95be30d2b445d40ff419ab076b4 (patch)
treeea96f7e229cafae41f7be46a3cf0345edd2dc869 /rs/java/android/renderscript/RenderScript.java
parent3fc3b9fd1bf71351bf1ff2d49d6e10b6acabf068 (diff)
LP64: Make 9 patches architecture agnostic.
The Res_png_9patch struct had several pointer members whose size differed between 32 and 64 bit platforms. These members have been replaced by uint32_t offsets to serialized data. The serialized form for 9patches places a Res_png_9patch object at the beginning of serialized data, followed by int32_t arrays of xDivs, yDivs and colors. Note that these offsets are not strictly required, since they can be computed from the values of numXDivs, numYDivs & numColors, however they are called in tight loops so having them computed once is a beneficial. This change also removed the unused patch_equals function from aapt's Image.cpp. Change-Id: I3b9ac8ae5c05510d41377cae4dff1c69b40c2531
Diffstat (limited to 'rs/java/android/renderscript/RenderScript.java')
0 files changed, 0 insertions, 0 deletions