Lines Matching refs:bitmap
34 static bool getColor(const SkBitmap& bitmap, int x, int y, SkColor* c) { in getColor() argument
35 switch (bitmap.colorType()) { in getColor()
37 *c = SkUnPreMultiply::PMColorToColor(*bitmap.getAddr32(x, y)); in getColor()
40 *c = SkPixel16ToPixel32(*bitmap.getAddr16(x, y)); in getColor()
44 SkPixel4444ToPixel32(*bitmap.getAddr16(x, y))); in getColor()
47 SkColorTable* ctable = bitmap.getColorTable(); in getColor()
49 (*ctable)[*bitmap.getAddr8(x, y)]); in getColor()
65 const SkBitmap& bitmap, const SkPaint& paint, in drawStretchyPatch() argument
74 if (!getColor(bitmap, src.fLeft, src.fTop, &c)) { in drawStretchyPatch()
85 canvas->drawBitmapRect(bitmap, SkRect::Make(src), dst, &paint); in drawStretchyPatch()
99 const SkBitmap& bitmap, const Res_png_9patch& chunk, in Draw() argument
117 SkNinePatch::DrawMesh(canvas, bounds, bitmap, in Draw()
140 ALOGV("======== ninepatch paint bm [%d,%d]\n", bitmap.width(), bitmap.height()); in Draw()
146 bitmap.width() == 0 || bitmap.height() == 0 || in Draw()
157 SkAutoLockPixels alp(bitmap); in Draw()
159 if (bitmap.getPixels() == NULL) in Draw()
178 const int bitmapWidth = bitmap.width(); in Draw()
179 const int bitmapHeight = bitmap.height(); in Draw()
200 bitmap.width(), bitmap.height(), in Draw()
312 drawStretchyPatch(canvas, src, dst, bitmap, *paint, initColor, in Draw()