/frameworks/rs/driver/runtime/ |
H A D | rs_mesh.c | 12 Mesh_t *mesh = (Mesh_t *)m.p; local 13 if (mesh == NULL) { 16 return mesh->mHal.state.vertexBuffersCount; 21 Mesh_t *mesh = (Mesh_t *)m.p; local 22 if (mesh == NULL) { 25 return mesh->mHal.state.primitivesCount; 30 Mesh_t *mesh = (Mesh_t *)m.p; local 31 if (mesh == NULL || index >= mesh->mHal.state.vertexBuffersCount) { 35 rs_allocation returnAlloc = {mesh 43 Mesh_t *mesh = (Mesh_t *)m.p; local 56 Mesh_t *mesh = (Mesh_t *)m.p; local [all...] |
/frameworks/base/libs/hwui/ |
H A D | PatchCache.cpp | 163 * Sets the mesh's offsets and copies its associated vertices into 164 * the mesh buffer (VBO). 179 // Find a block where we can fit the mesh 183 // The mesh fits 200 // Copy the 9patch mesh in the VBO 230 const Patch* mesh = mCache.get(description); local 232 if (!mesh) { 248 return mesh;
|
H A D | Glop.h | 40 * are enabled/disabled dynamically based on mesh content. 68 // Canvas transform isn't applied to the mesh at draw time, 77 * Includes all of the mesh, fill, and GL state required to perform 116 } mesh; member in struct:android::uirenderer::Glop 144 // modelView transform, accounting for delta between mesh transform and content of the mesh 145 // often represents x/y offsets within command, or scaling for mesh unit size
|
H A D | GlopBuilder.cpp | 76 mOutGlop->mesh.primitiveMode = GL_TRIANGLES; 77 mOutGlop->mesh.indices = {mRenderState.meshState().getQuadListIBO(), nullptr}; 78 mOutGlop->mesh.vertices = {vbo, VertexAttribFlags::TextureCoord, 81 mOutGlop->mesh.elementCount = elementCount; 88 mOutGlop->mesh.primitiveMode = GL_TRIANGLE_STRIP; 89 mOutGlop->mesh.indices = {0, nullptr}; 90 mOutGlop->mesh.vertices = {mRenderState.meshState().getUnitQuadVBO(), 96 mOutGlop->mesh.elementCount = 4; 108 mOutGlop->mesh.primitiveMode = GL_TRIANGLE_STRIP; 109 mOutGlop->mesh 652 const Glop::Mesh& mesh = glop.mesh; local [all...] |
H A D | BakedOpDispatcher.cpp | 94 // of vertices we need in the new mesh 100 // TODO: cache mesh lookups 113 // Create a mesh that contains the transformed vertices for all the 121 // TODO: cache mesh lookups 273 // the mesh is generated with the inverse transform (in the case of scale, 274 // the mesh is generated at 1.0 / scale for instance.) This allows us to 443 std::unique_ptr<ColorTextureVertex[]> mesh(new ColorTextureVertex[elementCount]); 444 ColorTextureVertex* vertex = &mesh[0]; 492 .setMeshColoredTexturedMesh(mesh.get(), elementCount) 591 const Patch* mesh local [all...] |
/frameworks/base/libs/hwui/renderstate/ |
H A D | OffscreenBufferPool.cpp | 83 TextureVertex* mesh = &meshVector[0]; local 92 TextureVertex::set(mesh++, r->left, r->top, u1, v1); 93 TextureVertex::set(mesh++, r->right, r->top, u2, v1); 94 TextureVertex::set(mesh++, r->left, r->bottom, u1, v2); 95 TextureVertex::set(mesh++, r->right, r->bottom, u2, v2);
|
H A D | RenderState.cpp | 247 const Glop::Mesh& mesh = glop.mesh; local 248 const Glop::Mesh::Vertices& vertices = mesh.vertices; 249 const Glop::Mesh::Indices& indices = mesh.indices; 414 GLsizei elementsCount = mesh.elementCount; 426 glDrawRangeElements(mesh.primitiveMode, 0, vertexCount - 1, drawCount, 429 glDrawElements(mesh.primitiveMode, drawCount, GL_UNSIGNED_SHORT, nullptr); 438 glDrawRangeElements(mesh.primitiveMode, 0, mesh.vertexCount - 1, 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); 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 D | rs_hal.h | 350 } mesh; member in struct:android::renderscript::__anon2032
|
/frameworks/base/libs/hwui/font/ |
H A D | CacheTexture.h | 126 TextureVertex* mesh() const { return mMesh; } function in class:android::uirenderer::CacheTexture 137 TextureVertex* mesh = mMesh + mCurrentQuad * 4; local 138 TextureVertex::set(mesh++, x2, y2, u2, v2); 139 TextureVertex::set(mesh++, x3, y3, u3, v3); 140 TextureVertex::set(mesh++, x1, y1, u1, v1); 141 TextureVertex::set(mesh++, x4, y4, u4, v4);
|
/frameworks/native/services/surfaceflinger/RenderEngine/ |
H A D | GLES20RenderEngine.cpp | 314 void GLES20RenderEngine::drawMesh(const Mesh& mesh) { argument 316 if (mesh.getTexCoordsSize()) { 318 glVertexAttribPointer(Program::texCoords, mesh.getTexCoordsSize(), GL_FLOAT, GL_FALSE, 319 mesh.getByteStride(), mesh.getTexCoords()); 322 glVertexAttribPointer(Program::position, mesh.getVertexSize(), GL_FLOAT, GL_FALSE, 323 mesh.getByteStride(), mesh.getPositions()); 421 glDrawArrays(mesh.getPrimitive(), 0, mesh [all...] |
/frameworks/native/services/surfaceflinger/ |
H A D | Layer.cpp | 821 void Layer::computeGeometry(const RenderArea& renderArea, Mesh& mesh, argument 848 Mesh::VertexArray<vec2> position(mesh.getPositionArray<vec2>());
|
H A D | Layer.h | 100 Mesh* mesh; member in struct:android::CompositionInfo::__anon1873 108 // The mesh used to draw the layer in GLES composition mode 320 void computeGeometry(const RenderArea& renderArea, Mesh& mesh, bool useIdentityTransform) const;
|
/frameworks/rs/driver/ |
H A D | rsdRuntimeStubs.cpp | 1064 void rsgMeshComputeBoundingBox(::rs_mesh mesh, argument 1068 rsrMeshComputeBoundingBox(rsc, (Mesh *)mesh.p, minX, minY, minZ, maxX, maxY, maxZ);
|
/frameworks/base/rs/jni/ |
H A D | android_renderscript_RenderScript.cpp | 2707 nMeshGetVertexBufferCount(JNIEnv *_env, jobject _this, jlong con, jlong mesh) argument 2710 ALOGD("nMeshGetVertexBufferCount, con(%p), Mesh(%p)", (RsContext)con, (RsMesh)mesh); 2713 rsaMeshGetVertexBufferCount((RsContext)con, (RsMesh)mesh, &vtxCount); 2718 nMeshGetIndexCount(JNIEnv *_env, jobject _this, jlong con, jlong mesh) argument 2721 ALOGD("nMeshGetIndexCount, con(%p), Mesh(%p)", (RsContext)con, (RsMesh)mesh); 2724 rsaMeshGetIndexCount((RsContext)con, (RsMesh)mesh, &idxCount); 2729 nMeshGetVertices(JNIEnv *_env, jobject _this, jlong con, jlong mesh, jlongArray _ids, jint numVtxIDs) argument 2732 ALOGD("nMeshGetVertices, con(%p), Mesh(%p)", (RsContext)con, (RsMesh)mesh); 2736 rsaMeshGetVertices((RsContext)con, (RsMesh)mesh, allocs, (uint32_t)numVtxIDs); 2747 nMeshGetIndices(JNIEnv *_env, jobject _this, jlong con, jlong mesh, jlongArra argument [all...] |