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

/frameworks/base/libs/hwui/
H A DSkiaCanvas.cpp144 virtual void drawBitmapMesh(const SkBitmap& bitmap, int meshWidth, int meshHeight,
647 void SkiaCanvas::drawBitmapMesh(const SkBitmap& bitmap, int meshWidth, int meshHeight, argument
650 const int ptCount = (meshWidth + 1) * (meshHeight + 1);
651 const int indexCount = meshWidth * meshHeight * 6;
674 const SkScalar dx = w / meshWidth;
684 for (int j = 0; j < meshWidth; j++) {
701 for (int j = 0; j < meshWidth; j++) {
704 *indexPtr++ = index + meshWidth + 1;
705 *indexPtr++ = index + meshWidth + 2;
708 *indexPtr++ = index + meshWidth
[all...]
H A DRecordedOp.h224 BitmapMeshOp(BASE_PARAMS, const SkBitmap* bitmap, int meshWidth, int meshHeight, argument
228 , meshWidth(meshWidth)
233 const int meshWidth; member in struct:android::uirenderer::BitmapMeshOp
H A DBakedOpDispatcher.cpp446 const uint32_t elementCount = op.meshWidth * op.meshHeight * 6;
454 uint32_t colorsCount = (op.meshWidth + 1) * (op.meshHeight + 1);
464 for (int32_t x = 0; x < op.meshWidth; x++) {
465 uint32_t i = (y * (op.meshWidth + 1) + x) * 2;
467 float u1 = float(x) / op.meshWidth;
468 float u2 = float(x + 1) / op.meshWidth;
474 int ax = i + (op.meshWidth + 1) * 2;
480 int dx = i + (op.meshWidth + 1) * 2 + 2;
H A DOpenGLRenderer.cpp1511 void OpenGLRenderer::drawBitmapMesh(const SkBitmap* bitmap, int meshWidth, int meshHeight, argument
1522 const uint32_t elementCount = meshWidth * meshHeight * 6;
1529 uint32_t colorsCount = (meshWidth + 1) * (meshHeight + 1);
1539 for (int32_t x = 0; x < meshWidth; x++) {
1540 uint32_t i = (y * (meshWidth + 1) + x) * 2;
1542 float u1 = float(x) / meshWidth;
1543 float u2 = float(x + 1) / meshWidth;
1549 int ax = i + (meshWidth + 1) * 2;
1555 int dx = i + (meshWidth + 1) * 2 + 2;
H A DDisplayListCanvas.cpp312 void DisplayListCanvas::drawBitmapMesh(const SkBitmap& bitmap, int meshWidth, int meshHeight, argument
314 int vertexCount = (meshWidth + 1) * (meshHeight + 1);
319 addDrawOp(new (alloc()) DrawBitmapMeshOp(refBitmap(bitmap), meshWidth, meshHeight,
H A DRecordingCanvas.cpp505 void RecordingCanvas::drawBitmapMesh(const SkBitmap& bitmap, int meshWidth, int meshHeight, argument
507 int vertexCount = (meshWidth + 1) * (meshHeight + 1);
512 refPaint(paint), refBitmap(bitmap), meshWidth, meshHeight, local
H A DDisplayListCanvas.h204 virtual void drawBitmapMesh(const SkBitmap& bitmap, int meshWidth, int meshHeight,
H A DRecordingCanvas.h185 virtual void drawBitmapMesh(const SkBitmap& bitmap, int meshWidth, int meshHeight,
H A DDisplayListOp.h741 DrawBitmapMeshOp(const SkBitmap* bitmap, int meshWidth, int meshHeight, argument
743 : DrawBoundedOp(vertices, 2 * (meshWidth + 1) * (meshHeight + 1), paint),
744 mBitmap(bitmap), mMeshWidth(meshWidth), mMeshHeight(meshHeight),
H A DOpenGLRenderer.h175 void drawBitmapMesh(const SkBitmap* bitmap, int meshWidth, int meshHeight,
/frameworks/base/graphics/java/android/graphics/
H A DCanvas.java1526 * distributed across the bitmap. There are meshWidth+1 vertices across, and
1528 * order, so that the first meshWidth+1 vertices are distributed across the
1533 * @param meshWidth The number of columns in the mesh. Nothing is drawn if
1539 * (meshWidth+1) * (meshHeight+1) * 2 + vertOffset values
1545 * there must be at least (meshWidth+1) * (meshHeight+1) +
1550 public void drawBitmapMesh(@NonNull Bitmap bitmap, int meshWidth, int meshHeight, argument
1553 if ((meshWidth | meshHeight | vertOffset | colorOffset) < 0) {
1556 if (meshWidth == 0 || meshHeight == 0) {
1559 int count = (meshWidth + 1) * (meshHeight + 1);
1566 nativeDrawBitmapMesh(mNativeCanvasWrapper, bitmap, meshWidth, meshHeigh
2107 nativeDrawBitmapMesh(long nativeCanvas, Bitmap bitmap, int meshWidth, int meshHeight, float[] verts, int vertOffset, int[] colors, int colorOffset, long nativePaint) argument
[all...]
/frameworks/base/libs/hwui/hwui/
H A DCanvas.h205 virtual void drawBitmapMesh(const SkBitmap& bitmap, int meshWidth, int meshHeight,
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/graphics/
H A DNopCanvas.java239 public void drawBitmapMesh(Bitmap bitmap, int meshWidth, int meshHeight, float[] verts, argument
/frameworks/base/core/jni/
H A Dandroid_graphics_Canvas.cpp464 jint meshWidth, jint meshHeight, jfloatArray jverts,
466 const int ptCount = (meshWidth + 1) * (meshHeight + 1);
473 get_canvas(canvasHandle)->drawBitmapMesh(bitmap, meshWidth, meshHeight,
463 drawBitmapMesh(JNIEnv* env, jobject, jlong canvasHandle, jobject jbitmap, jint meshWidth, jint meshHeight, jfloatArray jverts, jint vertIndex, jintArray jcolors, jint colorIndex, jlong paintHandle) argument
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/
H A DCanvas_Delegate.java919 int meshWidth, int meshHeight, float[] verts, int vertOffset, int[] colors,
918 nativeDrawBitmapMesh(long nCanvas, Bitmap bitmap, int meshWidth, int meshHeight, float[] verts, int vertOffset, int[] colors, int colorOffset, long nPaint) argument

Completed in 3364 milliseconds