summaryrefslogtreecommitdiffstats
path: root/rsComponent.cpp
diff options
context:
space:
mode:
authorJason Sams <rjsams@android.com>2010-08-09 18:13:33 -0700
committerJason Sams <rjsams@android.com>2010-08-09 18:13:33 -0700
commite3929c9bc6f3897e132304faf1b40c3cf1f47474 (patch)
tree7534b79666321a8a4511182e045c14e5e7de8cbd /rsComponent.cpp
parent78d4a74641c110b7c3d0b890ccfb4cd54459418f (diff)
downloadandroid_frameworks_rs-e3929c9bc6f3897e132304faf1b40c3cf1f47474.tar.gz
android_frameworks_rs-e3929c9bc6f3897e132304faf1b40c3cf1f47474.tar.bz2
android_frameworks_rs-e3929c9bc6f3897e132304faf1b40c3cf1f47474.zip
Refcounting in allocations.
Change-Id: Ida2dfb404b2cd832e622d981d73a938d5bc5b821
Diffstat (limited to 'rsComponent.cpp')
-rw-r--r--rsComponent.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/rsComponent.cpp b/rsComponent.cpp
index 8e509ad7..fbaa75f6 100644
--- a/rsComponent.cpp
+++ b/rsComponent.cpp
@@ -161,6 +161,10 @@ void Component::set(RsDataType dt, RsDataKind dk, bool norm, uint32_t vecSize)
mBits = mTypeBits * mVectorSize;
}
+bool Component::isReference() const
+{
+ return (mType >= RS_TYPE_ELEMENT);
+}