HomeSort by relevance Sort by last modified time
    Searched refs:mesh (Results 1 - 25 of 28) sorted by null

1 2

  /frameworks/base/libs/hwui/
PatchCache.cpp 79 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->matches(xDivs, yDivs, colorKey))
    [all...]
LayerRenderer.cpp 95 // in the mesh, which will in turn produce cracks when the
96 // mesh is rotated/skewed. The easiest way to fix this would
104 if (mLayer->mesh) {
105 delete mLayer->mesh;
108 mLayer->mesh = NULL;
122 if (mLayer->mesh && mLayer->meshElementCount < elementCount) {
123 delete mLayer->mesh;
126 mLayer->mesh = NULL;
131 if (!mLayer->mesh) {
132 mLayer->mesh = new TextureVertex[count * 4]
142 TextureVertex* mesh = mLayer->mesh; local
    [all...]
Layer.h 45 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
OpenGLRenderer.cpp 744 TextureVertex* mesh = mCaches.getRegionMesh(); local
767 setupDrawMesh(&mesh[0].position[0], &mesh[0].texture[0]);
778 TextureVertex::set(mesh++, r->left, r->top, u1, v1);
779 TextureVertex::set(mesh++, r->right, r->top, u2, v1);
780 TextureVertex::set(mesh++, r->left, r->bottom, u1, v2);
781 TextureVertex::set(mesh++, r->right, r->bottom, u2, v2);
788 mesh = mCaches.getRegionMesh();
883 Vertex mesh[count * 6]; local
884 Vertex* vertex = mesh;
1419 TextureVertex mesh[count]; local
1543 const Patch* mesh = mCaches.patchCache.get(bitmap->width(), bitmap->height(), local
    [all...]
  /cts/tests/tests/renderscript/src/android/renderscript/cts/
MeshTest.java 22 import android.renderscript.Mesh;
23 import android.renderscript.Mesh.Primitive;
24 import android.renderscript.Mesh.AllocationBuilder;
25 import android.renderscript.Mesh.Builder;
26 import android.renderscript.Mesh.TriangleMeshBuilder;
52 Mesh.AllocationBuilder mab;
54 mab = new Mesh.AllocationBuilder(mRS);
60 mab = new Mesh.AllocationBuilder(mRS);
67 Mesh mesh = mab.create() local
87 Mesh mesh = mb.create(); local
    [all...]
  /development/tools/a3dconvert/
ColladaLoader.cpp 86 domMeshRef mesh = geometry->getMesh(); local
87 if (mesh != NULL) {
102 domMeshRef mesh = geometry->getMesh(); local
SimpleMesh.h 45 // Adds another index set to the mesh
71 // Generates a renderscript mesh that could be used for a3d serialization
72 Mesh *getRsMesh(Context *rsc) {
124 Mesh *mesh = new Mesh(rsc, 1, mTriangleLists.size()); local
125 mesh->setName(mName.c_str());
126 mesh->setVertexBuffer(vertexAlloc, 0);
149 mesh->setPrimitive(indexAlloc, RS_PRIMITIVE_TRIANGLE, pCount);
152 return mesh;
    [all...]
ObjLoader.h 96 uint32_t reIndexGeometryPrim(ObjMesh &mesh, PrimitiveVtx &prim);
ObjLoader.cpp 135 // push it to our current mesh
143 // start a new mesh if we have some faces
144 // accumulated on the current mesh.
146 // but we only care to actually start a new mesh
251 uint32_t ObjLoader::reIndexGeometryPrim(ObjMesh &mesh, PrimitiveVtx &prim) {
253 std::vector<float> &mPositions = mesh.mChannels[0].mData;
254 std::vector<float> &mNormals = mesh.mChannels[1].mData;
255 std::vector<float> &mTextureCoords = mesh.mChannels[2].mData;
  /external/webkit/Tools/DumpRenderTree/TestNetscapePlugIn/Tests/win/
DrawsGradient.cpp 110 GRADIENT_TRIANGLE mesh[] = { local
117 ::GradientFill(dc, vertices, _countof(vertices), mesh, _countof(mesh), GRADIENT_FILL_TRIANGLE);
  /external/skia/src/utils/
SkNinePatch.cpp 103 struct Mesh {
140 Mesh mesh; local
204 mesh.fVerts = verts;
205 mesh.fTexs = texs;
206 mesh.fColors = NULL;
207 mesh.fIndices = NULL;
211 mesh.fIndices = g3x3Indices;
215 mesh.fIndices = indices;
247 mesh.fVerts, mesh.fTexs, mesh.fColors, NULL
    [all...]
  /frameworks/base/libs/rs/
rsMesh.cpp 22 Mesh::Mesh(Context *rsc) : ObjectBase(rsc) {
31 Mesh::Mesh(Context *rsc,
44 Mesh::~Mesh() {
46 mRSC->mHal.funcs.mesh.destroy(mRSC, this);
62 void Mesh::init() {
64 mRSC->mHal.funcs.mesh.init(mRSC, this);
68 void Mesh::serialize(OStream *stream) const
139 Mesh *mesh = new Mesh(rsc, vertexBuffersCount, primitivesCount); local
    [all...]
rs_hal.h 37 class Mesh;
186 bool (*init)(const Context *rsc, const Mesh *m);
187 void (*draw)(const Context *rsc, const Mesh *m, uint32_t primIndex, uint32_t start, uint32_t len);
188 void (*destroy)(const Context *rsc, const Mesh *m);
189 } mesh; member in struct:android::renderscript::__anon14567
  /prebuilt/sdk/14/renderscript/include/
rs_graphics.rsh 286 * Draw a mesh using the current context state. The whole mesh is
294 * Draw part of a mesh using the current context state.
295 * @param ism mesh object to render
302 * Draw specified index range of part of a mesh using the current context state.
303 * @param ism mesh object to render
365 * Computes an axis aligned bounding box of a mesh object
368 rsgMeshComputeBoundingBox(rs_mesh mesh, float *minX, float *minY, float *minZ,
374 rsgMeshComputeBoundingBox(rs_mesh mesh, float3 *bBoxMin, float3 *bBoxMax) {
376 rsgMeshComputeBoundingBox(mesh, &x1, &y1, &z1, &x2, &y2, &z2)
    [all...]
  /frameworks/ex/carousel/java/com/android/ex/carousel/
CarouselController.java 24 import android.renderscript.Mesh;
152 * @return the loaded mesh or null if it cannot be loaded
154 public Mesh loadGeometry(int resId) {
164 * @param mesh The geometry for that item
167 public void setGeometryForItem(int n, Mesh mesh) {
169 mRenderScript.setGeometry(n, mesh);
181 Mesh mesh = mRenderScript.loadGeometry(resId); local
182 mRenderScript.setGeometry(n, mesh);
534 Mesh mesh = mRenderScript.loadGeometry(resId); local
565 Mesh mesh = mRenderScript.loadGeometry(resId); local
    [all...]
CarouselViewHelper.java 12 import android.renderscript.Mesh;
128 Mesh mesh = getGeometry(id); local
129 if (mesh != null) {
130 mSyncHandler.obtainMessage(SET_GEOMETRY_N, id, 0, mesh).sendToTarget();
160 mCarouselView.setGeometryForItem(id, (Mesh) msg.obj);
202 public Mesh getGeometry(int id) {
CarouselView.java 25 import android.renderscript.Mesh;
200 * @return the loaded mesh or null if it cannot be loaded
202 public Mesh loadGeometry(int resId) {
209 * @param mesh
211 public void setGeometryForItem(int n, Mesh mesh) {
212 mController.setGeometryForItem(n, mesh);
  /external/llvm/test/FrontendC++/
2008-10-29-WrongOffset.cpp 194 template < class Mesh, class T, class EngineTag > class FieldEngine
198 dimensions = Mesh::dimensions
207 template < class Layout2 > FieldEngine (const Centering < Dim > &centering, const Layout2 & layout, const Mesh & mesh, int materials = 1):num_materials_m (materials), centering_m (centering),
209 guards_m (layout.externalGuards ()), mesh_m (mesh)
217 Mesh mesh_m;
221 template < class Mesh, class T,
222 class EngineTag > class SubFieldView < Field < Mesh, T, EngineTag > >
224 public:typedef Field < Mesh, T, EngineTag > Type_t;
227 template < int Dim, class Mesh, class Domain > struct NewMeshTa
    [all...]
  /frameworks/base/libs/rs/scriptc/
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)
    [all...]
  /frameworks/base/tests/RenderScriptTests/FBOTest/src/com/android/fbotest/
FBOSyncRS.java 135 if (entry != null && entry.getEntryType() == FileA3D.EntryType.MESH) {
145 if (entry != null && entry.getEntryType() == FileA3D.EntryType.MESH) {
146 Mesh mesh = entry.getMesh(); local
147 mMeshes.set_mMesh(i, mesh, false);
148 mMeshes.set_mNumIndexSets(i, mesh.getPrimitiveCount(), false);
FBOTestRS.java 134 if (entry != null && entry.getEntryType() == FileA3D.EntryType.MESH) {
144 if (entry != null && entry.getEntryType() == FileA3D.EntryType.MESH) {
145 Mesh mesh = entry.getMesh(); local
146 mMeshes.set_mMesh(i, mesh, false);
147 mMeshes.set_mNumIndexSets(i, mesh.getPrimitiveCount(), false);
  /frameworks/base/tests/RenderScriptTests/ModelViewer/src/com/android/modelviewer/
SimpleModelRS.java 133 if (entry != null && entry.getEntryType() == FileA3D.EntryType.MESH) {
143 if (entry != null && entry.getEntryType() == FileA3D.EntryType.MESH) {
144 Mesh mesh = entry.getMesh(); local
145 mMeshes.set_mMesh(i, mesh, false);
146 mMeshes.set_mNumIndexSets(i, mesh.getPrimitiveCount(), false);
  /frameworks/base/tests/RenderScriptTests/ShadersTest/src/com/android/shaderstest/
ShadersTestRS.java 25 import android.renderscript.Mesh;
146 if (entry != null && entry.getEntryType() == FileA3D.EntryType.MESH) {
156 if (entry != null && entry.getEntryType() == FileA3D.EntryType.MESH) {
157 Mesh mesh = entry.getMesh(); local
158 mMeshes.set_mMesh(i, mesh, false);
159 mMeshes.set_mNumIndexSets(i, mesh.getPrimitiveCount(), false);
  /frameworks/base/graphics/jni/
android_renderscript_RenderScript.cpp     [all...]
  /external/skia/tests/
BlitRowTest.cpp 160 struct Mesh {
164 Mesh(const SkBitmap& bm, SkPaint* paint) {
213 // cons up a mesh to draw the bitmap with
214 Mesh mesh(srcBM, &paint);
243 mesh.draw(&canvas1, &paint);

Completed in 2258 milliseconds

1 2