Searched refs:meshWidth (Results 1 - 11 of 11) sorted by relevance

/frameworks/base/core/jni/android/graphics/
H A DCanvas.cpp562 const SkBitmap* bitmap, int meshWidth, int meshHeight,
566 const int ptCount = (meshWidth + 1) * (meshHeight + 1);
567 const int indexCount = meshWidth * meshHeight * 6;
608 const SkScalar dx = w / meshWidth;
618 for (int j = 0; j < meshWidth; j++) {
635 for (int j = 0; j < meshWidth; j++) {
638 *indexPtr++ = index + meshWidth + 1;
639 *indexPtr++ = index + meshWidth + 2;
642 *indexPtr++ = index + meshWidth + 2;
561 drawBitmapMesh(JNIEnv* env, jobject, SkCanvas* canvas, const SkBitmap* bitmap, int meshWidth, int meshHeight, jfloatArray jverts, int vertIndex, jintArray jcolors, int colorIndex, const SkPaint* paint) argument
/frameworks/base/graphics/java/android/graphics/
H A DCanvas.java1210 * distributed across the bitmap. There are meshWidth+1 vertices across, and
1212 * order, so that the first meshWidth+1 vertices are distributed across the
1217 * @param meshWidth The number of columns in the mesh. Nothing is drawn if
1223 * (meshWidth+1) * (meshHeight+1) * 2 + meshOffset values
1229 * there must be at least (meshWidth+1) * (meshHeight+1) +
1234 public void drawBitmapMesh(Bitmap bitmap, int meshWidth, int meshHeight, argument
1236 if ((meshWidth | meshHeight | vertOffset | colorOffset) < 0) {
1239 if (meshWidth == 0 || meshHeight == 0) {
1242 int count = (meshWidth + 1) * (meshHeight + 1);
1249 nativeDrawBitmapMesh(mNativeCanvas, bitmap.ni(), meshWidth, meshHeigh
1720 nativeDrawBitmapMesh(int nCanvas, int nBitmap, int meshWidth, int meshHeight, float[] verts, int vertOffset, int[] colors, int colorOffset, int nPaint) argument
[all...]
/frameworks/base/core/java/android/view/
H A DGLES20RecordingCanvas.java144 public void drawBitmapMesh(Bitmap bitmap, int meshWidth, int meshHeight, float[] verts, argument
146 super.drawBitmapMesh(bitmap, meshWidth, meshHeight, verts, vertOffset,
H A DGLES20Canvas.java879 public void drawBitmapMesh(Bitmap bitmap, int meshWidth, int meshHeight, float[] verts, argument
882 if (meshWidth < 0 || meshHeight < 0 || vertOffset < 0 || colorOffset < 0) {
886 if (meshWidth == 0 || meshHeight == 0) {
890 final int count = (meshWidth + 1) * (meshHeight + 1);
900 nDrawBitmapMesh(mRenderer, bitmap.mNativeBitmap, bitmap.mBuffer, meshWidth, meshHeight,
908 int meshWidth, int meshHeight, float[] verts, int vertOffset,
907 nDrawBitmapMesh(int renderer, int bitmap, byte[] buffer, int meshWidth, int meshHeight, float[] verts, int vertOffset, int[] colors, int colorOffset, int paint) argument
/frameworks/base/libs/hwui/
H A DPatch.cpp125 const float meshWidth = right - left; local
H A DDisplayListRenderer.cpp465 uint32_t meshWidth = getInt(); local
1062 uint32_t meshWidth = getInt(); local
1070 drawGlStatus |= renderer.drawBitmapMesh(bitmap, meshWidth, meshHeight, vertices,
1553 status_t DisplayListRenderer::drawBitmapMesh(SkBitmap* bitmap, int meshWidth, int meshHeight, argument
1557 addInt(meshWidth);
1559 addFloats(vertices, (meshWidth + 1) * (meshHeight + 1) * 2);
1562 addInts(colors, (meshWidth + 1) * (meshHeight + 1));
H A DOpenGLRenderer.h121 virtual status_t drawBitmapMesh(SkBitmap* bitmap, int meshWidth, int meshHeight,
H A DOpenGLRenderer.cpp1541 status_t OpenGLRenderer::drawBitmapMesh(SkBitmap* bitmap, int meshWidth, int meshHeight, argument
1560 const uint32_t count = meshWidth * meshHeight * 6;
1577 for (int32_t x = 0; x < meshWidth; x++) {
1578 uint32_t i = (y * (meshWidth + 1) + x) * 2;
1580 float u1 = float(x) / meshWidth;
1581 float u2 = float(x + 1) / meshWidth;
1585 int ax = i + (meshWidth + 1) * 2;
1591 int dx = i + (meshWidth + 1) * 2 + 2;
H A DDisplayListRenderer.h586 virtual status_t drawBitmapMesh(SkBitmap* bitmap, int meshWidth, int meshHeight,
/frameworks/base/core/jni/
H A Dandroid_view_GLES20Canvas.cpp384 jint meshWidth, jint meshHeight, jfloatArray vertices, jint offset,
392 renderer->drawBitmapMesh(bitmap, meshWidth, meshHeight, verticesArray, colorsArray, paint);
382 android_view_GLES20Canvas_drawBitmapMesh(JNIEnv* env, jobject clazz, OpenGLRenderer* renderer, SkBitmap* bitmap, jbyteArray buffer, jint meshWidth, jint meshHeight, jfloatArray vertices, jint offset, jintArray colors, jint colorOffset, SkPaint* paint) argument
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/
H A DCanvas_Delegate.java963 int meshWidth, int meshHeight, float[] verts, int vertOffset, int[] colors,
962 nativeDrawBitmapMesh(int nCanvas, int nBitmap, int meshWidth, int meshHeight, float[] verts, int vertOffset, int[] colors, int colorOffset, int nPaint) argument

Completed in 438 milliseconds