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

/frameworks/rs/driver/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/rs/java/tests/RsTest/src/com/android/rs/test/
H A DUT_mesh.java27 Mesh mesh; field in class:UT_mesh
/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/base/libs/hwui/
H A DPatchCache.cpp168 * Sets the mesh's offsets and copies its associated vertices into
169 * the mesh buffer (VBO).
182 // Find a block where we can fit the mesh
186 // The mesh fits
203 // Copy the 9patch mesh in the VBO
229 const Patch* mesh = mCache.get(description); local
231 if (!mesh) {
256 return mesh;
H A DLayer.h277 * If the layer can be rendered as a mesh, this is non-null.
279 TextureVertex* mesh; member in struct:android::uirenderer::Layer
H A DLayerRenderer.cpp131 if (mLayer->mesh) {
132 delete[] mLayer->mesh;
133 mLayer->mesh = NULL;
152 if (mLayer->mesh && mLayer->meshElementCount < elementCount) {
153 delete[] mLayer->mesh;
154 mLayer->mesh = NULL;
157 if (!mLayer->mesh) {
158 mLayer->mesh = new TextureVertex[count * 4];
166 TextureVertex* mesh = mLayer->mesh; local
[all...]
H A DFontRenderer.cpp293 if (!cacheTexture->mesh()) {
516 TextureVertex* mesh = texture->mesh(); local
517 caches.bindPositionVertexPointer(force, &mesh[0].position[0]);
518 caches.bindTexCoordsVertexPointer(force, &mesh[0].texture[0]);
H A DOpenGLRenderer.cpp1214 // We must get (and therefore bind) the region mesh buffer
1217 TextureVertex* mesh = mCaches.getRegionMesh(); local
1239 setupDrawMeshIndices(&mesh[0].position[0], &mesh[0].texture[0]);
1250 TextureVertex::set(mesh++, r->left, r->top, u1, v1);
1251 TextureVertex::set(mesh++, r->right, r->top, u2, v1);
1252 TextureVertex::set(mesh++, r->left, r->bottom, u1, v2);
1253 TextureVertex::set(mesh++, r->right, r->bottom, u2, v2);
1261 mesh = mCaches.getRegionMesh();
1348 void OpenGLRenderer::drawIndexedQuads(Vertex* mesh, GLsize argument
1377 Vertex mesh[count * 4]; local
2218 ColorTextureVertex mesh[count]; local
2419 const Patch* mesh = mCaches.patchCache.get(entry, bitmap->width(), bitmap->height(), local
2425 drawPatch(SkBitmap* bitmap, const Patch* mesh, AssetAtlas::Entry* entry, float left, float top, float right, float bottom, SkPaint* paint) argument
3118 TextureVertex* mesh = &layer->mesh[0]; local
3346 Vertex mesh[count]; local
[all...]
/frameworks/native/services/surfaceflinger/RenderEngine/
H A DGLES11RenderEngine.cpp219 void GLES11RenderEngine::drawMesh(const Mesh& mesh) { argument
220 if (mesh.getTexCoordsSize()) {
222 glTexCoordPointer(mesh.getTexCoordsSize(),
224 mesh.getByteStride(),
225 mesh.getTexCoords());
228 glVertexPointer(mesh.getVertexSize(),
230 mesh.getByteStride(),
231 mesh.getPositions());
233 glDrawArrays(mesh.getPrimitive(), 0, mesh
[all...]
H A DGLES20RenderEngine.cpp186 void GLES20RenderEngine::drawMesh(const Mesh& mesh) { argument
190 if (mesh.getTexCoordsSize()) {
193 mesh.getTexCoordsSize(),
195 mesh.getByteStride(),
196 mesh.getTexCoords());
200 mesh.getVertexSize(),
202 mesh.getByteStride(),
203 mesh.getPositions());
205 glDrawArrays(mesh.getPrimitive(), 0, mesh
[all...]
/frameworks/rs/
H A DrsMesh.cpp64 mRSC->mHal.funcs.mesh.destroy(mRSC, this);
77 mRSC->mHal.funcs.mesh.init(mRSC, this);
110 ALOGE("mesh loading skipped due to invalid class id");
147 Mesh *mesh = new Mesh(rsc, vertexBuffersCount, primitivesCount); local
148 mesh->assignName(name);
150 mesh->setVertexBuffer(vertexBuffers[vCount].get(), vCount);
153 mesh->setPrimitive(indexBuffers[pCount].get(), primitives[pCount], pCount);
166 mesh->init();
167 mesh->uploadAll(rsc);
169 return mesh;
[all...]
H A Drs_hal.h260 } mesh; member in struct:android::renderscript::__anon1651
/frameworks/base/libs/hwui/font/
H A DCacheTexture.h141 TextureVertex* mesh() const { function in class:android::uirenderer::CacheTexture
161 TextureVertex* mesh = mMesh + mCurrentQuad * 4; local
162 TextureVertex::set(mesh++, x2, y2, u2, v2);
163 TextureVertex::set(mesh++, x3, y3, u3, v3);
164 TextureVertex::set(mesh++, x1, y1, u1, v1);
165 TextureVertex::set(mesh++, x4, y4, u4, v4);
/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.cpp1499 nMeshGetVertexBufferCount(JNIEnv *_env, jobject _this, RsContext con, jint mesh) argument
1501 LOG_API("nMeshGetVertexBufferCount, con(%p), Mesh(%p)", con, (RsMesh)mesh);
1503 rsaMeshGetVertexBufferCount(con, (RsMesh)mesh, &vtxCount);
1508 nMeshGetIndexCount(JNIEnv *_env, jobject _this, RsContext con, jint mesh) argument
1510 LOG_API("nMeshGetIndexCount, con(%p), Mesh(%p)", con, (RsMesh)mesh);
1512 rsaMeshGetIndexCount(con, (RsMesh)mesh, &idxCount);
1517 nMeshGetVertices(JNIEnv *_env, jobject _this, RsContext con, jint mesh, jintArray _ids, int numVtxIDs) argument
1519 LOG_API("nMeshGetVertices, con(%p), Mesh(%p)", con, (RsMesh)mesh);
1522 rsaMeshGetVertices(con, (RsMesh)mesh, allocs, (uint32_t)numVtxIDs);
1532 nMeshGetIndices(JNIEnv *_env, jobject _this, RsContext con, jint mesh, jintArra argument
[all...]

Completed in 456 milliseconds