diff options
author | Dan Albert <danalbert@google.com> | 2014-11-12 21:11:48 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2014-11-12 21:11:49 +0000 |
commit | 5e6cf24213c5eacc9d3e3c8da5826be4a23f22af (patch) | |
tree | f1832a5cad77c92bb4f60344c28e82d0cc3f633f /libs | |
parent | 6e5b14c411f7ebdae610c1074e7d4d2d5d2a9550 (diff) | |
parent | ff1d8a6635fb6441615778a47e2881129574a5b1 (diff) | |
download | frameworks_base-5e6cf24213c5eacc9d3e3c8da5826be4a23f22af.zip frameworks_base-5e6cf24213c5eacc9d3e3c8da5826be4a23f22af.tar.gz frameworks_base-5e6cf24213c5eacc9d3e3c8da5826be4a23f22af.tar.bz2 |
Merge "Move frameworks/base over to libc++."
Diffstat (limited to 'libs')
-rw-r--r-- | libs/hwui/Android.mk | 1 | ||||
-rw-r--r-- | libs/hwui/DisplayList.h | 2 | ||||
-rw-r--r-- | libs/hwui/PathTessellator.cpp | 6 |
3 files changed, 4 insertions, 5 deletions
diff --git a/libs/hwui/Android.mk b/libs/hwui/Android.mk index a09355b..3e590a9 100644 --- a/libs/hwui/Android.mk +++ b/libs/hwui/Android.mk @@ -115,7 +115,6 @@ ifeq ($(USE_OPENGL_RENDERER),true) LOCAL_CFLAGS += -Wall -Werror -Wunused -Wunreachable-code - include external/stlport/libstlport.mk include $(BUILD_SHARED_LIBRARY) include $(call all-makefiles-under,$(LOCAL_PATH)) diff --git a/libs/hwui/DisplayList.h b/libs/hwui/DisplayList.h index 657632d..9eb8ae3 100644 --- a/libs/hwui/DisplayList.h +++ b/libs/hwui/DisplayList.h @@ -82,7 +82,7 @@ public: LinearAllocator * const mAllocator; SkPath* allocPathForFrame() { - mTempPaths.push_back(); + mTempPaths.push_back(SkPath()); return &mTempPaths.back(); } diff --git a/libs/hwui/PathTessellator.cpp b/libs/hwui/PathTessellator.cpp index d842ed5..b3f779f 100644 --- a/libs/hwui/PathTessellator.cpp +++ b/libs/hwui/PathTessellator.cpp @@ -289,14 +289,14 @@ void getStrokeVerticesFromUnclosedVertices(const PaintInfo& paintInfo, } beginTheta += dTheta; - Vector2 beginRadialOffset = {cos(beginTheta), sin(beginTheta)}; + Vector2 beginRadialOffset = {cosf(beginTheta), sinf(beginTheta)}; paintInfo.scaleOffsetForStrokeWidth(beginRadialOffset); Vertex::set(&buffer[capOffset], vertices[0].x + beginRadialOffset.x, vertices[0].y + beginRadialOffset.y); endTheta += dTheta; - Vector2 endRadialOffset = {cos(endTheta), sin(endTheta)}; + Vector2 endRadialOffset = {cosf(endTheta), sinf(endTheta)}; paintInfo.scaleOffsetForStrokeWidth(endRadialOffset); Vertex::set(&buffer[allocSize - 1 - capOffset], vertices[lastIndex].x + endRadialOffset.x, @@ -467,7 +467,7 @@ inline static void storeCapAA(const PaintInfo& paintInfo, const Vector<Vertex>& for (int i = 0; i < extra; i++) { theta += dTheta; - Vector2 radialOffset = {cos(theta), sin(theta)}; + Vector2 radialOffset = {cosf(theta), sinf(theta)}; // scale to compensate for pinching at sharp angles, see totalOffsetFromNormals() radialOffset *= radialScale; |