Searched defs:mesh (Results 1 - 10 of 10) sorted by relevance

/frameworks/base/libs/hwui/
H A DPatchCache.cpp79 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 DLayerRenderer.cpp101 // 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 DLayer.h45 mesh = NULL;
57 if (mesh) delete mesh;
231 * If the layer can be rendered as a mesh, this is non-null.
233 TextureVertex* mesh; member in struct:android::uirenderer::Layer
H A DOpenGLRenderer.cpp746 TextureVertex* mesh = mCaches.getRegionMesh(); local
769 setupDrawMesh(&mesh[0].position[0], &mesh[0].texture[0]);
780 TextureVertex::set(mesh++, r->left, r->top, u1, v1);
781 TextureVertex::set(mesh++, r->right, r->top, u2, v1);
782 TextureVertex::set(mesh++, r->left, r->bottom, u1, v2);
783 TextureVertex::set(mesh++, r->right, r->bottom, u2, v2);
790 mesh = mCaches.getRegionMesh();
885 Vertex mesh[count * 6]; local
886 Vertex* vertex = mesh;
1421 TextureVertex mesh[count]; local
1545 const Patch* mesh = mCaches.patchCache.get(bitmap->width(), bitmap->height(), local
[all...]
/frameworks/base/libs/rs/
H A DrsMesh.cpp62 mRSC->mHal.funcs.mesh.destroy(mRSC, this);
75 mRSC->mHal.funcs.mesh.init(mRSC, this);
110 LOGE("mesh loading skipped due to invalid class id");
148 Mesh *mesh = new Mesh(rsc, vertexBuffersCount, primitivesCount); local
149 mesh->setName(name.string(), name.size());
151 mesh->setVertexBuffer(vertexBuffers[vCount].get(), vCount);
154 mesh->setPrimitive(indexBuffers[pCount].get(), primitives[pCount], pCount);
167 mesh->init();
168 mesh->uploadAll(rsc);
170 return mesh;
[all...]
H A Drs_hal.h189 } mesh; member in struct:android::renderscript::__anon291
/frameworks/ex/carousel/java/com/android/ex/carousel/
H A DCarouselController.java152 * @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 DCarouselView.java200 * @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 DCarouselRS.java619 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 Dandroid_renderscript_RenderScript.cpp1149 nMeshGetVertexBufferCount(JNIEnv *_env, jobject _this, RsContext con, jint mesh) argument
1151 LOG_API("nMeshGetVertexBufferCount, con(%p), Mesh(%p)", con, (RsMesh)mesh);
1153 rsaMeshGetVertexBufferCount(con, (RsMesh)mesh, &vtxCount);
1158 nMeshGetIndexCount(JNIEnv *_env, jobject _this, RsContext con, jint mesh) argument
1160 LOG_API("nMeshGetIndexCount, con(%p), Mesh(%p)", con, (RsMesh)mesh);
1162 rsaMeshGetIndexCount(con, (RsMesh)mesh, &idxCount);
1167 nMeshGetVertices(JNIEnv *_env, jobject _this, RsContext con, jint mesh, jintArray _ids, int numVtxIDs) argument
1169 LOG_API("nMeshGetVertices, con(%p), Mesh(%p)", con, (RsMesh)mesh);
1172 rsaMeshGetVertices(con, (RsMesh)mesh, allocs, (uint32_t)numVtxIDs);
1182 nMeshGetIndices(JNIEnv *_env, jobject _this, RsContext con, jint mesh, jintArra argument
[all...]

Completed in 110 milliseconds