summaryrefslogtreecommitdiffstats
path: root/libs/rs/rsType.cpp
diff options
context:
space:
mode:
authorAlex Sakhartchouk <alexst@google.com>2010-10-27 14:10:07 -0700
committerAlex Sakhartchouk <alexst@google.com>2010-10-27 14:10:07 -0700
commit581cc64028e8b8f66cec8105bf530b16d5fb34eb (patch)
tree82d5b43ecb850ffa7b0dede58c86032fcc066d54 /libs/rs/rsType.cpp
parent0424d69d484dfc25c73f6557199cfbb7aaaeb043 (diff)
downloadframeworks_base-581cc64028e8b8f66cec8105bf530b16d5fb34eb.zip
frameworks_base-581cc64028e8b8f66cec8105bf530b16d5fb34eb.tar.gz
frameworks_base-581cc64028e8b8f66cec8105bf530b16d5fb34eb.tar.bz2
Adding nvidia extension for limited npot support.
Updating a3d loading to be async. Change-Id: I4be71d2002b9ad6ab8896d63e625f031e6b7ea6c
Diffstat (limited to 'libs/rs/rsType.cpp')
-rw-r--r--libs/rs/rsType.cpp32
1 files changed, 15 insertions, 17 deletions
diff --git a/libs/rs/rsType.cpp b/libs/rs/rsType.cpp
index 7ef2464..caaa9f5 100644
--- a/libs/rs/rsType.cpp
+++ b/libs/rs/rsType.cpp
@@ -374,23 +374,6 @@ Type * Type::cloneAndResize2D(Context *rsc, uint32_t dimX, uint32_t dimY) const
namespace android {
namespace renderscript {
-void rsi_TypeGetNativeData(Context *rsc, RsType type, uint32_t *typeData, uint32_t typeDataSize)
-{
- rsAssert(typeDataSize == 6);
- // Pack the data in the follofing way mDimX; mDimY; mDimZ;
- // mDimLOD; mDimFaces; mElement; into typeData
- Type *t = static_cast<Type *>(type);
-
- (*typeData++) = t->getDimX();
- (*typeData++) = t->getDimY();
- (*typeData++) = t->getDimZ();
- (*typeData++) = t->getDimLOD();
- (*typeData++) = t->getDimFaces() ? 1 : 0;
- (*typeData++) = (uint32_t)t->getElement();
- t->getElement()->incUserRef();
-}
-
-
}
}
@@ -424,3 +407,18 @@ RsType rsaTypeCreate(RsContext con, RsElement _e, uint32_t dimCount,
return Type::getType(rsc, e, dimX, dimY, dimZ, dimLOD, dimFaces);
}
+void rsaTypeGetNativeData(RsContext con, RsType type, uint32_t *typeData, uint32_t typeDataSize)
+{
+ rsAssert(typeDataSize == 6);
+ // Pack the data in the follofing way mDimX; mDimY; mDimZ;
+ // mDimLOD; mDimFaces; mElement; into typeData
+ Type *t = static_cast<Type *>(type);
+
+ (*typeData++) = t->getDimX();
+ (*typeData++) = t->getDimY();
+ (*typeData++) = t->getDimZ();
+ (*typeData++) = t->getDimLOD();
+ (*typeData++) = t->getDimFaces() ? 1 : 0;
+ (*typeData++) = (uint32_t)t->getElement();
+ t->getElement()->incUserRef();
+}