HomeSort by relevance Sort by last modified time
    Searched refs:yDivs (Results 1 - 17 of 17) sorted by null

  /external/skia/include/utils/
SkNinePatch.h 36 const int32_t yDivs[], int numYDivs,
  /frameworks/base/libs/hwui/
Patch.h 55 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);
PatchCache.cpp 55 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)) {
Patch.cpp 66 void Patch::copy(const int32_t* xDivs, const int32_t* yDivs) {
68 memcpy(mYDivs, yDivs, mYCount * sizeof(int32_t));
71 void Patch::copy(const int32_t* yDivs) {
72 memcpy(mYDivs, yDivs, mYCount * sizeof(int32_t));
79 bool Patch::matches(const int32_t* xDivs, const int32_t* yDivs, const uint32_t colorKey) {
82 copy(xDivs, yDivs);
89 copy(xDivs, yDivs);
95 if (mYDivs[i] != yDivs[i]) {
97 copy(yDivs);
PatchCache.h 52 const int32_t* xDivs, const int32_t* yDivs, const uint32_t* colors,
DisplayListRenderer.cpp 376 int32_t* yDivs = NULL;
383 yDivs = getInts(yDivsCount);
722 int32_t* yDivs = NULL;
731 yDivs = getInts(yDivsCount);
741 renderer.drawPatch(bitmap, xDivs, yDivs, colors, xDivsCount, yDivsCount,
    [all...]
OpenGLRenderer.h 111 virtual void drawPatch(SkBitmap* bitmap, const int32_t* xDivs, const int32_t* yDivs,
DisplayListRenderer.h 278 virtual void drawPatch(SkBitmap* bitmap, const int32_t* xDivs, const int32_t* yDivs,
OpenGLRenderer.cpp     [all...]
  /external/skia/src/utils/
SkNinePatch.cpp 113 const int32_t yDivs[], int numYDivs,
130 for (i = 0; i < numYDivs && yDivs[i] == 0; i++) {
134 yDivs += zeros;
135 for (i = numYDivs - 1; i >= 0 && yDivs[i] == bitmap.height(); --i) {
156 SkDebugf("--- ydivs[%d] %d\n", i, yDivs[i]);
177 stretchSize += yDivs[i] - yDivs[i-1];
209 // we use <= for YDivs, since the prebuild indices work for 3x2 and 3x1 too
226 const SkScalar ty = SkIntToScalar(yDivs[y])
    [all...]
  /frameworks/base/core/jni/android/graphics/
NinePatchImpl.cpp 124 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[0]. In the former cas
    [all...]
BitmapFactory.cpp 422 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/
Images.cpp 48 free(info9Patch.yDivs);
321 vpatch, image->info9Patch.yDivs[0], image->info9Patch.yDivs[1],
341 int32_t* yDivs = (int32_t*) malloc(maxSizeYDivs);
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...]
  /external/webkit/Source/WebKit/android/
RenderSkinNinePatch.cpp 100 data->yDivs, data->numYDivs,
  /frameworks/base/include/utils/
ResourceTypes.h 82 * xDivs and yDivs point to arrays of horizontal and vertical pixel
107 yDivs(NULL), colors(NULL) { }
120 int32_t* yDivs;
    [all...]
  /frameworks/base/libs/utils/
ResourceTypes.cpp 142 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;
    [all...]
  /frameworks/base/core/jni/
android_view_GLES20Canvas.cpp 388 renderer->drawPatch(bitmap, &patch->xDivs[0], &patch->yDivs[0],
    [all...]

Completed in 179 milliseconds