/frameworks/base/libs/hwui/ |
H A D | DisplayListRenderer.cpp | 308 status_t DisplayListRenderer::drawBitmapMesh(SkBitmap* bitmap, int meshWidth, int meshHeight, argument 310 int count = (meshWidth + 1) * (meshHeight + 1) * 2; 316 addDrawOp(new (alloc()) DrawBitmapMeshOp(bitmap, meshWidth, meshHeight,
|
H A D | DisplayListOp.h | 921 DrawBitmapMeshOp(SkBitmap* bitmap, int meshWidth, int meshHeight, argument 923 : DrawBoundedOp(vertices, 2 * (meshWidth + 1) * (meshHeight + 1), paint), 924 mBitmap(bitmap), mMeshWidth(meshWidth), mMeshHeight(meshHeight),
|
H A D | OpenGLRenderer.cpp | 2202 status_t OpenGLRenderer::drawBitmapMesh(SkBitmap* bitmap, int meshWidth, int meshHeight, argument 2216 const uint32_t count = meshWidth * meshHeight * 6; 2223 uint32_t colorsCount = (meshWidth + 1) * (meshHeight + 1); 2234 for (int32_t x = 0; x < meshWidth; x++) { 2235 uint32_t i = (y * (meshWidth + 1) + x) * 2; 2237 float u1 = float(x) / meshWidth; 2238 float u2 = float(x + 1) / meshWidth; 2244 int ax = i + (meshWidth + 1) * 2; 2250 int dx = i + (meshWidth + 1) * 2 + 2;
|
/frameworks/base/core/jni/android/graphics/ |
H A D | Canvas.cpp | 572 const SkBitmap* bitmap, int meshWidth, int meshHeight, 576 const int ptCount = (meshWidth + 1) * (meshHeight + 1); 577 const int indexCount = meshWidth * meshHeight * 6; 618 const SkScalar dx = w / meshWidth; 628 for (int j = 0; j < meshWidth; j++) { 645 for (int j = 0; j < meshWidth; j++) { 648 *indexPtr++ = index + meshWidth + 1; 649 *indexPtr++ = index + meshWidth + 2; 652 *indexPtr++ = index + meshWidth + 2; 571 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/core/jni/ |
H A D | android_view_GLES20Canvas.cpp | 435 jint meshWidth, jint meshHeight, jfloatArray vertices, jint offset, jintArray colors, 443 renderer->drawBitmapMesh(bitmap, meshWidth, meshHeight, verticesArray, colorsArray, paint); 433 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/graphics/java/android/graphics/ |
H A D | Canvas.java | 1284 * distributed across the bitmap. There are meshWidth+1 vertices across, and 1286 * order, so that the first meshWidth+1 vertices are distributed across the 1291 * @param meshWidth The number of columns in the mesh. Nothing is drawn if 1297 * (meshWidth+1) * (meshHeight+1) * 2 + vertOffset values 1303 * there must be at least (meshWidth+1) * (meshHeight+1) + 1308 public void drawBitmapMesh(Bitmap bitmap, int meshWidth, int meshHeight, argument 1310 if ((meshWidth | meshHeight | vertOffset | colorOffset) < 0) { 1313 if (meshWidth == 0 || meshHeight == 0) { 1316 int count = (meshWidth + 1) * (meshHeight + 1); 1323 nativeDrawBitmapMesh(mNativeCanvas, bitmap.ni(), meshWidth, meshHeigh 1806 nativeDrawBitmapMesh(int nCanvas, int nBitmap, int meshWidth, int meshHeight, float[] verts, int vertOffset, int[] colors, int colorOffset, int nPaint) argument [all...] |
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/ |
H A D | Canvas_Delegate.java | 957 int meshWidth, int meshHeight, float[] verts, int vertOffset, int[] colors, 956 nativeDrawBitmapMesh(int nCanvas, int nBitmap, int meshWidth, int meshHeight, float[] verts, int vertOffset, int[] colors, int colorOffset, int nPaint) argument
|
/frameworks/base/core/java/android/view/ |
H A D | GLES20Canvas.java | 945 public void drawBitmapMesh(Bitmap bitmap, int meshWidth, int meshHeight, float[] verts, argument 948 if (meshWidth < 0 || meshHeight < 0 || vertOffset < 0 || colorOffset < 0) { 952 if (meshWidth == 0 || meshHeight == 0) { 956 final int count = (meshWidth + 1) * (meshHeight + 1); 966 nDrawBitmapMesh(mRenderer, bitmap.mNativeBitmap, bitmap.mBuffer, meshWidth, meshHeight, 974 int meshWidth, int meshHeight, float[] verts, int vertOffset, 973 nDrawBitmapMesh(int renderer, int bitmap, byte[] buffer, int meshWidth, int meshHeight, float[] verts, int vertOffset, int[] colors, int colorOffset, int paint) argument
|