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

/frameworks/compile/libbcc/lib/Renderscript/runtime/
H A Drs_mesh.c10 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/native/services/surfaceflinger/
H A DLayerDim.cpp63 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 DLayerScreenshot.cpp145 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 DLayerBase.cpp236 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];
358 LayerMesh mesh; local
359 computeGeometry(hw, &mesh);
397 LayerMesh mesh; local
[all...]
/frameworks/base/tests/RenderScriptTests/tests/src/com/android/rs/test/
H A DUT_mesh.java27 Mesh mesh; field in class:UT_mesh
/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 DLayer.h255 * If the layer can be rendered as a mesh, this is non-null.
257 TextureVertex* mesh; member in struct:android::uirenderer::Layer
H A DLayerRenderer.cpp118 // 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 DOpenGLRenderer.cpp998 TextureVertex* mesh = mCaches.getRegionMesh(); local
1021 setupDrawMeshIndices(&mesh[0].position[0], &mesh[0].texture[0]);
1032 TextureVertex::set(mesh++, r->left, r->top, u1, v1);
1033 TextureVertex::set(mesh++, r->right, r->top, u2, v1);
1034 TextureVertex::set(mesh++, r->left, r->bottom, u1, v2);
1035 TextureVertex::set(mesh++, r->right, r->bottom, u2, v2);
1042 mesh = mCaches.getRegionMesh();
1127 Vertex mesh[count * 6]; local
1128 Vertex* vertex = mesh;
1739 TextureVertex mesh[count]; local
1887 const Patch* mesh = mCaches.patchCache.get(bitmap->width(), bitmap->height(), local
[all...]
/frameworks/base/tests/RenderScriptTests/SceneGraph/src/com/android/scenegraph/
H A DRenderable.java77 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 DrsMesh.cpp64 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 Drs_hal.h247 } mesh; member in struct:android::renderscript::__anon1555
/frameworks/support/renderscript/v8/rs_support/
H A Drs_hal.h246 } mesh; member in struct:android::renderscript::__anon1584
/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.cpp1340 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...]

Completed in 414 milliseconds