Searched defs:meshWidth (Results 1 - 7 of 7) sorted by path

/frameworks/base/core/jni/
H A Dandroid_graphics_Canvas.cpp413 jint meshWidth, jint meshHeight, jfloatArray jverts,
415 const int ptCount = (meshWidth + 1) * (meshHeight + 1);
422 get_canvas(canvasHandle)->drawBitmapMesh(bitmap, meshWidth, meshHeight,
412 drawBitmapMesh(JNIEnv* env, jobject, jlong canvasHandle, jobject jbitmap, jint meshWidth, jint meshHeight, jfloatArray jverts, jint vertIndex, jintArray jcolors, jint colorIndex, jlong paintHandle) argument
/frameworks/base/graphics/java/android/graphics/
H A DCanvas.java1515 * distributed across the bitmap. There are meshWidth+1 vertices across, and
1517 * order, so that the first meshWidth+1 vertices are distributed across the
1522 * @param meshWidth The number of columns in the mesh. Nothing is drawn if
1528 * (meshWidth+1) * (meshHeight+1) * 2 + vertOffset values
1534 * there must be at least (meshWidth+1) * (meshHeight+1) +
1539 public void drawBitmapMesh(@NonNull Bitmap bitmap, int meshWidth, int meshHeight, argument
1542 if ((meshWidth | meshHeight | vertOffset | colorOffset) < 0) {
1545 if (meshWidth == 0 || meshHeight == 0) {
1548 int count = (meshWidth + 1) * (meshHeight + 1);
1555 nativeDrawBitmapMesh(mNativeCanvasWrapper, bitmap, meshWidth, meshHeigh
2086 nativeDrawBitmapMesh(long nativeCanvas, Bitmap bitmap, int meshWidth, int meshHeight, float[] verts, int vertOffset, int[] colors, int colorOffset, long nativePaint) argument
[all...]
/frameworks/base/libs/hwui/
H A DDisplayListCanvas.cpp322 void DisplayListCanvas::drawBitmapMesh(const SkBitmap& bitmap, int meshWidth, int meshHeight, argument
324 int vertexCount = (meshWidth + 1) * (meshHeight + 1);
329 addDrawOp(new (alloc()) DrawBitmapMeshOp(refBitmap(bitmap), meshWidth, meshHeight,
H A DDisplayListOp.h759 DrawBitmapMeshOp(const SkBitmap* bitmap, int meshWidth, int meshHeight, argument
761 : DrawBoundedOp(vertices, 2 * (meshWidth + 1) * (meshHeight + 1), paint),
762 mBitmap(bitmap), mMeshWidth(meshWidth), mMeshHeight(meshHeight),
H A DOpenGLRenderer.cpp1574 void OpenGLRenderer::drawBitmapMesh(const SkBitmap* bitmap, int meshWidth, int meshHeight, argument
1585 const uint32_t elementCount = meshWidth * meshHeight * 6;
1592 uint32_t colorsCount = (meshWidth + 1) * (meshHeight + 1);
1602 for (int32_t x = 0; x < meshWidth; x++) {
1603 uint32_t i = (y * (meshWidth + 1) + x) * 2;
1605 float u1 = float(x) / meshWidth;
1606 float u2 = float(x + 1) / meshWidth;
1612 int ax = i + (meshWidth + 1) * 2;
1618 int dx = i + (meshWidth + 1) * 2 + 2;
H A DSkiaCanvas.cpp117 virtual void drawBitmapMesh(const SkBitmap& bitmap, int meshWidth, int meshHeight,
568 void SkiaCanvas::drawBitmapMesh(const SkBitmap& bitmap, int meshWidth, int meshHeight, argument
571 const int ptCount = (meshWidth + 1) * (meshHeight + 1);
572 const int indexCount = meshWidth * meshHeight * 6;
595 const SkScalar dx = w / meshWidth;
605 for (int j = 0; j < meshWidth; j++) {
622 for (int j = 0; j < meshWidth; j++) {
625 *indexPtr++ = index + meshWidth + 1;
626 *indexPtr++ = index + meshWidth + 2;
629 *indexPtr++ = index + meshWidth
[all...]
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/
H A DCanvas_Delegate.java831 int meshWidth, int meshHeight, float[] verts, int vertOffset, int[] colors,
830 nativeDrawBitmapMesh(long nCanvas, Bitmap bitmap, int meshWidth, int meshHeight, float[] verts, int vertOffset, int[] colors, int colorOffset, long nPaint) argument

Completed in 464 milliseconds