/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); 2063 for (int32_t y = 0; y < meshHeight; y++) { 2069 float v1 = float(y) / meshHeight; 2070 float v2 = float(y + 1) / meshHeight;
|
/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; 604 const SkScalar dy = h / meshHeight; 608 for (int i = 0; i <= meshHeight; i++) { 609 if (i == meshHeight) { 629 for (int i = 0; i < meshHeight; i++) {
|
/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 | 1528 * meshHeight+1 vertices down. The verts array is accessed in row-major 1536 * @param meshHeight The number of rows 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, meshHeight, 2071 int meshWidth, int meshHeight, 2069 nativeDrawBitmapMesh(long nativeCanvas, long nativeBitmap, int meshWidth, int meshHeight, float[] verts, int vertOffset, int[] colors, int colorOffset, long nativePaint) argument [all...] |