diff options
author | Alex Sakhartchouk <alexst@google.com> | 2011-12-16 09:44:26 -0800 |
---|---|---|
committer | Alex Sakhartchouk <alexst@google.com> | 2011-12-16 09:44:26 -0800 |
commit | f5d8ac7cc35747ef7285ccc196f616b96229def9 (patch) | |
tree | 8137188ec4d463d582af117aa1061217384c77f5 /tests/RenderScriptTests/SceneGraph/src | |
parent | b47fd2955f93c52e9329cd47dc3252b23ac7eb9f (diff) | |
download | frameworks_base-f5d8ac7cc35747ef7285ccc196f616b96229def9.zip frameworks_base-f5d8ac7cc35747ef7285ccc196f616b96229def9.tar.gz frameworks_base-f5d8ac7cc35747ef7285ccc196f616b96229def9.tar.bz2 |
Element getters.
Change-Id: Ibe570464557eeecad108b4d3cb8f02fad13943de
Diffstat (limited to 'tests/RenderScriptTests/SceneGraph/src')
-rw-r--r-- | tests/RenderScriptTests/SceneGraph/src/com/android/scenegraph/render.rs | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/tests/RenderScriptTests/SceneGraph/src/com/android/scenegraph/render.rs b/tests/RenderScriptTests/SceneGraph/src/com/android/scenegraph/render.rs index 4b85d72..8187fbc 100644 --- a/tests/RenderScriptTests/SceneGraph/src/com/android/scenegraph/render.rs +++ b/tests/RenderScriptTests/SceneGraph/src/com/android/scenegraph/render.rs @@ -150,8 +150,14 @@ static void sortToBucket(SgRenderable *obj) { } const SgRenderState *renderState = (const SgRenderState *)rsGetElementAt(obj->render_state, 0); if (rsIsObject(renderState->ps)) { - if ((rsgProgramStoreGetBlendSrcFunc(renderState->ps) == RS_BLEND_SRC_ONE) && - (rsgProgramStoreGetBlendDstFunc(renderState->ps) == RS_BLEND_DST_ZERO)) { +#define MR1_API +#ifndef MR1_API + bool isOpaque = (rsgProgramStoreGetBlendSrcFunc(renderState->ps) == RS_BLEND_SRC_ONE) && + (rsgProgramStoreGetBlendDstFunc(renderState->ps) == RS_BLEND_DST_ZERO); +#else + bool isOpaque = false; +#endif + if (isOpaque) { gFrontToBack[gFrontToBackCount++] = (uint32_t)obj; } else { gBackToFront[gBackToFrontCount++] = (uint32_t)obj; |