summaryrefslogtreecommitdiffstats
path: root/libs/rs/rsProgramRaster.h
diff options
context:
space:
mode:
authorJason Sams <rjsams@android.com>2011-04-06 11:23:54 -0700
committerJason Sams <rjsams@android.com>2011-04-06 11:23:54 -0700
commit331bf9b14b1c5c1e88f5c4092b6e24fae887fb3b (patch)
treea9472a72e2d08c45deb03741a0ff6ad3b33c0583 /libs/rs/rsProgramRaster.h
parent48f505657adba4d9156856e7d5593f23af5d5d5a (diff)
downloadframeworks_base-331bf9b14b1c5c1e88f5c4092b6e24fae887fb3b.zip
frameworks_base-331bf9b14b1c5c1e88f5c4092b6e24fae887fb3b.tar.gz
frameworks_base-331bf9b14b1c5c1e88f5c4092b6e24fae887fb3b.tar.bz2
Seperate ProgramRaster.
Cleanup ProgramRaster and ProgramStore creation. Change-Id: If25ea74355238d405340f0ccfb8117ad6e1307b7
Diffstat (limited to 'libs/rs/rsProgramRaster.h')
-rw-r--r--libs/rs/rsProgramRaster.h26
1 files changed, 17 insertions, 9 deletions
diff --git a/libs/rs/rsProgramRaster.h b/libs/rs/rsProgramRaster.h
index 7958af9..045a7c1 100644
--- a/libs/rs/rsProgramRaster.h
+++ b/libs/rs/rsProgramRaster.h
@@ -30,23 +30,31 @@ public:
ProgramRaster(Context *rsc,
bool pointSmooth,
bool lineSmooth,
- bool pointSprite);
+ bool pointSprite,
+ float lineWidth,
+ RsCullMode cull);
virtual ~ProgramRaster();
- virtual void setupGL2(const Context *, ProgramRasterState *);
+ 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);
- void setLineWidth(float w);
- void setCullMode(RsCullMode mode);
+ struct Hal {
+ mutable void *drv;
+
+ struct State {
+ bool pointSmooth;
+ bool lineSmooth;
+ bool pointSprite;
+ float lineWidth;
+ RsCullMode cull;
+ };
+ State state;
+ };
+ Hal mHal;
protected:
- bool mPointSmooth;
- bool mLineSmooth;
- bool mPointSprite;
- float mLineWidth;
- RsCullMode mCull;
};
class ProgramRasterState {