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.cpp376 int32_t* yDivs = NULL; in output() local
383 yDivs = getInts(yDivsCount); in output()
721 int32_t* yDivs = NULL; in replay() local
730 yDivs = getInts(yDivsCount); in replay()
740 renderer.drawPatch(bitmap, xDivs, yDivs, colors, xDivsCount, yDivsCount, in replay()
1123 void DisplayListRenderer::drawPatch(SkBitmap* bitmap, const int32_t* xDivs, const int32_t* yDivs, in drawPatch() argument
1129 addInts(yDivs, height); in drawPatch()
DOpenGLRenderer.h109 virtual void drawPatch(SkBitmap* bitmap, const int32_t* xDivs, const int32_t* yDivs,
DDisplayListRenderer.h276 void drawPatch(SkBitmap* bitmap, const int32_t* xDivs, const int32_t* yDivs,
DOpenGLRenderer.cpp1525 void OpenGLRenderer::drawPatch(SkBitmap* bitmap, const int32_t* xDivs, const int32_t* yDivs, in drawPatch() argument
1544 right - left, bottom - top, xDivs, yDivs, colors, width, height, numColors); in drawPatch()
/frameworks/base/tools/aapt/
DImages.cpp48 free(info9Patch.yDivs); in ~image_info()
321 vpatch, image->info9Patch.yDivs[0], image->info9Patch.yDivs[1], in get_color()
341 int32_t* yDivs = (int32_t*) malloc(maxSizeYDivs); in do_9patch() local
352 memset(yDivs, -1, maxSizeYDivs); in do_9patch()
388 if (get_vertical_ticks(image->rows, 0, H, transparent, true, &yDivs[0], in do_9patch()
389 &yDivs[1], &errorMsg, &numYDivs, true) != NO_ERROR) { in do_9patch()
390 errorPixel = yDivs[0]; in do_9patch()
415 image->info9Patch.yDivs = yDivs; in do_9patch()
426 image->info9Patch.paddingTop = yDivs[0]; in do_9patch()
427 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 LOGV("======== 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.cpp422 chunk->yDivs[i] = int(chunk->yDivs[i] * scale + 0.5f); in nativeScaleNinePatch()
423 if (i > 0 && chunk->yDivs[i] == chunk->yDivs[i - 1]) { in nativeScaleNinePatch()
424 chunk->yDivs[i]++; in nativeScaleNinePatch()
/frameworks/base/include/utils/
DResourceTypes.h107 yDivs(NULL), colors(NULL) { } in Res_png_9patch()
120 int32_t* yDivs; member
/frameworks/base/libs/utils/
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.cpp375 renderer->drawPatch(bitmap, &patch->xDivs[0], &patch->yDivs[0], in android_view_GLES20Canvas_drawPatch()