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

/frameworks/base/core/jni/android/graphics/
H A DSkiaCanvas.cpp116 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/include/private/graphics/
H A DCanvas.h120 virtual void drawBitmapMesh(const SkBitmap& bitmap, int meshWidth, int meshHeight,
/frameworks/base/libs/hwui/
H A DDisplayListRenderer.cpp239 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 DRenderer.h191 virtual status_t drawBitmapMesh(const SkBitmap* bitmap, int meshWidth, int meshHeight,
H A DDisplayListRenderer.h117 virtual status_t drawBitmapMesh(const SkBitmap* bitmap, int meshWidth, int meshHeight,
H A DOpenGLRenderer.cpp2030 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;
H A DDisplayListOp.h806 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 DOpenGLRenderer.h168 virtual status_t drawBitmapMesh(const SkBitmap* bitmap, int meshWidth, int meshHeight,
/frameworks/base/core/java/android/view/
H A DGLES20Canvas.java681 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/graphics/java/android/graphics/
H A DCanvas.java1527 * 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...]
/frameworks/base/core/jni/
H A Dandroid_graphics_Canvas.cpp399 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 Dandroid_view_GLES20Canvas.cpp422 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 DCanvas_Delegate.java825 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

Completed in 4250 milliseconds