summaryrefslogtreecommitdiffstats
path: root/libs/rs/rsContextHostStub.h
diff options
context:
space:
mode:
Diffstat (limited to 'libs/rs/rsContextHostStub.h')
-rw-r--r--libs/rs/rsContextHostStub.h48
1 files changed, 6 insertions, 42 deletions
diff --git a/libs/rs/rsContextHostStub.h b/libs/rs/rsContextHostStub.h
index 8cfb38b..7e8ec39 100644
--- a/libs/rs/rsContextHostStub.h
+++ b/libs/rs/rsContextHostStub.h
@@ -18,34 +18,18 @@
#define ANDROID_RS_CONTEXT_HOST_STUB_H
#include "rsUtils.h"
-//#include "rsMutex.h"
-
-//#include "rsThreadIO.h"
#include "rsType.h"
-#include "rsMatrix.h"
#include "rsAllocation.h"
#include "rsMesh.h"
-//#include "rsDevice.h"
-#include "rsScriptC.h"
#include "rsAllocation.h"
-#include "rsAdapter.h"
-#include "rsSampler.h"
-#include "rsProgramFragment.h"
-#include "rsProgramStore.h"
-#include "rsProgramRaster.h"
-#include "rsProgramVertex.h"
-#include "rsShaderCache.h"
-#include "rsVertexArray.h"
-
-//#include "rsgApiStructs.h"
-//#include "rsLocklessFifo.h"
-
-//#include <ui/egl/android_natives.h>
// ---------------------------------------------------------------------------
namespace android {
namespace renderscript {
+#define CHECK_OBJ(o)
+#define CHECK_OBJ_OR_NULL(o)
+
class Device;
class Context {
@@ -56,36 +40,13 @@ public:
~Context() {
}
-
//StructuredAllocationContext mStateAllocation;
ElementState mStateElement;
TypeState mStateType;
- SamplerState mStateSampler;
- //ProgramFragmentState mStateFragment;
- ProgramStoreState mStateFragmentStore;
- //ProgramRasterState mStateRaster;
- //ProgramVertexState mStateVertex;
- VertexArrayState mStateVertexArray;
-
- //ScriptCState mScriptC;
- ShaderCache mShaderCache;
-
RsSurfaceConfig mUserSurfaceConfig;
//bool setupCheck();
- ProgramFragment * getDefaultProgramFragment() const {
- return NULL;
- }
- ProgramVertex * getDefaultProgramVertex() const {
- return NULL;
- }
- ProgramStore * getDefaultProgramStore() const {
- return NULL;
- }
- ProgramRaster * getDefaultProgramRaster() const {
- return NULL;
- }
uint32_t getWidth() const {return 0;}
uint32_t getHeight() const {return 0;}
@@ -99,6 +60,8 @@ public:
_RS_TIMER_TOTAL
};
+ void timerSet(Timers) { }
+
bool checkVersion1_1() const {return false; }
bool checkVersion2_0() const {return false; }
@@ -157,3 +120,4 @@ protected:
}
}
#endif
+