/frameworks/compile/libbcc/lib/ScriptCRT/ |
H A D | rs_mesh.c | 10 Mesh_t *mesh = (Mesh_t *)m.p; local 11 if (mesh == NULL) { 14 return mesh->mHal.state.vertexBuffersCount; 19 Mesh_t *mesh = (Mesh_t *)m.p; local 20 if (mesh == NULL) { 23 return mesh->mHal.state.primitivesCount; 28 Mesh_t *mesh = (Mesh_t *)m.p; local 29 if (mesh == NULL || index >= mesh->mHal.state.vertexBuffersCount) { 33 rs_allocation returnAlloc = {mesh 39 Mesh_t *mesh = (Mesh_t *)m.p; local 50 Mesh_t *mesh = (Mesh_t *)m.p; local [all...] |
/frameworks/base/tests/RenderScriptTests/tests/src/com/android/rs/test/ |
H A D | UT_mesh.java | 27 Mesh mesh; field in class:UT_mesh 57 ScriptC_mesh s = new ScriptC_mesh(pRS, mRes, R.raw.mesh);
|
/frameworks/base/libs/hwui/ |
H A D | PatchCache.cpp | 79 Patch* mesh = NULL; local 81 mesh = mCache.valueAt(index); 84 if (!mesh) { 85 PATCH_LOGD("New patch mesh " 89 mesh = new Patch(width, height, transparentQuads); 90 mesh->updateColorKey(colorKey); 91 mesh->copy(xDivs, yDivs); 92 mesh->updateVertices(bitmapWidth, bitmapHeight, 0.0f, 0.0f, pixelWidth, pixelHeight); 99 mCache.add(description, mesh); 100 } else if (!mesh [all...] |
H A D | LayerRenderer.cpp | 101 // in the mesh, which will in turn produce cracks when the 102 // mesh is rotated/skewed. The easiest way to fix this would 110 if (mLayer->mesh) { 111 delete mLayer->mesh; 114 mLayer->mesh = NULL; 128 if (mLayer->mesh && mLayer->meshElementCount < elementCount) { 129 delete mLayer->mesh; 132 mLayer->mesh = NULL; 137 if (!mLayer->mesh) { 138 mLayer->mesh 148 TextureVertex* mesh = mLayer->mesh; local [all...] |
H A D | Layer.h | 49 mesh = NULL; 64 if (mesh) delete mesh; 247 * If the layer can be rendered as a mesh, this is non-null. 249 TextureVertex* mesh; member in struct:android::uirenderer::Layer
|
H A D | OpenGLRenderer.cpp | 849 TextureVertex* mesh = mCaches.getRegionMesh(); local 872 setupDrawMeshIndices(&mesh[0].position[0], &mesh[0].texture[0]); 883 TextureVertex::set(mesh++, r->left, r->top, u1, v1); 884 TextureVertex::set(mesh++, r->right, r->top, u2, v1); 885 TextureVertex::set(mesh++, r->left, r->bottom, u1, v2); 886 TextureVertex::set(mesh++, r->right, r->bottom, u2, v2); 893 mesh = mCaches.getRegionMesh(); 987 Vertex mesh[count * 6]; local 988 Vertex* vertex = mesh; 1574 TextureVertex mesh[count]; local 1702 const Patch* mesh = mCaches.patchCache.get(bitmap->width(), bitmap->height(), local [all...] |
/frameworks/base/tests/RenderScriptTests/SceneGraph/src/com/android/scenegraph/ |
H A D | Renderable.java | 77 public void setMesh(Mesh mesh) { argument 78 mData.mesh = mesh; 80 mField.set_mesh(0, mData.mesh, true); 84 public void setMesh(String mesh, String indexName) { argument 85 mMeshName = mesh; 114 public void resolveMeshData(Mesh mesh) { argument 115 mData.mesh = mesh; 116 if (mData.mesh [all...] |
/frameworks/rs/ |
H A D | rsMesh.cpp | 64 mRSC->mHal.funcs.mesh.destroy(mRSC, this); 77 mRSC->mHal.funcs.mesh.init(mRSC, this); 112 ALOGE("mesh loading skipped due to invalid class id"); 150 Mesh *mesh = new Mesh(rsc, vertexBuffersCount, primitivesCount); local 151 mesh->setName(name.string(), name.size()); 153 mesh->setVertexBuffer(vertexBuffers[vCount].get(), vCount); 156 mesh->setPrimitive(indexBuffers[pCount].get(), primitives[pCount], pCount); 169 mesh->init(); 170 mesh->uploadAll(rsc); 172 return mesh; [all...] |
H A D | rs_hal.h | 208 } mesh; member in struct:android::renderscript::__anon1563
|
/frameworks/ex/carousel/java/com/android/ex/carousel/ |
H A D | CarouselController.java | 152 * @return the loaded mesh or null if it cannot be loaded 164 * @param mesh The geometry for that item 167 public void setGeometryForItem(int n, Mesh mesh) { argument 169 mRenderScript.setGeometry(n, mesh); 181 Mesh mesh = mRenderScript.loadGeometry(resId); 182 mRenderScript.setGeometry(n, mesh); 529 * @param mesh 534 Mesh mesh = mRenderScript.loadGeometry(resId); 535 mRenderScript.setDefaultGeometry(mesh); 565 Mesh mesh [all...] |
H A D | CarouselView.java | 200 * @return the loaded mesh or null if it cannot be loaded 209 * @param mesh 211 public void setGeometryForItem(int n, Mesh mesh) { argument 212 mController.setGeometryForItem(n, mesh);
|
H A D | CarouselRS.java | 619 public void setDefaultGeometry(Mesh mesh) argument 621 mScript.set_defaultGeometry(mesh); 624 public void setLoadingGeometry(Mesh mesh) argument 626 mScript.set_loadingGeometry(mesh);
|
/frameworks/base/graphics/jni/ |
H A D | android_renderscript_RenderScript.cpp | 1264 nMeshGetVertexBufferCount(JNIEnv *_env, jobject _this, RsContext con, jint mesh) argument 1266 LOG_API("nMeshGetVertexBufferCount, con(%p), Mesh(%p)", con, (RsMesh)mesh); 1268 rsaMeshGetVertexBufferCount(con, (RsMesh)mesh, &vtxCount); 1273 nMeshGetIndexCount(JNIEnv *_env, jobject _this, RsContext con, jint mesh) argument 1275 LOG_API("nMeshGetIndexCount, con(%p), Mesh(%p)", con, (RsMesh)mesh); 1277 rsaMeshGetIndexCount(con, (RsMesh)mesh, &idxCount); 1282 nMeshGetVertices(JNIEnv *_env, jobject _this, RsContext con, jint mesh, jintArray _ids, int numVtxIDs) argument 1284 LOG_API("nMeshGetVertices, con(%p), Mesh(%p)", con, (RsMesh)mesh); 1287 rsaMeshGetVertices(con, (RsMesh)mesh, allocs, (uint32_t)numVtxIDs); 1297 nMeshGetIndices(JNIEnv *_env, jobject _this, RsContext con, jint mesh, jintArra argument [all...] |