/frameworks/base/libs/hwui/ |
D | PatchCache.cpp | 79 Patch* mesh = NULL; in get() local 81 mesh = mCache.valueAt(index); in get() 84 if (!mesh) { in get() 89 mesh = new Patch(width, height, transparentQuads); in get() 90 mesh->updateColorKey(colorKey); in get() 91 mesh->copy(xDivs, yDivs); in get() 92 mesh->updateVertices(bitmapWidth, bitmapHeight, 0.0f, 0.0f, pixelWidth, pixelHeight); in get() 99 mCache.add(description, mesh); in get() 100 } else if (!mesh->matches(xDivs, yDivs, colorKey)) { in get() 102 mesh->updateVertices(bitmapWidth, bitmapHeight, 0.0f, 0.0f, pixelWidth, pixelHeight); in get() [all …]
|
D | LayerRenderer.cpp | 104 if (mLayer->mesh) { in generateMesh() 105 delete mLayer->mesh; in generateMesh() 108 mLayer->mesh = NULL; in generateMesh() 122 if (mLayer->mesh && mLayer->meshElementCount < elementCount) { in generateMesh() 123 delete mLayer->mesh; in generateMesh() 126 mLayer->mesh = NULL; in generateMesh() 131 if (!mLayer->mesh) { in generateMesh() 132 mLayer->mesh = new TextureVertex[count * 4]; in generateMesh() 142 TextureVertex* mesh = mLayer->mesh; in generateMesh() local 153 TextureVertex::set(mesh++, r->left, r->top, u1, v1); in generateMesh() [all …]
|
D | Layer.h | 45 mesh = NULL; in Layer() 57 if (mesh) delete mesh; in ~Layer() local 233 TextureVertex* mesh; member
|
D | OpenGLRenderer.cpp | 744 TextureVertex* mesh = mCaches.getRegionMesh(); in composeLayerRegion() local 767 setupDrawMesh(&mesh[0].position[0], &mesh[0].texture[0]); in composeLayerRegion() 778 TextureVertex::set(mesh++, r->left, r->top, u1, v1); in composeLayerRegion() 779 TextureVertex::set(mesh++, r->right, r->top, u2, v1); in composeLayerRegion() 780 TextureVertex::set(mesh++, r->left, r->bottom, u1, v2); in composeLayerRegion() 781 TextureVertex::set(mesh++, r->right, r->bottom, u2, v2); in composeLayerRegion() 788 mesh = mCaches.getRegionMesh(); in composeLayerRegion() 883 Vertex mesh[count * 6]; in clearLayerRegions() local 884 Vertex* vertex = mesh; in clearLayerRegions() 908 gVertexStride, &mesh[0].position[0]); in clearLayerRegions() [all …]
|
/frameworks/base/libs/rs/ |
D | rsMesh.cpp | 46 mRSC->mHal.funcs.mesh.destroy(mRSC, this); in ~Mesh() 64 mRSC->mHal.funcs.mesh.init(mRSC, this); in init() 139 Mesh *mesh = new Mesh(rsc, vertexBuffersCount, primitivesCount); in createFromStream() local 140 mesh->setName(name.string(), name.size()); in createFromStream() 142 mesh->setVertexBuffer(vertexBuffers[vCount].get(), vCount); in createFromStream() 145 mesh->setPrimitive(indexBuffers[pCount].get(), primitives[pCount], pCount); in createFromStream() 158 mesh->init(); in createFromStream() 159 mesh->uploadAll(rsc); in createFromStream() 161 return mesh; in createFromStream() 192 mRSC->mHal.funcs.mesh.draw(mRSC, this, primIndex, start, len); in renderPrimitiveRange()
|
D | rs_hal.h | 189 } mesh; member
|
/frameworks/ex/carousel/java/com/android/ex/carousel/ |
D | CarouselController.java | 167 public void setGeometryForItem(int n, Mesh mesh) { in setGeometryForItem() argument 169 mRenderScript.setGeometry(n, mesh); in setGeometryForItem() 181 Mesh mesh = mRenderScript.loadGeometry(resId); in setGeometryForItem() local 182 mRenderScript.setGeometry(n, mesh); in setGeometryForItem() 534 Mesh mesh = mRenderScript.loadGeometry(resId); in setDefaultGeometry() local 535 mRenderScript.setDefaultGeometry(mesh); in setDefaultGeometry() 565 Mesh mesh = mRenderScript.loadGeometry(resId); in setLoadingGeometry() local 566 mRenderScript.setLoadingGeometry(mesh); in setLoadingGeometry()
|
D | CarouselViewHelper.java | 128 Mesh mesh = getGeometry(id); in handleMessage() local 129 if (mesh != null) { in handleMessage() 130 mSyncHandler.obtainMessage(SET_GEOMETRY_N, id, 0, mesh).sendToTarget(); in handleMessage()
|
D | CarouselView.java | 211 public void setGeometryForItem(int n, Mesh mesh) { in setGeometryForItem() argument 212 mController.setGeometryForItem(n, mesh); in setGeometryForItem()
|
D | CarouselRS.java | 619 public void setDefaultGeometry(Mesh mesh) in setDefaultGeometry() argument 621 mScript.set_defaultGeometry(mesh); in setDefaultGeometry() 624 public void setLoadingGeometry(Mesh mesh) in setLoadingGeometry() argument 626 mScript.set_loadingGeometry(mesh); in setLoadingGeometry()
|
D | carousel.rs | 670 static void drawMesh(rs_mesh mesh) 675 rsgDrawMesh(mesh); 681 rsgDrawMesh(mesh, i);
|
/frameworks/base/libs/rs/scriptc/ |
D | rs_graphics.rsh | 293 * Draw a mesh using the current context state. The whole mesh is 301 * Draw part of a mesh using the current context state. 302 * @param ism mesh object to render 309 * Draw specified index range of part of a mesh using the current context state. 310 * @param ism mesh object to render 372 * Computes an axis aligned bounding box of a mesh object 375 rsgMeshComputeBoundingBox(rs_mesh mesh, float *minX, float *minY, float *minZ, 381 rsgMeshComputeBoundingBox(rs_mesh mesh, float3 *bBoxMin, float3 *bBoxMax) { 383 rsgMeshComputeBoundingBox(mesh, &x1, &y1, &z1, &x2, &y2, &z2);
|
D | rs_types.rsh | 135 * \brief Opaque handle to a Renderscript mesh object.
|
/frameworks/base/tests/RenderScriptTests/ModelViewer/src/com/android/modelviewer/ |
D | SimpleModelRS.java | 144 Mesh mesh = entry.getMesh(); in initMeshes() local 145 mMeshes.set_mMesh(i, mesh, false); in initMeshes() 146 mMeshes.set_mNumIndexSets(i, mesh.getPrimitiveCount(), false); in initMeshes()
|
/frameworks/base/tests/RenderScriptTests/FBOTest/src/com/android/fbotest/ |
D | FBOTestRS.java | 145 Mesh mesh = entry.getMesh(); in initMeshes() local 146 mMeshes.set_mMesh(i, mesh, false); in initMeshes() 147 mMeshes.set_mNumIndexSets(i, mesh.getPrimitiveCount(), false); in initMeshes()
|
D | FBOSyncRS.java | 146 Mesh mesh = entry.getMesh(); in initMeshes() local 147 mMeshes.set_mMesh(i, mesh, false); in initMeshes() 148 mMeshes.set_mNumIndexSets(i, mesh.getPrimitiveCount(), false); in initMeshes()
|
/frameworks/base/docs/html/guide/topics/renderscript/ |
D | graphics.jd | 24 <li><a href="#drawing-mesh">Drawing with a mesh</a></li> 358 <li><code>rsgDrawRect()</code>: Sets up a mesh and draws a rectangle to the screen. It uses the 361 <li><code>rsgDrawQuad()</code>: Sets up a mesh and draws a quadrilateral to the screen.</li> 363 <li><code>rsgDrawQuadTexCoords()</code>: Sets up a mesh and draws a textured quadrilateral to 367 <h3 id="drawing-mesh">Drawing with a mesh</h3> 376 <li>Build the mesh with the {@link android.renderscript.Mesh.TriangleMeshBuilder} class, which 381 <li>Build the mesh using an {@link android.renderscript.Allocation} or a set of {@link 383 class. This allows you to build a mesh with vertices already stored in memory, which allows you 386 <li>Build the mesh with the {@link android.renderscript.Mesh.Builder} class. This is a 387 convenience method for when you know what data types you want to use to build your mesh, but [all …]
|
D | index.jd | 56 and simplifying mesh setup.</li>
|
/frameworks/base/tests/RenderScriptTests/ShadersTest/src/com/android/shaderstest/ |
D | ShadersTestRS.java | 157 Mesh mesh = entry.getMesh(); in initMeshes() local 158 mMeshes.set_mMesh(i, mesh, false); in initMeshes() 159 mMeshes.set_mNumIndexSets(i, mesh.getPrimitiveCount(), false); in initMeshes()
|
/frameworks/base/graphics/jni/ |
D | android_renderscript_RenderScript.cpp | 1143 nMeshGetVertexBufferCount(JNIEnv *_env, jobject _this, RsContext con, jint mesh) in nMeshGetVertexBufferCount() argument 1145 LOG_API("nMeshGetVertexBufferCount, con(%p), Mesh(%p)", con, (RsMesh)mesh); in nMeshGetVertexBufferCount() 1147 rsaMeshGetVertexBufferCount(con, (RsMesh)mesh, &vtxCount); in nMeshGetVertexBufferCount() 1152 nMeshGetIndexCount(JNIEnv *_env, jobject _this, RsContext con, jint mesh) in nMeshGetIndexCount() argument 1154 LOG_API("nMeshGetIndexCount, con(%p), Mesh(%p)", con, (RsMesh)mesh); in nMeshGetIndexCount() 1156 rsaMeshGetIndexCount(con, (RsMesh)mesh, &idxCount); in nMeshGetIndexCount() 1161 nMeshGetVertices(JNIEnv *_env, jobject _this, RsContext con, jint mesh, jintArray _ids, int numVtxI… in nMeshGetVertices() argument 1163 LOG_API("nMeshGetVertices, con(%p), Mesh(%p)", con, (RsMesh)mesh); in nMeshGetVertices() 1166 rsaMeshGetVertices(con, (RsMesh)mesh, allocs, (uint32_t)numVtxIDs); in nMeshGetVertices() 1176 nMeshGetIndices(JNIEnv *_env, jobject _this, RsContext con, jint mesh, jintArray _idxIds, jintArray… in nMeshGetIndices() argument [all …]
|