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

/frameworks/base/libs/hwui/
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.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);
H A DPatch.cpp66 void Patch::copy(const int32_t* xDivs, const int32_t* yDivs) { argument
67 memcpy(mXDivs, xDivs, mXCount * sizeof(int32_t));
79 bool Patch::matches(const int32_t* xDivs, const int32_t* yDivs, const uint32_t colorKey) { argument
82 copy(xDivs, yDivs);
87 if (mXDivs[i] != xDivs[i]) {
89 copy(xDivs, yDivs);
H A DPatchCache.h52 const int32_t* xDivs, const int32_t* yDivs, const uint32_t* colors,
H A DDisplayListRenderer.cpp375 int32_t* xDivs = NULL; local
382 xDivs = getInts(xDivsCount);
721 int32_t* xDivs = NULL; local
730 xDivs = getInts(xDivsCount);
741 renderer.drawPatch(bitmap, xDivs, yDivs, colors, xDivsCount, yDivsCount,
1124 void DisplayListRenderer::drawPatch(SkBitmap* bitmap, const int32_t* xDivs, const int32_t* yDivs, argument
1129 addInts(xDivs, width);
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.cpp123 chunk.xDivs, chunk.numXDivs,
148 LOGV("======== ninepatch xDivs [%d,%d]\n", chunk.xDivs[0], chunk.xDivs[1]);
174 const int32_t x0 = chunk.xDivs[0];
194 numStretchyXPixelsRemaining += chunk.xDivs[i + 1] - chunk.xDivs[i];
263 src.fRight = chunk.xDivs[i];
H A DBitmapFactory.cpp415 chunk->xDivs[i] = int(chunk->xDivs[i] * scale + 0.5f);
416 if (i > 0 && chunk->xDivs[i] == chunk->xDivs[i - 1]) {
417 chunk->xDivs[i]++;
/frameworks/base/tools/aapt/
H A DImages.cpp47 free(info9Patch.xDivs);
318 hpatch, image->info9Patch.xDivs[0], image->info9Patch.xDivs[1],
340 int32_t* xDivs = (int32_t*) malloc(maxSizeXDivs); local
351 memset(xDivs, -1, maxSizeXDivs);
380 if (get_horizontal_ticks(p, W, transparent, true, &xDivs[0],
381 &xDivs[1], &errorMsg, &numXDivs, true) != NO_ERROR) {
382 errorPixel = xDivs[0];
414 image->info9Patch.xDivs = xDivs;
[all...]
/frameworks/base/include/utils/
H A DResourceTypes.h82 * xDivs and yDivs point to arrays of horizontal and vertical pixel
106 Res_png_9patch() : wasDeserialized(false), xDivs(NULL),
116 // 0 to xDivs[0]-1 and the second patch includes the pixels
117 // from xDivs[0] to xDivs[1]-1.
119 int32_t* xDivs; member in struct:android::Res_png_9patch
/frameworks/base/libs/utils/
H A DResourceTypes.cpp139 xDivs[i] = htonl(xDivs[i]);
156 xDivs[i] = ntohl(xDivs[i]);
198 memmove(data, this->xDivs, numXDivs * sizeof(int32_t));
214 outData->xDivs = (int32_t*) data;
/frameworks/base/core/jni/
H A Dandroid_view_GLES20Canvas.cpp388 renderer->drawPatch(bitmap, &patch->xDivs[0], &patch->yDivs[0],

Completed in 2375 milliseconds