From a3b5960f6f28a81cd63abd69adcdfb5dcc05aa30 Mon Sep 17 00:00:00 2001 From: Alex Sakhartchouk Date: Fri, 28 Jan 2011 09:31:47 -0800 Subject: Making sure we can build libRS on the host for serialization. Change-Id: If0a5d77b20c0e1e2d124fa0737643a5dd1d4409a --- libs/rs/rsContextHostStub.h | 48 ++++++--------------------------------------- 1 file changed, 6 insertions(+), 42 deletions(-) (limited to 'libs/rs/rsContextHostStub.h') 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 // --------------------------------------------------------------------------- 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 + -- cgit v1.1