/frameworks/base/libs/hwui/ |
H A D | DisplayListRenderer.cpp | 239 status_t DisplayListRenderer::drawBitmapMesh(const SkBitmap* bitmap, int meshWidth, int meshHeight, argument 241 int vertexCount = (meshWidth + 1) * (meshHeight + 1); 247 addDrawOp(new (alloc()) DrawBitmapMeshOp(bitmap, meshWidth, meshHeight,
|
H A D | DisplayListOp.h | 806 DrawBitmapMeshOp(const SkBitmap* bitmap, int meshWidth, int meshHeight, argument 808 : DrawBoundedOp(vertices, 2 * (meshWidth + 1) * (meshHeight + 1), paint), 809 mBitmap(bitmap), mMeshWidth(meshWidth), mMeshHeight(meshHeight),
|
H A D | OpenGLRenderer.cpp | 2030 status_t OpenGLRenderer::drawBitmapMesh(const SkBitmap* bitmap, int meshWidth, int meshHeight, argument 2044 const uint32_t count = meshWidth * meshHeight * 6; 2052 uint32_t colorsCount = (meshWidth + 1) * (meshHeight + 1); 2064 for (int32_t x = 0; x < meshWidth; x++) { 2065 uint32_t i = (y * (meshWidth + 1) + x) * 2; 2067 float u1 = float(x) / meshWidth; 2068 float u2 = float(x + 1) / meshWidth; 2074 int ax = i + (meshWidth + 1) * 2; 2080 int dx = i + (meshWidth + 1) * 2 + 2;
|
/frameworks/base/core/java/android/view/ |
H A D | GLES20Canvas.java | 681 public void drawBitmapMesh(Bitmap bitmap, int meshWidth, int meshHeight, float[] verts, argument 684 if (meshWidth < 0 || meshHeight < 0 || vertOffset < 0 || colorOffset < 0) { 688 if (meshWidth == 0 || meshHeight == 0) { 692 final int count = (meshWidth + 1) * (meshHeight + 1); 700 nDrawBitmapMesh(mRenderer, bitmap.mNativeBitmap, meshWidth, meshHeight, 705 int meshWidth, int meshHeight, float[] verts, int vertOffset, 704 nDrawBitmapMesh(long renderer, long bitmap, int meshWidth, int meshHeight, float[] verts, int vertOffset, int[] colors, int colorOffset, long paint) argument
|
/frameworks/base/core/jni/android/graphics/ |
H A D | SkiaCanvas.cpp | 116 virtual void drawBitmapMesh(const SkBitmap& bitmap, int meshWidth, int meshHeight, 576 void SkiaCanvas::drawBitmapMesh(const SkBitmap& bitmap, int meshWidth, int meshHeight, argument 579 const int ptCount = (meshWidth + 1) * (meshHeight + 1); 580 const int indexCount = meshWidth * meshHeight * 6; 603 const SkScalar dx = w / meshWidth; 613 for (int j = 0; j < meshWidth; j++) { 630 for (int j = 0; j < meshWidth; j++) { 633 *indexPtr++ = index + meshWidth + 1; 634 *indexPtr++ = index + meshWidth + 2; 637 *indexPtr++ = index + meshWidth [all...] |
/frameworks/base/core/jni/ |
H A D | android_graphics_Canvas.cpp | 399 jint meshWidth, jint meshHeight, jfloatArray jverts, 401 const int ptCount = (meshWidth + 1) * (meshHeight + 1); 407 get_canvas(canvasHandle)->drawBitmapMesh(*bitmap, meshWidth, meshHeight, 398 drawBitmapMesh(JNIEnv* env, jobject, jlong canvasHandle, jlong bitmapHandle, jint meshWidth, jint meshHeight, jfloatArray jverts, jint vertIndex, jintArray jcolors, jint colorIndex, jlong paintHandle) argument
|
H A D | android_view_GLES20Canvas.cpp | 422 jlong rendererPtr, jlong bitmapPtr, jint meshWidth, jint meshHeight, 431 renderer->drawBitmapMesh(bitmap, meshWidth, meshHeight, verticesArray, colorsArray, paint); 421 android_view_GLES20Canvas_drawBitmapMesh(JNIEnv* env, jobject clazz, jlong rendererPtr, jlong bitmapPtr, jint meshWidth, jint meshHeight, jfloatArray vertices, jint offset, jintArray colors, jint colorOffset, jlong paintPtr) argument
|
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/ |
H A D | Canvas_Delegate.java | 825 int meshWidth, int meshHeight, float[] verts, int vertOffset, int[] colors, 824 nativeDrawBitmapMesh(long nCanvas, long nBitmap, int meshWidth, int meshHeight, float[] verts, int vertOffset, int[] colors, int colorOffset, long nPaint) argument
|
/frameworks/base/graphics/java/android/graphics/ |
H A D | Canvas.java | 1527 * distributed across the bitmap. There are meshWidth+1 vertices across, and 1529 * order, so that the first meshWidth+1 vertices are distributed across the 1534 * @param meshWidth The number of columns in the mesh. Nothing is drawn if 1540 * (meshWidth+1) * (meshHeight+1) * 2 + vertOffset values 1546 * there must be at least (meshWidth+1) * (meshHeight+1) + 1551 public void drawBitmapMesh(@NonNull Bitmap bitmap, int meshWidth, int meshHeight, argument 1554 if ((meshWidth | meshHeight | vertOffset | colorOffset) < 0) { 1557 if (meshWidth == 0 || meshHeight == 0) { 1560 int count = (meshWidth + 1) * (meshHeight + 1); 1567 nativeDrawBitmapMesh(mNativeCanvasWrapper, bitmap.ni(), meshWidth, meshHeigh 2069 nativeDrawBitmapMesh(long nativeCanvas, long nativeBitmap, int meshWidth, int meshHeight, float[] verts, int vertOffset, int[] colors, int colorOffset, long nativePaint) argument [all...] |