summaryrefslogtreecommitdiff
path: root/cpp/Type.cpp
diff options
context:
space:
mode:
authorTim Murray <timmurray@google.com>2013-07-17 16:50:10 -0700
committerTim Murray <timmurray@google.com>2013-07-23 16:48:41 -0700
commita423096c0d49e5cfe13a400b4323a76f89c6885c (patch)
tree287bb1663043311f450980c7f741cc7ae3fc757a /cpp/Type.cpp
parentf51f8c741dda633f525a3eeb7552bff5819a75f0 (diff)
downloadrs-a423096c0d49e5cfe13a400b4323a76f89c6885c.tar.gz
Move C++ API over to function tables rather than linking libRS directly.
Change-Id: I7841df768d5bd10fa941b3655673fd73496a8137
Diffstat (limited to 'cpp/Type.cpp')
-rw-r--r--cpp/Type.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/cpp/Type.cpp b/cpp/Type.cpp
index 312020aa..a8acde49 100644
--- a/cpp/Type.cpp
+++ b/cpp/Type.cpp
@@ -93,7 +93,7 @@ void Type::updateFromNative() {
}
sp<const Type> Type::create(sp<RS> rs, sp<const Element> e, uint32_t dimX, uint32_t dimY, uint32_t dimZ) {
- void * id = rsTypeCreate(rs->getContext(), e->getID(), dimX, dimY, dimZ, false, false, 0);
+ void * id = RS::dispatch->TypeCreate(rs->getContext(), e->getID(), dimX, dimY, dimZ, false, false, 0);
Type *t = new Type(id, rs);
t->mElement = e;
@@ -160,8 +160,8 @@ sp<const Type> Type::Builder::create() {
}
}
- void * id = rsTypeCreate(mRS->getContext(), mElement->getID(), mDimX, mDimY, mDimZ,
- mDimMipmaps, mDimFaces, 0);
+ void * id = RS::dispatch->TypeCreate(mRS->getContext(), mElement->getID(), mDimX, mDimY, mDimZ,
+ mDimMipmaps, mDimFaces, 0);
Type *t = new Type(id, mRS);
t->mElement = mElement;
t->mDimX = mDimX;