Lines Matching refs:bitmap
21 scoped_ptr<SkBitmap> bitmap(gfx::JPEGCodec::Decode(input, input_size));
22 if (bitmap.get())
23 return Image::CreateFrom1xBitmap(*bitmap);
35 const SkBitmap& bitmap = image_skia_rep.sk_bitmap();
36 SkAutoLockPixels bitmap_lock(bitmap);
38 if (!bitmap.readyToDraw())
42 reinterpret_cast<unsigned char*>(bitmap.getAddr32(0, 0)),
43 gfx::JPEGCodec::FORMAT_SkBitmap, bitmap.width(),
44 bitmap.height(),
45 static_cast<int>(bitmap.rowBytes()), quality,
60 const SkBitmap& bitmap = rep.sk_bitmap();
61 if (bitmap.isNull() || bitmap.width() == 0)
64 if (bitmap.isOpaque())
67 SkAutoLockPixels l(bitmap);
68 int inner_min = bitmap.width();
69 for (int x = 0; x < bitmap.width(); ++x) {
70 for (int y = 0; y < bitmap.height(); ++y) {
71 if (SkColorGetA(bitmap.getColor(x, y)) > kMinimumVisibleOpacity) {
76 if (inner_min < bitmap.width())
81 for (int x = bitmap.width() - 1; x > inner_min; --x) {
82 for (int y = 0; y < bitmap.height(); ++y) {
83 if (SkColorGetA(bitmap.getColor(x, y)) > kMinimumVisibleOpacity) {
92 if (inner_min == bitmap.width()) {
93 *leading = bitmap.width()/2;
94 *trailing = bitmap.width()/2 + 1;