Refcounting in allocations.

Change-Id: Ida2dfb404b2cd832e622d981d73a938d5bc5b821
diff --git a/rsComponent.cpp b/rsComponent.cpp
index 8e509ad..fbaa75f 100644
--- a/rsComponent.cpp
+++ b/rsComponent.cpp
@@ -161,6 +161,10 @@
     mBits = mTypeBits * mVectorSize;
 }
 
+bool Component::isReference() const
+{
+    return (mType >= RS_TYPE_ELEMENT);
+}