Home
last modified time | relevance | path

Searched refs:yDivs (Results 1 – 14 of 14) sorted by relevance

/frameworks/base/libs/hwui/
DPatch.cpp66 void Patch::copy(const int32_t* xDivs, const int32_t* yDivs) { in copy() argument
68 memcpy(mYDivs, yDivs, mYCount * sizeof(int32_t)); in copy()
71 void Patch::copy(const int32_t* yDivs) { in copy() argument
72 memcpy(mYDivs, yDivs, mYCount * sizeof(int32_t)); in copy()
79 bool Patch::matches(const int32_t* xDivs, const int32_t* yDivs, const uint32_t colorKey) { in matches() argument
82 copy(xDivs, yDivs); in matches()
89 copy(xDivs, yDivs); in matches()
95 if (mYDivs[i] != yDivs[i]) { in matches()
97 copy(yDivs); in matches()
DPatch.h55 void copy(const int32_t* xDivs, const int32_t* yDivs);
56 bool matches(const int32_t* xDivs, const int32_t* yDivs, const uint32_t colorKey);
75 void copy(const int32_t* yDivs);
DPatchCache.cpp55 const int32_t* xDivs, const int32_t* yDivs, const uint32_t* colors, in get() argument
91 mesh->copy(xDivs, yDivs); in get()
100 } else if (!mesh->matches(xDivs, yDivs, colorKey)) { in get()
DPatchCache.h52 const int32_t* xDivs, const int32_t* yDivs, const uint32_t* colors,
DDisplayListRenderer.cpp476 int32_t* yDivs = NULL; in output() local
483 yDivs = getInts(yDivsCount); in output()
1076 int32_t* yDivs = NULL; in replay() local
1085 yDivs = getInts(yDivsCount); in replay()
1095 drawGlStatus |= renderer.drawPatch(bitmap, xDivs, yDivs, colors, in replay()
1571 const int32_t* yDivs, const uint32_t* colors, uint32_t width, uint32_t height, in drawPatch() argument
1577 addInts(yDivs, height); in drawPatch()
DOpenGLRenderer.h123 virtual status_t drawPatch(SkBitmap* bitmap, const int32_t* xDivs, const int32_t* yDivs,
DDisplayListRenderer.h588 virtual status_t drawPatch(SkBitmap* bitmap, const int32_t* xDivs, const int32_t* yDivs,
DOpenGLRenderer.cpp1684 status_t OpenGLRenderer::drawPatch(SkBitmap* bitmap, const int32_t* xDivs, const int32_t* yDivs, in drawPatch() argument
1703 right - left, bottom - top, xDivs, yDivs, colors, width, height, numColors); in drawPatch()
/frameworks/base/tools/aapt/
DImages.cpp48 free(info9Patch.yDivs); in ~image_info()
434 vpatch, image->info9Patch.yDivs[0], image->info9Patch.yDivs[1], in get_color()
454 int32_t* yDivs = (int32_t*) malloc(maxSizeYDivs); in do_9patch() local
465 memset(yDivs, -1, maxSizeYDivs); in do_9patch()
504 if (get_vertical_ticks(image->rows, 0, H, transparent, true, &yDivs[0], in do_9patch()
505 &yDivs[1], &errorMsg, &numYDivs, true) != NO_ERROR) { in do_9patch()
506 errorPixel = yDivs[0]; in do_9patch()
550 image->info9Patch.yDivs = yDivs; in do_9patch()
561 image->info9Patch.paddingTop = yDivs[0]; in do_9patch()
562 image->info9Patch.paddingBottom = H - 2 - yDivs[1]; in do_9patch()
[all …]
/frameworks/base/core/jni/android/graphics/
DNinePatchImpl.cpp124 chunk.yDivs, chunk.numYDivs, in NinePatch_Draw()
149 ALOGV("======== ninepatch yDivs [%d,%d]\n", chunk.yDivs[0], chunk.yDivs[1]); in NinePatch_Draw()
175 const int32_t y0 = chunk.yDivs[0]; in NinePatch_Draw()
199 numStretchyYPixelsRemaining += chunk.yDivs[i + 1] - chunk.yDivs[i]; in NinePatch_Draw()
238 src.fBottom = chunk.yDivs[j]; in NinePatch_Draw()
DBitmapFactory.cpp108 chunk->yDivs[i] = int(chunk->yDivs[i] * scale + 0.5f); in scaleNinePatchChunk()
109 if (i > 0 && chunk->yDivs[i] == chunk->yDivs[i - 1]) { in scaleNinePatchChunk()
110 chunk->yDivs[i]++; in scaleNinePatchChunk()
/frameworks/base/include/androidfw/
DResourceTypes.h107 yDivs(NULL), colors(NULL) { } in Res_png_9patch()
120 int32_t* yDivs; member
/frameworks/base/libs/androidfw/
DResourceTypes.cpp142 yDivs[i] = htonl(yDivs[i]); in deviceToFile()
159 yDivs[i] = ntohl(yDivs[i]); in fileToDevice()
200 memmove(data, this->yDivs, numYDivs * sizeof(int32_t)); in serialize()
216 outData->yDivs = (int32_t*) data; in deserializeInternal()
/frameworks/base/core/jni/
Dandroid_view_GLES20Canvas.cpp408 renderer->drawPatch(bitmap, &patch->xDivs[0], &patch->yDivs[0], in android_view_GLES20Canvas_drawPatch()