blob: 91f3714045b8b87a79f3c53ec8d9553c6a5b6724 [file] [log] [blame]
Jason Samsf70b0fc82012-02-22 15:22:41 -08001/*
2 * Copyright (C) 2008-2012 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17#ifndef __ANDROID_BASE_OBJ_H__
18#define __ANDROID_BASE_OBJ_H__
19
20
21#include <pthread.h>
22#include <rs.h>
23
24#include "RenderScript.h"
25
26class BaseObj {
27protected:
28 friend class Element;
29 friend class Type;
30
31 void *mID;
32 RenderScript *mRS;
33 android::String8 mName;
34
35 void * getID() const;
36
37 BaseObj(void *id, RenderScript *rs);
38 void checkValid();
39
40public:
41
42 virtual ~BaseObj();
43 virtual void updateFromNative();
44 virtual bool equals(const BaseObj *obj);
45};
46
47#endif