diff options
author | 2012-11-26 18:30:17 -0800 | |
---|---|---|
committer | 2013-01-22 13:47:03 -0800 | |
commit | 2af4635e4a9e448a65ff541252f8f94bc6ac48e0 (patch) | |
tree | 2ea27d507f81660cdbb8e2cdf48cce875c1b8cdd /libs/hwui/Patch.cpp | |
parent | 878749fef09c7cb5894f77d9b032f876f9476e47 (diff) |
Object-based DisplayList recording
bug:8037003
Changes the DisplayList from using stream read/write commands to use an array of
objects manually allocated on a linear buffer.
Depends on frameworks/native change https://googleplex-android-review.googlesource.com/#/c/257695/ which adds LinearAllocator
Also changes drawRects to use float count instead of rect count, to be more like drawLines/drawPoints
Change-Id: Ia2e4a11acd8f0a757042a05cbc9e7563cb73ee47
Diffstat (limited to 'libs/hwui/Patch.cpp')
-rw-r--r-- | libs/hwui/Patch.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/libs/hwui/Patch.cpp b/libs/hwui/Patch.cpp index e490151fa931..45c619ee01d4 100644 --- a/libs/hwui/Patch.cpp +++ b/libs/hwui/Patch.cpp @@ -122,8 +122,6 @@ void Patch::updateVertices(const float bitmapWidth, const float bitmapHeight, float rescaleX = 1.0f; float rescaleY = 1.0f; - const float meshWidth = right - left; - if (xStretchCount > 0) { uint32_t stretchSize = 0; for (uint32_t i = 1; i < mXCount; i += 2) { |