/frameworks/compile/libbcc/lib/Renderscript/runtime/ |
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/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 | Layer.cpp | 30 mesh = NULL; 48 if (mesh) delete mesh;
|
H A D | LayerRenderer.cpp | 118 // in the mesh, which will in turn produce cracks when the 119 // mesh is rotated/skewed. The easiest way to fix this would 126 if (mLayer->mesh) { 127 delete mLayer->mesh; 130 mLayer->mesh = NULL; 144 if (mLayer->mesh && mLayer->meshElementCount < elementCount) { 145 delete mLayer->mesh; 148 mLayer->mesh = NULL; 153 if (!mLayer->mesh) { 154 mLayer->mesh 164 TextureVertex* mesh = mLayer->mesh; local [all...] |
H A D | OpenGLRenderer.cpp | 1000 TextureVertex* mesh = mCaches.getRegionMesh(); local 1023 setupDrawMeshIndices(&mesh[0].position[0], &mesh[0].texture[0]); 1034 TextureVertex::set(mesh++, r->left, r->top, u1, v1); 1035 TextureVertex::set(mesh++, r->right, r->top, u2, v1); 1036 TextureVertex::set(mesh++, r->left, r->bottom, u1, v2); 1037 TextureVertex::set(mesh++, r->right, r->bottom, u2, v2); 1044 mesh = mCaches.getRegionMesh(); 1129 Vertex mesh[count * 6]; local 1130 Vertex* vertex = mesh; 1741 TextureVertex mesh[count]; local 1889 const Patch* mesh = mCaches.patchCache.get(bitmap->width(), bitmap->height(), local [all...] |
H A D | Layer.h | 255 * If the layer can be rendered as a mesh, this is non-null. 257 TextureVertex* mesh; member in struct:android::uirenderer::Layer
|
/frameworks/native/services/surfaceflinger/ |
H A D | LayerDim.cpp | 63 LayerMesh mesh; local 64 computeGeometry(hw, &mesh); 66 glVertexPointer(2, GL_FLOAT, 0, mesh.getVertices()); 67 glDrawArrays(GL_TRIANGLE_FAN, 0, mesh.getVertexCount());
|
H A D | LayerBase.cpp | 236 void LayerBase::computeGeometry(const sp<const DisplayDevice>& hw, LayerMesh* mesh) const 245 if (mesh) { 246 tr.transform(mesh->mVertices[0], win.left, win.top); 247 tr.transform(mesh->mVertices[1], win.left, win.bottom); 248 tr.transform(mesh->mVertices[2], win.right, win.bottom); 249 tr.transform(mesh->mVertices[3], win.right, win.top); 251 mesh->mVertices[i][1] = hw_h - mesh->mVertices[i][1]; 357 LayerMesh mesh; local 358 computeGeometry(hw, &mesh); 396 LayerMesh mesh; local [all...] |
H A D | LayerScreenshot.cpp | 145 LayerMesh mesh; local 146 computeGeometry(hw, &mesh); 160 glVertexPointer(2, GL_FLOAT, 0, mesh.getVertices()); 161 glDrawArrays(GL_TRIANGLE_FAN, 0, mesh.getVertexCount());
|
H A D | LayerBase.h | 126 void computeGeometry(const sp<const DisplayDevice>& hw, LayerMesh* mesh) const;
|
/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 | 246 } mesh; member in struct:android::renderscript::__anon1555
|
/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 | CarouselViewHelper.java | 128 Mesh mesh = getGeometry(id); 129 if (mesh != null) { 130 mSyncHandler.obtainMessage(SET_GEOMETRY_N, id, 0, mesh).sendToTarget();
|
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/rs/scriptc/ |
H A D | rs_graphics.rsh | 321 * Draw a mesh using the current context state. The whole mesh is 329 * Draw part of a mesh using the current context state. 330 * @param ism mesh object to render 337 * Draw specified index range of part of a mesh using the current context state. 338 * @param ism mesh object to render 400 * Computes an axis aligned bounding box of a mesh object 403 rsgMeshComputeBoundingBox(rs_mesh mesh, float *minX, float *minY, float *minZ, 409 rsgMeshComputeBoundingBox(rs_mesh mesh, float3 *bBoxMin, float3 *bBoxMax) { 411 rsgMeshComputeBoundingBox(mesh, [all...] |
/frameworks/support/renderscript/v8/rs_support/scriptc/ |
H A D | rs_graphics.rsh | 321 * Draw a mesh using the current context state. The whole mesh is 329 * Draw part of a mesh using the current context state. 330 * @param ism mesh object to render 337 * Draw specified index range of part of a mesh using the current context state. 338 * @param ism mesh object to render 400 * Computes an axis aligned bounding box of a mesh object 403 rsgMeshComputeBoundingBox(rs_mesh mesh, float *minX, float *minY, float *minZ, 409 rsgMeshComputeBoundingBox(rs_mesh mesh, float3 *bBoxMin, float3 *bBoxMax) { 411 rsgMeshComputeBoundingBox(mesh, [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
|
/frameworks/base/tests/RenderScriptTests/FBOTest/src/com/android/fbotest/ |
H A D | FBOSyncRS.java | 146 Mesh mesh = entry.getMesh(); 147 mMeshes.set_mMesh(i, mesh, false); 148 mMeshes.set_mNumIndexSets(i, mesh.getPrimitiveCount(), false);
|
H A D | FBOTestRS.java | 145 Mesh mesh = entry.getMesh(); 146 mMeshes.set_mMesh(i, mesh, false); 147 mMeshes.set_mNumIndexSets(i, mesh.getPrimitiveCount(), false);
|
/frameworks/base/tests/RenderScriptTests/ModelViewer/src/com/android/modelviewer/ |
H A D | SimpleModelRS.java | 144 Mesh mesh = entry.getMesh(); 145 mMeshes.set_mMesh(i, mesh, false); 146 mMeshes.set_mNumIndexSets(i, mesh.getPrimitiveCount(), false);
|
/frameworks/base/tests/RenderScriptTests/ShadersTest/src/com/android/shaderstest/ |
H A D | ShadersTestRS.java | 157 Mesh mesh = entry.getMesh(); 158 mMeshes.set_mMesh(i, mesh, false); 159 mMeshes.set_mNumIndexSets(i, mesh.getPrimitiveCount(), false);
|
/frameworks/base/graphics/jni/ |
H A D | android_renderscript_RenderScript.cpp | 1340 nMeshGetVertexBufferCount(JNIEnv *_env, jobject _this, RsContext con, jint mesh) argument 1342 LOG_API("nMeshGetVertexBufferCount, con(%p), Mesh(%p)", con, (RsMesh)mesh); 1344 rsaMeshGetVertexBufferCount(con, (RsMesh)mesh, &vtxCount); 1349 nMeshGetIndexCount(JNIEnv *_env, jobject _this, RsContext con, jint mesh) argument 1351 LOG_API("nMeshGetIndexCount, con(%p), Mesh(%p)", con, (RsMesh)mesh); 1353 rsaMeshGetIndexCount(con, (RsMesh)mesh, &idxCount); 1358 nMeshGetVertices(JNIEnv *_env, jobject _this, RsContext con, jint mesh, jintArray _ids, int numVtxIDs) argument 1360 LOG_API("nMeshGetVertices, con(%p), Mesh(%p)", con, (RsMesh)mesh); 1363 rsaMeshGetVertices(con, (RsMesh)mesh, allocs, (uint32_t)numVtxIDs); 1373 nMeshGetIndices(JNIEnv *_env, jobject _this, RsContext con, jint mesh, jintArra argument [all...] |