summaryrefslogtreecommitdiff
path: root/libs/hwui/RenderNode.h
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/RenderNode.h
parentba36e0c2d1f6377671b493a5ae121140c002ce0f (diff)
parent272a685f17cc4828257e521a6f62b7b17870f75e (diff)
Merge "Replace most usages of utils/Vector.h"
Diffstat (limited to 'libs/hwui/RenderNode.h')
-rw-r--r--libs/hwui/RenderNode.h13
1 files changed, 7 insertions, 6 deletions
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 <utils/LinearAllocator.h>
#include <utils/RefBase.h>
#include <utils/String8.h>
-#include <utils/Vector.h>
#include <cutils/compiler.h>
@@ -34,6 +33,8 @@
#include "DisplayList.h"
#include "RenderProperties.h"
+#include <vector>
+
class SkBitmap;
class SkPaint;
class SkPath;
@@ -176,7 +177,7 @@ public:
private:
typedef key_value_pair_t<float, DrawRenderNodeOp*> ZDrawRenderNodeOpPair;
- static size_t findNonNegativeIndex(const Vector<ZDrawRenderNodeOpPair>& nodes) {
+ static size_t findNonNegativeIndex(const std::vector<ZDrawRenderNodeOpPair>& 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<DrawRenderNodeOp*>* compositedChildrenOfProjectionSurface,
+ std::vector<DrawRenderNodeOp*>* compositedChildrenOfProjectionSurface,
const mat4* transformFromProjectionSurface);
template <class T>
inline void setViewProperties(OpenGLRenderer& renderer, T& handler);
void buildZSortedChildList(const DisplayListData::Chunk& chunk,
- Vector<ZDrawRenderNodeOpPair>& zTranslatedNodes);
+ std::vector<ZDrawRenderNodeOpPair>& zTranslatedNodes);
template<class T>
inline void issueDrawShadowOperation(const Matrix4& transformFromParent, T& handler);
template <class T>
inline void issueOperationsOf3dChildren(ChildrenSelectMode mode,
- const Matrix4& initialTransform, const Vector<ZDrawRenderNodeOpPair>& zTranslatedNodes,
+ const Matrix4& initialTransform, const std::vector<ZDrawRenderNodeOpPair>& zTranslatedNodes,
OpenGLRenderer& renderer, T& handler);
template <class T>
@@ -267,7 +268,7 @@ private:
*/
// for projection surfaces, contains a list of all children items
- Vector<DrawRenderNodeOp*> mProjectedNodes;
+ std::vector<DrawRenderNodeOp*> 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)