diff options
| author | Alex Sakhartchouk <alexst@google.com> | 2010-11-09 17:00:54 -0800 |
|---|---|---|
| committer | Alex Sakhartchouk <alexst@google.com> | 2010-11-10 11:30:51 -0800 |
| commit | afb743aca56c18beb7ab924e75cb6e070ef3e55a (patch) | |
| tree | 9c2683d418230dd7cb53e667cdd876e617bb3d27 /rsShaderCache.h | |
| parent | b60d757354880b6a711840eb35cc381cf7172246 (diff) | |
| download | android_frameworks_rs-afb743aca56c18beb7ab924e75cb6e070ef3e55a.tar.gz android_frameworks_rs-afb743aca56c18beb7ab924e75cb6e070ef3e55a.tar.bz2 android_frameworks_rs-afb743aca56c18beb7ab924e75cb6e070ef3e55a.zip | |
Code cleanup to make formatting consistent
across all the renderscript files.
Change-Id: Idf5fcc60877e44c8f074f7176e37f70b3b895a3c
Diffstat (limited to 'rsShaderCache.h')
| -rw-r--r-- | rsShaderCache.h | 20 |
1 files changed, 9 insertions, 11 deletions
diff --git a/rsShaderCache.h b/rsShaderCache.h index 6b49e5f8..35403669 100644 --- a/rsShaderCache.h +++ b/rsShaderCache.h @@ -27,8 +27,7 @@ namespace renderscript { // An element is a group of Components that occupies one cell in a structure. -class ShaderCache -{ +class ShaderCache { public: ShaderCache(); virtual ~ShaderCache(); @@ -56,12 +55,12 @@ protected: UniformQueryData(uint32_t maxName) { name = NULL; nameLength = maxName; - if(nameLength > 0 ) { + if (nameLength > 0 ) { name = new char[nameLength]; } } ~UniformQueryData() { - if(name != NULL) { + if (name != NULL) { delete[] name; name = NULL; } @@ -80,26 +79,26 @@ protected: uint32_t numFragUnis) : vtx(0), frag(0), program(0), vtxAttrCount(0), vtxAttrs(0), vtxUniforms(0), fragUniforms(0) { vtxAttrCount = numVtxAttr; - if(numVtxAttr) { + if (numVtxAttr) { vtxAttrs = new AttrData[numVtxAttr]; } - if(numVtxUnis) { + if (numVtxUnis) { vtxUniforms = new UniformData[numVtxUnis]; } - if(numFragUnis) { + if (numFragUnis) { fragUniforms = new UniformData[numFragUnis]; } } ~ProgramEntry() { - if(vtxAttrs) { + if (vtxAttrs) { delete[] vtxAttrs; vtxAttrs = NULL; } - if(vtxUniforms) { + if (vtxUniforms) { delete[] vtxUniforms; vtxUniforms = NULL; } - if(fragUniforms) { + if (fragUniforms) { delete[] fragUniforms; fragUniforms = NULL; } @@ -111,7 +110,6 @@ protected: AttrData *vtxAttrs; UniformData *vtxUniforms; UniformData *fragUniforms; - }; Vector<ProgramEntry*> mEntries; ProgramEntry *mCurrent; |
