Searched defs:bm (Results 1 - 25 of 351) sorted by relevance

1234567891011>>

/external/chromium_org/third_party/skia/include/utils/mac/
H A DSkCGUtils.h46 SK_API CGImageRef SkCreateCGImageRefWithColorspace(const SkBitmap& bm,
53 static inline CGImageRef SkCreateCGImageRef(const SkBitmap& bm) { argument
54 return SkCreateCGImageRefWithColorspace(bm, NULL);
/external/skia/include/utils/mac/
H A DSkCGUtils.h46 SK_API CGImageRef SkCreateCGImageRefWithColorspace(const SkBitmap& bm,
53 static inline CGImageRef SkCreateCGImageRef(const SkBitmap& bm) { argument
54 return SkCreateCGImageRefWithColorspace(bm, NULL);
/external/chromium_org/third_party/skia/src/image/
H A DSkImagePriv.cpp12 SkImage* SkNewImageFromBitmap(const SkBitmap& bm, bool canSharePixelRef) { argument
13 const SkImageInfo info = bm.info();
19 if (canSharePixelRef || bm.isImmutable()) {
20 image = SkNewImageFromPixelRef(info, bm.pixelRef(), bm.rowBytes());
22 bm.lockPixels();
23 if (bm.getPixels()) {
24 image = SkImage::NewRasterCopy(info, bm.getPixels(), bm.rowBytes());
26 bm
[all...]
/external/chromium_org/third_party/skia/gm/
H A Demboss.cpp15 SkBitmap bm; local
16 bm.allocN32Pixels(100, 100);
18 SkCanvas canvas(bm);
23 return bm;
42 SkBitmap bm = make_bm(); variable
43 canvas->drawBitmap(bm, 10, 10, &paint);
47 canvas->translate(bm.width() + SkIntToScalar(10), 0);
48 canvas->drawBitmap(bm, 10, 10, &paint);
53 canvas->translate(bm.width() + SkIntToScalar(10), 0);
54 canvas->drawBitmap(bm, 1
[all...]
H A Dastcbitmap.cpp78 SkBitmap bm; variable
81 fileData, SkDecodingImageGenerator::Options()), &bm)) {
88 canvas->drawBitmap(bm, bmX, bmY);
H A Dbitmapmatrix.cpp38 SkBitmap bm; variable
39 this->setupBitmap(&bm);
47 canvas->drawBitmapMatrix(bm, matrix, &paint);
50 canvas->translate(SkIntToScalar(bm.width() + 5), 0);
52 canvas->drawBitmapMatrix(bm, matrix, &paint);
55 canvas->translate(SkIntToScalar(bm.width()*2 + 5), 0);
57 matrix.setRotate(SkIntToScalar(45), SkIntToScalar(bm.width() / 2),
58 SkIntToScalar(bm.height() / 2));
61 canvas->drawBitmapMatrix(bm, matrix, &paint);
65 canvas->translate(SkIntToScalar(bm
111 setupBitmap(SkBitmap* bm) argument
[all...]
H A Dbitmaprecttest.cpp11 static void make_bm(SkBitmap* bm) { argument
12 bm->allocN32Pixels(60, 60);
13 bm->eraseColor(0);
15 SkCanvas canvas(*bm);
37 SkBitmap bm; local
38 make_bm(&bm);
40 canvas->drawBitmap(bm, 150, 45, NULL);
45 canvas->drawBitmapRectToRect(bm, NULL, SkRect::MakeXYWH(100, 100, 128, 128), NULL);
49 canvas->drawBitmap(bm, -310, 45, NULL);
H A DcopyTo4444.cpp34 SkBitmap bm, bm4444; local
36 if (!SkImageDecoder::DecodeFile(pngFilename.c_str(), &bm, kN32_SkColorType,
42 canvas->drawBitmap(bm, 0, 0);
43 SkAssertResult(bm.copyTo(&bm4444, kARGB_4444_SkColorType));
44 canvas->drawBitmap(bm4444, SkIntToScalar(bm.width()), 0);
H A Dspritebitmap.cpp12 static void make_bm(SkBitmap* bm) { argument
13 bm->allocN32Pixels(100, 100);
14 bm->eraseColor(SK_ColorBLUE);
16 SkCanvas canvas(*bm);
23 static void draw_2_bitmaps(SkCanvas* canvas, const SkBitmap& bm, bool doClip, argument
30 SkIntToScalar(bm.width()),
31 SkIntToScalar(bm.height()));
40 canvas->drawSprite(bm, dx, dy, &paint);
45 canvas->translate(SkIntToScalar(bm.width() + 20), 0);
51 canvas->drawBitmap(bm, SkIntToScala
78 SkBitmap bm; local
[all...]
H A Dstroketext.cpp13 SkBitmap bm; local
14 bm.setInfo(SkImageInfo::MakeN32Premul(30, 30));
17 SkCanvas c(bm);
H A Dtinybitmap.cpp20 SkBitmap bm; local
21 bm.allocPixels(SkImageInfo::Make(1, 1, kIndex_8_SkColorType,
26 bm.lockPixels();
27 *bm.getAddr8(0, 0) = 0;
28 bm.unlockPixels();
29 return bm;
46 SkBitmap bm = make_bitmap(); local
48 SkShader::CreateBitmapShader(bm, SkShader::kRepeat_TileMode,
/external/skia/gm/
H A Demboss.cpp15 SkBitmap bm; local
16 bm.allocN32Pixels(100, 100);
18 SkCanvas canvas(bm);
23 return bm;
42 SkBitmap bm = make_bm(); variable
43 canvas->drawBitmap(bm, 10, 10, &paint);
47 canvas->translate(bm.width() + SkIntToScalar(10), 0);
48 canvas->drawBitmap(bm, 10, 10, &paint);
53 canvas->translate(bm.width() + SkIntToScalar(10), 0);
54 canvas->drawBitmap(bm, 1
[all...]
/external/skia/src/gpu/
H A DGrSurface.cpp27 SkBitmap bm; local
28 if (!bm.allocPixels(SkImageInfo::MakeN32Premul(this->width(),
34 bm.getPixels());
43 if (!SkImageEncoder::EncodeFile(filename, bm, SkImageEncoder::kPNG_Type, 100)) {
/external/skia/tests/
H A DBitmapTest.cpp13 SkBitmap bm; local
17 REPORTER_ASSERT(reporter, bm.setInfo(info));
19 REPORTER_ASSERT(reporter, bm.setInfo(info));
28 REPORTER_ASSERT(reporter, !bm.setInfo(info));
38 SkBitmap bm; local
39 bool setConf = bm.setInfo(SkImageInfo::MakeN32Premul(width, height));
42 REPORTER_ASSERT(reporter, bm.allocPixels(NULL));
44 REPORTER_ASSERT(reporter, SkToBool(width & height) != bm.empty());
H A DMipMapTest.cpp13 static void make_bitmap(SkBitmap* bm, SkRandom& rand) { argument
18 bm->allocN32Pixels(w, h);
19 bm->eraseColor(SK_ColorWHITE);
23 SkBitmap bm; local
27 make_bitmap(&bm, rand);
28 SkAutoTUnref<SkMipMap> mm(SkMipMap::Build(bm));
/external/chromium_org/third_party/skia/bench/
H A DDecodeBench.cpp38 SkBitmap bm; local
39 SkImageDecoder::DecodeFile(FLAGS_decodeBenchFilename[0], &bm, fPrefColorType,
H A DImageDecodeBench.cpp63 SkBitmap bm; variable
65 SkDEBUGCODE(bool success =) SkImageDecoder::DecodeStream(&fStream, &bm);
H A DSkipZeroesBench.cpp84 SkBitmap bm; variable
86 SkDEBUGCODE(bool success =) fDecoder->decode(&fStream, &bm,
/external/chromium_org/third_party/skia/tests/
H A DMipMapTest.cpp13 static void make_bitmap(SkBitmap* bm, SkRandom& rand) { argument
18 bm->allocN32Pixels(w, h);
19 bm->eraseColor(SK_ColorWHITE);
23 SkBitmap bm; local
27 make_bitmap(&bm, rand);
28 SkAutoTUnref<SkMipMap> mm(SkMipMap::Build(bm));
/external/clang/test/CodeGen/
H A D2002-09-18-UnionProblem.c13 short __udivmodhi4 (char n1, char bm) { argument
16 if (bm == 0)
22 rr.s.high = bm;
/external/skia/bench/
H A DDecodeBench.cpp38 SkBitmap bm; local
39 SkImageDecoder::DecodeFile(FLAGS_decodeBenchFilename[0], &bm, fPrefColorType,
/external/skia/src/image/
H A DSkImagePriv.cpp51 SkImage* SkNewImageFromBitmap(const SkBitmap& bm, bool canSharePixelRef) { argument
52 const SkImageInfo info = bm.info();
58 if (canSharePixelRef || bm.isImmutable()) {
59 image = SkNewImageFromPixelRef(info, bm.pixelRef(), bm.rowBytes());
61 bm.lockPixels();
62 if (bm.getPixels()) {
63 image = SkImage::NewRasterCopy(info, bm.getPixels(), bm.rowBytes());
65 bm
[all...]
/external/chromium_org/third_party/skia/dm/
H A DDMCpuGMTask.cpp23 SkBitmap bm; local
24 AllocatePixels(fColorType, fGM->getISize().width(), fGM->getISize().height(), &bm);
26 SkCanvas canvas(bm);
33 SPAWN(PipeTask, fGMFactory(NULL), bm, PipeTask::kInProcess_Mode);
34 SPAWN(PipeTask, fGMFactory(NULL), bm, PipeTask::kCrossProcess_Mode);
35 SPAWN(PipeTask, fGMFactory(NULL), bm, PipeTask::kSharedAddress_Mode);
37 SPAWN(QuiltTask, fGMFactory(NULL), bm, QuiltTask::kNone_BBH, QuiltTask::kDefault_Backend);
38 SPAWN(QuiltTask, fGMFactory(NULL), bm, QuiltTask::kRTree_BBH, QuiltTask::kDefault_Backend);
39 SPAWN(QuiltTask, fGMFactory(NULL), bm, QuiltTask::kTileGrid_BBH, QuiltTask::kDefault_Backend);
40 SPAWN(QuiltTask, fGMFactory(NULL), bm, QuiltTas
[all...]
/external/chromium_org/third_party/skia/samplecode/
H A DSampleLines.cpp66 SkBitmap bm; local
67 SkImageDecoder::DecodeFile("/kill.gif", &bm);
68 canvas->drawBitmap(bm, 0, 0, NULL);
H A DSampleTextureDomain.cpp15 SkBitmap bm; local
16 bm.allocN32Pixels(5, 5);
18 for (int y = 0; y < bm.height(); y++) {
19 uint32_t* p = bm.getAddr32(0, y);
20 for (int x = 0; x < bm.width(); x++) {
24 bm.unlockPixels();
25 return bm;

Completed in 3704 milliseconds

1234567891011>>