summaryrefslogtreecommitdiff
path: root/libs/hwui/Patch.cpp
diff options
context:
space:
mode:
authorJohn Reck <jreck@google.com>2015-07-30 17:38:35 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2015-07-30 17:38:35 +0000
commitcef25e5319e4f76682dd63a3c01bfacb19aeeb51 (patch)
tree9504d6b0708f8e3c06158ef597efded8dc93bfaf /libs/hwui/Patch.cpp
parentba36e0c2d1f6377671b493a5ae121140c002ce0f (diff)
parent272a685f17cc4828257e521a6f62b7b17870f75e (diff)
Merge "Replace most usages of utils/Vector.h"
Diffstat (limited to 'libs/hwui/Patch.cpp')
-rw-r--r--libs/hwui/Patch.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/libs/hwui/Patch.cpp b/libs/hwui/Patch.cpp
index 15d2ae94aeaa..500f9e95381c 100644
--- a/libs/hwui/Patch.cpp
+++ b/libs/hwui/Patch.cpp
@@ -206,8 +206,7 @@ void Patch::generateQuad(TextureVertex*& vertex, float x1, float y1, float x2, f
// Record all non empty quads
if (hasEmptyQuads) {
- Rect bounds(x1, y1, x2, y2);
- quads.add(bounds);
+ quads.emplace_back(x1, y1, x2, y2);
}
mUvMapper.map(u1, v1, u2, v2);