diff options
author | Alex Sakhartchouk <alexst@google.com> | 2011-09-23 17:05:04 -0700 |
---|---|---|
committer | Alex Sakhartchouk <alexst@google.com> | 2011-10-15 09:33:05 -0700 |
commit | 7e6aac1533cea87739a6a672be6f87c635e84756 (patch) | |
tree | aa3926cefed6f936b86d78210632d70e8faac634 /libs/rs/rsProgramStore.h | |
parent | 708fd1a5f90483153a0ec43c8f5588141acaba0e (diff) | |
download | frameworks_base-7e6aac1533cea87739a6a672be6f87c635e84756.zip frameworks_base-7e6aac1533cea87739a6a672be6f87c635e84756.tar.gz frameworks_base-7e6aac1533cea87739a6a672be6f87c635e84756.tar.bz2 |
Adding getter functions for script side RS objects.
Multiproject change involving on device linker
Change-Id: I321e8caa6ca23b3fe2c96c78cdcfc15e51f88823
Diffstat (limited to 'libs/rs/rsProgramStore.h')
-rw-r--r-- | libs/rs/rsProgramStore.h | 35 |
1 files changed, 20 insertions, 15 deletions
diff --git a/libs/rs/rsProgramStore.h b/libs/rs/rsProgramStore.h index e21f039..9bb2795 100644 --- a/libs/rs/rsProgramStore.h +++ b/libs/rs/rsProgramStore.h @@ -25,23 +25,16 @@ namespace android { namespace renderscript { class ProgramStoreState; - +/***************************************************************************** + * CAUTION + * + * Any layout changes for this class may require a corresponding change to be + * made to frameworks/compile/libbcc/lib/ScriptCRT/rs_core.c, which contains + * a partial copy of the information below. + * + *****************************************************************************/ class ProgramStore : public ProgramBase { public: - virtual void setup(const Context *, ProgramStoreState *); - - virtual void serialize(OStream *stream) const; - virtual RsA3DClassID getClassId() const { return RS_A3D_CLASS_ID_PROGRAM_STORE; } - static ProgramStore *createFromStream(Context *rsc, IStream *stream); - static ObjectBaseRef<ProgramStore> getProgramStore(Context *, - bool colorMaskR, bool colorMaskG, - bool colorMaskB, bool colorMaskA, - bool depthMask, bool ditherEnable, - RsBlendSrcFunc srcFunc, RsBlendDstFunc destFunc, - RsDepthFunc depthFunc); - - void init(); - struct Hal { mutable void *drv; @@ -64,6 +57,18 @@ public: }; Hal mHal; + virtual void setup(const Context *, ProgramStoreState *); + + virtual void serialize(OStream *stream) const; + virtual RsA3DClassID getClassId() const { return RS_A3D_CLASS_ID_PROGRAM_STORE; } + static ProgramStore *createFromStream(Context *rsc, IStream *stream); + static ObjectBaseRef<ProgramStore> getProgramStore(Context *, + bool colorMaskR, bool colorMaskG, + bool colorMaskB, bool colorMaskA, + bool depthMask, bool ditherEnable, + RsBlendSrcFunc srcFunc, RsBlendDstFunc destFunc, + RsDepthFunc depthFunc); + void init(); protected: virtual void preDestroy() const; virtual ~ProgramStore(); |