diff options
| author | Alex Sakhartchouk <alexst@google.com> | 2011-01-31 14:53:24 -0800 |
|---|---|---|
| committer | Alex Sakhartchouk <alexst@google.com> | 2011-01-31 14:53:24 -0800 |
| commit | 77d9f4bd05b2d2a161f30c12a2248f9c97eaac42 (patch) | |
| tree | 3a709b9ac16afd941095e64fa961e4387f9175ee /rsMesh.cpp | |
| parent | 099d7d33e55afeb3399f6e8cf8d665223ca94939 (diff) | |
| download | android_frameworks_rs-77d9f4bd05b2d2a161f30c12a2248f9c97eaac42.tar.gz android_frameworks_rs-77d9f4bd05b2d2a161f30c12a2248f9c97eaac42.tar.bz2 android_frameworks_rs-77d9f4bd05b2d2a161f30c12a2248f9c97eaac42.zip | |
Cleaning up the serialization change.
Renaming the define to be more in line with what it does and removing the host stub header file.
Change-Id: Ibd3a0a6a398c7f81cc661f71e4478707fe1679ed
Diffstat (limited to 'rsMesh.cpp')
| -rw-r--r-- | rsMesh.cpp | 13 |
1 files changed, 5 insertions, 8 deletions
@@ -14,14 +14,11 @@ * limitations under the License. */ -#ifndef ANDROID_RS_BUILD_FOR_HOST #include "rsContext.h" - +#ifndef ANDROID_RS_SERIALIZE #include <GLES/gl.h> #include <GLES2/gl2.h> #include <GLES/glext.h> -#else -#include "rsContextHostStub.h" #endif using namespace android; @@ -33,7 +30,7 @@ Mesh::Mesh(Context *rsc) : ObjectBase(rsc) { mVertexBuffers = NULL; mVertexBufferCount = 0; -#ifndef ANDROID_RS_BUILD_FOR_HOST +#ifndef ANDROID_RS_SERIALIZE mAttribs = NULL; mAttribAllocationIndex = NULL; @@ -53,7 +50,7 @@ Mesh::~Mesh() { delete[] mPrimitives; } -#ifndef ANDROID_RS_BUILD_FOR_HOST +#ifndef ANDROID_RS_SERIALIZE if (mAttribs) { delete[] mAttribs; delete[] mAttribAllocationIndex; @@ -134,7 +131,7 @@ Mesh *Mesh::createFromStream(Context *rsc, IStream *stream) { } } -#ifndef ANDROID_RS_BUILD_FOR_HOST +#ifndef ANDROID_RS_SERIALIZE mesh->updateGLPrimitives(); mesh->initVertexAttribs(); mesh->uploadAll(rsc); @@ -142,7 +139,7 @@ Mesh *Mesh::createFromStream(Context *rsc, IStream *stream) { return mesh; } -#ifndef ANDROID_RS_BUILD_FOR_HOST +#ifndef ANDROID_RS_SERIALIZE bool Mesh::isValidGLComponent(const Element *elem, uint32_t fieldIdx) { // Do not create attribs for padding |
