diff options
| author | 2010-08-09 18:13:33 -0700 | |
|---|---|---|
| committer | 2010-08-09 18:13:33 -0700 | |
| commit | b28ca96fd69be0d3d12106f81c415439d185b017 (patch) | |
| tree | 827b9e5aced31b103fdacb7d01d14fbc9f966b34 /libs/rs/rsComponent.cpp | |
| parent | 05716aa0a1f42b72e04a2f41d565f3ca6c3aea1e (diff) | |
Refcounting in allocations.
Change-Id: Ida2dfb404b2cd832e622d981d73a938d5bc5b821
Diffstat (limited to 'libs/rs/rsComponent.cpp')
| -rw-r--r-- | libs/rs/rsComponent.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libs/rs/rsComponent.cpp b/libs/rs/rsComponent.cpp index 8e509ad715d7..fbaa75f68c31 100644 --- a/libs/rs/rsComponent.cpp +++ b/libs/rs/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); +} |