diff options
| author | Alex Sakhartchouk <alexst@google.com> | 2011-01-28 09:31:47 -0800 |
|---|---|---|
| committer | Alex Sakhartchouk <alexst@google.com> | 2011-01-31 12:38:34 -0800 |
| commit | a3b5960f6f28a81cd63abd69adcdfb5dcc05aa30 (patch) | |
| tree | ced261c0c614263d9f8acb5bdc483324f6b25311 /libs/rs/rsContextHostStub.h | |
| parent | bd07f8e864120c183d6ef6dded1fb286a004b2a5 (diff) | |
| download | frameworks_base-a3b5960f6f28a81cd63abd69adcdfb5dcc05aa30.zip frameworks_base-a3b5960f6f28a81cd63abd69adcdfb5dcc05aa30.tar.gz frameworks_base-a3b5960f6f28a81cd63abd69adcdfb5dcc05aa30.tar.bz2 | |
Making sure we can build libRS on the host for serialization.
Change-Id: If0a5d77b20c0e1e2d124fa0737643a5dd1d4409a
Diffstat (limited to 'libs/rs/rsContextHostStub.h')
| -rw-r--r-- | libs/rs/rsContextHostStub.h | 48 |
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 + |
