From 272a685f17cc4828257e521a6f62b7b17870f75e Mon Sep 17 00:00:00 2001 From: John Reck Date: Wed, 29 Jul 2015 16:48:58 -0700 Subject: Replace most usages of utils/Vector.h Change-Id: I540d1b3523244d6c71fc52d6fb30555271c25644 --- libs/hwui/RenderNode.h | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'libs/hwui/RenderNode.h') diff --git a/libs/hwui/RenderNode.h b/libs/hwui/RenderNode.h index 4063d4bd53ce..db72287c69c1 100644 --- a/libs/hwui/RenderNode.h +++ b/libs/hwui/RenderNode.h @@ -22,7 +22,6 @@ #include #include #include -#include #include @@ -34,6 +33,8 @@ #include "DisplayList.h" #include "RenderProperties.h" +#include + class SkBitmap; class SkPaint; class SkPath; @@ -176,7 +177,7 @@ public: private: typedef key_value_pair_t ZDrawRenderNodeOpPair; - static size_t findNonNegativeIndex(const Vector& nodes) { + static size_t findNonNegativeIndex(const std::vector& nodes) { for (size_t i = 0; i < nodes.size(); i++) { if (nodes[i].key >= 0.0f) return i; } @@ -190,21 +191,21 @@ private: void computeOrderingImpl(DrawRenderNodeOp* opState, const SkPath* outlineOfProjectionSurface, - Vector* compositedChildrenOfProjectionSurface, + std::vector* compositedChildrenOfProjectionSurface, const mat4* transformFromProjectionSurface); template inline void setViewProperties(OpenGLRenderer& renderer, T& handler); void buildZSortedChildList(const DisplayListData::Chunk& chunk, - Vector& zTranslatedNodes); + std::vector& zTranslatedNodes); template inline void issueDrawShadowOperation(const Matrix4& transformFromParent, T& handler); template inline void issueOperationsOf3dChildren(ChildrenSelectMode mode, - const Matrix4& initialTransform, const Vector& zTranslatedNodes, + const Matrix4& initialTransform, const std::vector& zTranslatedNodes, OpenGLRenderer& renderer, T& handler); template @@ -267,7 +268,7 @@ private: */ // for projection surfaces, contains a list of all children items - Vector mProjectedNodes; + std::vector mProjectedNodes; // How many references our parent(s) have to us. Typically this should alternate // between 2 and 1 (when a staging push happens we inc first then dec) -- cgit v1.2.3-59-g8ed1b