Searched refs:bm (Results 76 - 100 of 245) sorted by relevance

12345678910

/external/skia/tests/
H A DBitmapGetColorTest.cpp97 SkBitmap bm; local
99 bm.setConfig(gRec[i].fConfig, 2, 2);
100 bm.setPixels(storage);
102 bm.eraseColor(initColor);
103 bm.eraseArea(area, gRec[i].fInColor);
105 SkColor c = bm.getColor(1, 1);
H A DDrawPathTest.cpp15 SkBitmap bm; local
16 bm.setConfig(config, w, h, rb);
18 bm.setPixels(addr);
20 bm.allocPixels();
22 return new SkCanvas(bm);
86 SkBitmap bm; local
87 bm.setConfig(SkBitmap::kARGB_8888_Config, 2700, 30*1024);
88 bm.allocPixels();
89 SkCanvas canvas(bm);
H A DBitmapFactoryTest.cpp26 SkBitmap* bm = SkNEW(SkBitmap); local
29 bm->setConfig(SkBitmap::kARGB_8888_Config, W, H);
30 bm->allocPixels();
31 bm->eraseColor(SK_ColorBLACK);
32 SkCanvas canvas(*bm);
36 return bm;
39 static SkData* create_data_from_bitmap(const SkBitmap& bm) { argument
41 if (SkImageEncoder::EncodeStream(&stream, bm, SkImageEncoder::kPNG_Type, 100)) {
H A DImageDecodingTest.cpp198 SkBitmap bm; local
200 bm.setConfig(SkBitmap::kARGB_8888_Config, size, size);
201 bm.allocPixels();
202 SkCanvas canvas(bm);
215 SkAutoTUnref<SkData> data(SkImageEncoder::EncodeData(bm, type, 100));
253 SkBitmap bm; local
254 decoder->decodeSubset(&bm, SkIRect::MakeWH(width, height),
/external/skia/bench/
H A DBitmapRectBench.cpp16 static void draw_into_bitmap(const SkBitmap& bm) { argument
17 const int w = bm.width();
18 const int h = bm.height();
20 SkCanvas canvas(bm);
H A DDecodeBench.cpp46 SkBitmap bm; local
47 SkImageDecoder::DecodeFile(fFilename, &bm, fPrefConfig,
H A DImageDecodeBench.cpp61 SkBitmap bm; variable
63 SkDEBUGCODE(bool success =) SkImageDecoder::DecodeStream(&fStream, &bm);
H A DSkipZeroesBench.cpp76 SkBitmap bm; variable
78 SkDEBUGCODE(bool success =) fDecoder->decode(&fStream, &bm,
/external/chromium_org/sync/syncable/
H A Dparent_child_index_unittest.cc78 EntryKernel* bm = new EntryKernel(); local
79 bm->put(META_HANDLE, n);
80 bm->put(BASE_VERSION, 10);
81 bm->put(SERVER_VERSION, 10);
82 bm->put(IS_DIR, is_dir);
83 bm->put(ID, GetBookmarkId(n));
84 bm->put(PARENT_ID, GetBookmarkRootId());
85 bm->put(SERVER_PARENT_ID, GetBookmarkRootId());
87 bm->put(UNIQUE_BOOKMARK_TAG,
89 bm
[all...]
/external/chromium_org/third_party/skia/include/images/
H A DSkImageRef.h51 bool getInfo(SkBitmap* bm);
57 bool isOpaque(SkBitmap* bm);
/external/skia/include/images/
H A DSkImageRef.h51 bool getInfo(SkBitmap* bm);
57 bool isOpaque(SkBitmap* bm);
/external/valgrind/main/drd/
H A Ddrd_segment.h60 struct bitmap bm; member in struct:segment
97 return &sg->bm;
/external/chromium_org/third_party/skia/src/core/
H A DSkBitmapHeap.h221 LookupEntry(const SkBitmap& bm) argument
222 : fGenerationId(bm.getGenerationID())
223 , fPixelOffset(bm.pixelRefOffset())
224 , fWidth(bm.width())
225 , fHeight(bm.height())
/external/skia/gm/
H A Dshadertext3.cpp14 static void makebm(SkBitmap* bm, SkBitmap::Config config, int w, int h) { argument
15 bm->setConfig(config, w, h);
16 bm->allocPixels();
17 bm->eraseColor(SK_ColorTRANSPARENT);
19 SkCanvas canvas(*bm);
H A Dtilemodes.cpp22 static void makebm(SkBitmap* bm, SkBitmap::Config config, int w, int h) { argument
23 bm->setConfig(config, w, h);
24 bm->allocPixels();
25 bm->eraseColor(SK_ColorTRANSPARENT);
27 SkCanvas canvas(*bm);
46 static void setup(SkPaint* paint, const SkBitmap& bm, bool filter, argument
48 SkShader* shader = SkShader::CreateBitmapShader(bm, tmx, tmy);
173 SkBitmap bm; local
174 makebm(&bm, SkBitmap::kARGB_8888_Config, gWidth, gHeight);
175 return SkShader::CreateBitmapShader(bm, t
[all...]
H A Dfilterbitmap.cpp19 static SkSize computeSize(const SkBitmap& bm, const SkMatrix& mat) { argument
20 SkRect bounds = SkRect::MakeWH(SkIntToScalar(bm.width()),
21 SkIntToScalar(bm.height()));
26 static void draw_col(SkCanvas* canvas, const SkBitmap& bm, const SkMatrix& mat, argument
32 canvas->drawBitmapMatrix(bm, mat, &paint);
36 canvas->drawBitmapMatrix(bm, mat, &paint);
40 canvas->drawBitmapMatrix(bm, mat, &paint);
H A Dgammatext.cpp41 static CGContextRef makeCG(const SkBitmap& bm) { argument
42 if (SkBitmap::kARGB_8888_Config != bm.config() ||
43 NULL == bm.getPixels()) {
47 CGContextRef cg = CGBitmapContextCreate(bm.getPixels(), bm.width(), bm.height(),
48 8, bm.rowBytes(), space, BITMAP_INFO_RGB);
/external/skia/src/core/
H A DSkBitmapHeap.h221 LookupEntry(const SkBitmap& bm) argument
222 : fGenerationId(bm.getGenerationID())
223 , fPixelOffset(bm.pixelRefOffset())
224 , fWidth(bm.width())
225 , fHeight(bm.height())
/external/chromium_org/third_party/skia/src/utils/
H A DSkPictureUtils.cpp54 void addBitmap(const SkBitmap& bm) { argument
55 fPRSet->add(bm.pixelRef());
61 SkBitmap bm; local
66 shader->asABitmap(&bm, NULL, NULL)) {
67 fPRSet->add(bm.pixelRef());
73 GatherPixelRefDevice(const SkBitmap& bm, PixelRefSet* prset) : SkDevice(bm) { argument
/external/skia/src/utils/
H A DSkPictureUtils.cpp54 void addBitmap(const SkBitmap& bm) { argument
55 fPRSet->add(bm.pixelRef());
61 SkBitmap bm; local
66 shader->asABitmap(&bm, NULL, NULL)) {
67 fPRSet->add(bm.pixelRef());
73 GatherPixelRefDevice(const SkBitmap& bm, PixelRefSet* prset) : SkDevice(bm) { argument
/external/chromium_org/third_party/skia/src/views/
H A DSkParsePaint.cpp47 SkBitmap bm;
49 if (SkImageDecoder::DecodeFile(str, &bm))
57 return SkShader::CreateBitmapShader(bm, mode, mode);
H A DSkProgressView.cpp111 SkBitmap bm; local
113 return SkImageDecoder::DecodeFile(file, &bm) ?
114 SkShader::CreateBitmapShader(bm, SkShader::kRepeat_TileMode, SkShader::kRepeat_TileMode) :
/external/iptables/extensions/
H A Dlibipt_NETMAP.c35 uint32_t bm; local
39 for (bits = 0, bm = 0x80000000; netmask & bm; netmask <<= 1)
/external/skia/src/views/
H A DSkParsePaint.cpp47 SkBitmap bm;
49 if (SkImageDecoder::DecodeFile(str, &bm))
57 return SkShader::CreateBitmapShader(bm, mode, mode);
H A DSkProgressView.cpp111 SkBitmap bm; local
113 return SkImageDecoder::DecodeFile(file, &bm) ?
114 SkShader::CreateBitmapShader(bm, SkShader::kRepeat_TileMode, SkShader::kRepeat_TileMode) :

Completed in 492 milliseconds

12345678910