summaryrefslogtreecommitdiff
path: root/rsProgramRaster.h
diff options
context:
space:
mode:
authorAlex Sakhartchouk <alexst@google.com>2011-09-23 17:05:04 -0700
committerAlex Sakhartchouk <alexst@google.com>2011-10-15 09:33:05 -0700
commit407f8ca5a1cd2269dba356f40ab32a5ff934a6a2 (patch)
treef59147545bd39300b0d82fdc70280f2e64571a56 /rsProgramRaster.h
parent881b4da237e98f99d44b8c1951ff10597381e272 (diff)
downloadrs-407f8ca5a1cd2269dba356f40ab32a5ff934a6a2.tar.gz
Adding getter functions for script side RS objects.
Multiproject change involving on device linker Change-Id: I321e8caa6ca23b3fe2c96c78cdcfc15e51f88823
Diffstat (limited to 'rsProgramRaster.h')
-rw-r--r--rsProgramRaster.h25
1 files changed, 16 insertions, 9 deletions
diff --git a/rsProgramRaster.h b/rsProgramRaster.h
index 20af30a1..c552ea30 100644
--- a/rsProgramRaster.h
+++ b/rsProgramRaster.h
@@ -24,17 +24,16 @@ namespace android {
namespace renderscript {
class ProgramRasterState;
-
+/*****************************************************************************
+ * 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 ProgramRaster : public ProgramBase {
public:
- virtual void setup(const Context *, ProgramRasterState *);
- virtual void serialize(OStream *stream) const;
- virtual RsA3DClassID getClassId() const { return RS_A3D_CLASS_ID_PROGRAM_RASTER; }
- static ProgramRaster *createFromStream(Context *rsc, IStream *stream);
-
- static ObjectBaseRef<ProgramRaster> getProgramRaster(Context *rsc,
- bool pointSprite,
- RsCullMode cull);
struct Hal {
mutable void *drv;
@@ -46,6 +45,14 @@ public:
};
Hal mHal;
+ virtual void setup(const Context *, ProgramRasterState *);
+ virtual void serialize(OStream *stream) const;
+ virtual RsA3DClassID getClassId() const { return RS_A3D_CLASS_ID_PROGRAM_RASTER; }
+ static ProgramRaster *createFromStream(Context *rsc, IStream *stream);
+
+ static ObjectBaseRef<ProgramRaster> getProgramRaster(Context *rsc,
+ bool pointSprite,
+ RsCullMode cull);
protected:
virtual void preDestroy() const;
virtual ~ProgramRaster();