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

/frameworks/base/libs/hwui/
H A 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);
H A DPatchCache.cpp55 const int32_t* xDivs, const int32_t* yDivs, const uint32_t* colors,
91 mesh->copy(xDivs, yDivs);
100 } else if (!mesh->matches(xDivs, yDivs, colorKey)) {
53 get(const float bitmapWidth, const float bitmapHeight, const float pixelWidth, const float pixelHeight, const int32_t* xDivs, const int32_t* yDivs, const uint32_t* colors, const uint32_t width, const uint32_t height, const int8_t numColors) argument
H A DPatch.cpp66 void Patch::copy(const int32_t* xDivs, const int32_t* yDivs) { argument
68 memcpy(mYDivs, yDivs, mYCount * sizeof(int32_t));
71 void Patch::copy(const int32_t* yDivs) { argument
72 memcpy(mYDivs, yDivs, mYCount * sizeof(int32_t));
79 bool Patch::matches(const int32_t* xDivs, const int32_t* yDivs, const uint32_t colorKey) { argument
82 copy(xDivs, yDivs);
89 copy(xDivs, yDivs);
95 if (mYDivs[i] != yDivs[i]) {
97 copy(yDivs);
H A DPatchCache.h52 const int32_t* xDivs, const int32_t* yDivs, const uint32_t* colors,
H A DDisplayListRenderer.cpp376 int32_t* yDivs = NULL; local
383 yDivs = getInts(yDivsCount);
722 int32_t* yDivs = NULL; local
731 yDivs = getInts(yDivsCount);
741 renderer.drawPatch(bitmap, xDivs, yDivs, colors, xDivsCount, yDivsCount,
1124 void DisplayListRenderer::drawPatch(SkBitmap* bitmap, const int32_t* xDivs, const int32_t* yDivs, argument
1130 addInts(yDivs, height);
H A DDisplayListRenderer.h278 virtual void drawPatch(SkBitmap* bitmap, const int32_t* xDivs, const int32_t* yDivs,
H A DOpenGLRenderer.h111 virtual void drawPatch(SkBitmap* bitmap, const int32_t* xDivs, const int32_t* yDivs,
H A DOpenGLRenderer.cpp1527 void OpenGLRenderer::drawPatch(SkBitmap* bitmap, const int32_t* xDivs, const int32_t* yDivs, argument
1546 right - left, bottom - top, xDivs, yDivs, colors, width, height, numColors);
/frameworks/base/core/jni/android/graphics/
H A DNinePatchImpl.cpp124 chunk.yDivs, chunk.numYDivs,
149 LOGV("======== ninepatch yDivs [%d,%d]\n", chunk.yDivs[0], chunk.yDivs[1]);
175 const int32_t y0 = chunk.yDivs[0];
199 numStretchyYPixelsRemaining += chunk.yDivs[i + 1] - chunk.yDivs[i];
214 // being either yDivs[1] (if yDivs[0]=0) of yDivs[
[all...]
H A DBitmapFactory.cpp422 chunk->yDivs[i] = int(chunk->yDivs[i] * scale + 0.5f);
423 if (i > 0 && chunk->yDivs[i] == chunk->yDivs[i - 1]) {
424 chunk->yDivs[i]++;
/frameworks/base/tools/aapt/
H A DImages.cpp48 free(info9Patch.yDivs);
321 vpatch, image->info9Patch.yDivs[0], image->info9Patch.yDivs[1],
341 int32_t* yDivs = (int32_t*) malloc(maxSizeYDivs); local
352 memset(yDivs, -1, maxSizeYDivs);
388 if (get_vertical_ticks(image->rows, 0, H, transparent, true, &yDivs[0],
389 &yDivs[1], &errorMsg, &numYDivs, true) != NO_ERROR) {
390 errorPixel = yDivs[0];
415 image->info9Patch.yDivs = yDivs;
[all...]
/frameworks/base/include/utils/
H A DResourceTypes.h82 * xDivs and yDivs point to arrays of horizontal and vertical pixel
107 yDivs(NULL), colors(NULL) { }
120 int32_t* yDivs; member in struct:android::Res_png_9patch
/frameworks/base/libs/utils/
H A DResourceTypes.cpp142 yDivs[i] = htonl(yDivs[i]);
159 yDivs[i] = ntohl(yDivs[i]);
200 memmove(data, this->yDivs, numYDivs * sizeof(int32_t));
216 outData->yDivs = (int32_t*) data;
/frameworks/base/core/jni/
H A Dandroid_view_GLES20Canvas.cpp388 renderer->drawPatch(bitmap, &patch->xDivs[0], &patch->yDivs[0],

Completed in 380 milliseconds