Lines Matching defs:Type
30 Type::Type(Context *rsc) : ObjectBase(rsc) {
35 void Type::preDestroy() const {
44 Type::~Type() {
48 void Type::operator delete(void* ptr) {
50 Type *t = (Type*) ptr;
55 void Type::clear() {
72 void Type::compute() {
148 void Type::dumpLOGV(const char *prefix) const {
151 ALOGV("%s Type: x=%u y=%u z=%u mip=%i face=%i", prefix,
161 void Type::serialize(Context *rsc, OStream *stream) const {
176 Type *Type::createFromStream(Context *rsc, IStream *stream) {
196 Type *type = Type::getType(rsc, elem, x, y, z, lod != 0, faces !=0, 0);
203 bool Type::getIsNp2() const {
220 ObjectBaseRef<Type> Type::getTypeRef(Context *rsc, const Element *e,
223 ObjectBaseRef<Type> returnRef;
229 Type *t = stc->mTypes[ct];
243 // Type objects must use allocator specified by the driver
244 void* allocMem = rsc->mHal.funcs.allocRuntimeMem(sizeof(Type), 0);
246 rsc->setError(RS_ERROR_FATAL_DRIVER, "Couldn't allocate memory for Type");
250 Type *nt = new (allocMem) Type(rsc);
274 ObjectBaseRef<Type> Type::cloneAndResize1D(Context *rsc, uint32_t dimX) const {
279 ObjectBaseRef<Type> Type::cloneAndResize2D(Context *rsc,
287 void Type::incRefs(const void *ptr, size_t ct, size_t startOff) const {
301 void Type::decRefs(const void *ptr, size_t ct, size_t startOff) const {
317 void Type::callUpdateCacheObject(const Context *rsc, void *dstObj) const {
334 return Type::getType(rsc, e, dimX, dimY, dimZ, mipmaps, faces, yuv);
344 Type *t = static_cast<Type *>(type);