Searched refs:bm (Results 151 - 175 of 405) sorted by relevance

1234567891011>>

/external/chromium_org/third_party/skia/gm/
H A Dimagefiltersbase.cpp161 SkBitmap bm; local
162 bm.allocN32Pixels(bounds.width(), bounds.height());
163 bm.eraseColor(SK_ColorTRANSPARENT);
164 SkCanvas c(bm);
167 canvas->drawBitmap(bm, 0, 0, &paint);
177 SkBitmap bm; local
178 bm.allocN32Pixels(bounds.width(), bounds.height());
179 bm.eraseColor(SK_ColorTRANSPARENT);
180 SkCanvas c(bm);
185 canvas->drawSprite(bm,
[all...]
H A Dimagefilterscropped.cpp63 SkBitmap bm; local
64 bm.allocN32Pixels(bounds.width(), bounds.height());
65 bm.eraseColor(SK_ColorTRANSPARENT);
66 SkCanvas c(bm);
72 canvas->drawBitmap(bm, 0, 0, &paint);
82 SkBitmap bm; local
83 bm.allocN32Pixels(bounds.width(), bounds.height());
84 bm.eraseColor(SK_ColorRED);
85 SkCanvas c(bm);
94 canvas->drawSprite(bm,
[all...]
H A Detc1bitmap.cpp97 SkBitmap bm; variable
108 fileData, SkDecodingImageGenerator::Options()), &bm)) {
113 canvas->drawBitmap(bm, 0, 0);
184 SkBitmap bm; variable
209 nonPOTData, SkDecodingImageGenerator::Options()), &bm)) {
214 canvas->drawBitmap(bm, 0, 0);
H A Dstroketext.cpp13 SkBitmap bm; local
14 bm.setInfo(SkImageInfo::MakeN32Premul(30, 30));
17 SkCanvas c(bm);
/external/skia/gm/
H A Ddropshadowimagefilter.cpp56 SkBitmap bm; local
57 bm.allocN32Pixels(bounds.width(), bounds.height());
58 bm.eraseColor(SK_ColorTRANSPARENT);
59 SkCanvas c(bm);
65 canvas->drawBitmap(bm, 0, 0, &paint);
75 SkBitmap bm; local
76 bm.allocN32Pixels(bounds.width(), bounds.height());
77 bm.eraseColor(SK_ColorRED);
78 SkCanvas c(bm);
87 canvas->drawSprite(bm,
[all...]
H A Dimagefiltersbase.cpp128 SkBitmap bm; local
129 bm.allocN32Pixels(bounds.width(), bounds.height());
130 bm.eraseColor(SK_ColorTRANSPARENT);
131 SkCanvas c(bm);
134 canvas->drawBitmap(bm, 0, 0, &paint);
144 SkBitmap bm; local
145 bm.allocN32Pixels(bounds.width(), bounds.height());
146 bm.eraseColor(SK_ColorTRANSPARENT);
147 SkCanvas c(bm);
152 canvas->drawSprite(bm,
[all...]
H A Dimagefilterscropped.cpp62 SkBitmap bm; local
63 bm.allocN32Pixels(bounds.width(), bounds.height());
64 bm.eraseColor(SK_ColorTRANSPARENT);
65 SkCanvas c(bm);
71 canvas->drawBitmap(bm, 0, 0, &paint);
81 SkBitmap bm; local
82 bm.allocN32Pixels(bounds.width(), bounds.height());
83 bm.eraseColor(SK_ColorRED);
84 SkCanvas c(bm);
93 canvas->drawSprite(bm,
[all...]
H A Detc1bitmap.cpp97 SkBitmap bm; variable
110 fileData, SkDecodingImageGenerator::Options()), &bm)) {
115 canvas->drawBitmap(bm, 0, 0);
172 SkBitmap bm; variable
199 nonPOTData, SkDecodingImageGenerator::Options()), &bm)) {
204 canvas->drawBitmap(bm, 0, 0);
H A Dstroketext.cpp13 SkBitmap bm; local
14 bm.setInfo(SkImageInfo::MakeN32Premul(30, 30));
17 SkCanvas c(bm);
/external/skia/src/images/
H A DSkImageDecoder_ktx.cpp44 virtual Result onDecode(SkStream* stream, SkBitmap* bm, Mode) SK_OVERRIDE;
50 SkImageDecoder::Result SkKTXImageDecoder::onDecode(SkStream* stream, SkBitmap* bm, Mode mode) { argument
95 bm->setInfo(SkImageInfo::MakeN32(sampler.scaledWidth(), sampler.scaledHeight(), alphaType));
101 if (!this->allocPixelRef(bm, NULL)) {
106 SkAutoLockPixels alp(*bm);
109 if (!sampler.begin(bm, SkScaledBitmapSampler::kRGB, *this)) {
139 if (!sampler.begin(bm, SkScaledBitmapSampler::kRGB, *this)) {
163 SkASSERT(bm->alphaType() == kPremul_SkAlphaType);
169 if (!sampler.begin(bm, SkScaledBitmapSampler::kRGBA, opts)) {
204 virtual bool onEncode(SkWStream* stream, const SkBitmap& bm, in
[all...]
/external/chromium_org/third_party/skia/samplecode/
H A DSamplePictFile.cpp122 SkBitmap bm; local
123 if (SkImageDecoder::DecodeFile(path, &bm)) {
124 bm.setImmutable();
126 SkCanvas* can = recorder.beginRecording(SkIntToScalar(bm.width()),
127 SkIntToScalar(bm.height()),
129 can->drawBitmap(bm, 0, 0, NULL);
H A DSampleLines.cpp66 SkBitmap bm; local
67 SkImageDecoder::DecodeFile("/kill.gif", &bm);
68 canvas->drawBitmap(bm, 0, 0, NULL);
H A DSampleEncode.cpp29 static void make_image(SkBitmap* bm, SkColorType ct, int configIndex) { argument
47 bm->swap(device);
50 bm->allocPixels(info);
53 *bm->getAddr16(x, y) = SkPixel32ToPixel16(*device.getAddr32(x, y));
68 bm->allocPixels(info, NULL, ctable);
72 *bm->getAddr8(x, y) = SkGetPackedR32(*device.getAddr32(x, y));
188 SkBitmap bm; local
199 &bm)) {
203 canvas->drawBitmap(bm, x, yy);
/external/chromium_org/third_party/skia/src/images/
H A DSkImageDecoder_astc.cpp27 virtual bool onDecode(SkStream* stream, SkBitmap* bm, Mode) SK_OVERRIDE;
45 bool SkASTCImageDecoder::onDecode(SkStream* stream, SkBitmap* bm, Mode mode) { argument
139 bm->setInfo(SkImageInfo::MakeN32(sampler.scaledWidth(), sampler.scaledHeight(), alphaType));
145 if (!this->allocPixelRef(bm, NULL)) {
150 SkAutoLockPixels alp(*bm);
152 if (!sampler.begin(bm, SkScaledBitmapSampler::kRGBA, *this)) {
/external/chromium_org/third_party/skia/tests/
H A DEmptyPathTest.cpp16 SkBitmap bm; local
17 bm.allocN32Pixels(DIMENSION, DIMENSION);
18 SkASSERT(DIMENSION*4 == bm.rowBytes()); // ensure no padding on each row
19 bm.eraseColor(SK_ColorTRANSPARENT);
21 SkCanvas canvas(bm);
28 const SkPMColor* ptr = bm.getAddr32(0, 0);
H A DPDFJpegEmbedTest.cpp21 SkBitmap bm; local
24 data, SkDecodingImageGenerator::Options()), &bm); local
25 return bm;
/external/skia/samplecode/
H A DSamplePictFile.cpp126 SkBitmap bm; local
127 if (SkImageDecoder::DecodeFile(path, &bm)) {
128 bm.setImmutable();
130 SkCanvas* can = recorder.beginRecording(bm.width(), bm.height(), NULL, 0);
131 can->drawBitmap(bm, 0, 0, NULL);
H A DSampleLines.cpp66 SkBitmap bm; local
67 SkImageDecoder::DecodeFile("/kill.gif", &bm);
68 canvas->drawBitmap(bm, 0, 0, NULL);
H A DSampleEncode.cpp29 static void make_image(SkBitmap* bm, SkColorType ct, int configIndex) { argument
47 bm->swap(device);
50 bm->allocPixels(info);
53 *bm->getAddr16(x, y) = SkPixel32ToPixel16(*device.getAddr32(x, y));
68 bm->allocPixels(info, NULL, ctable);
72 *bm->getAddr8(x, y) = SkGetPackedR32(*device.getAddr32(x, y));
188 SkBitmap bm; local
199 &bm)) {
203 canvas->drawBitmap(bm, x, yy);
/external/skia/tests/
H A DEmptyPathTest.cpp16 SkBitmap bm; local
17 bm.allocN32Pixels(DIMENSION, DIMENSION);
18 SkASSERT(DIMENSION*4 == bm.rowBytes()); // ensure no padding on each row
19 bm.eraseColor(SK_ColorTRANSPARENT);
21 SkCanvas canvas(bm);
28 const SkPMColor* ptr = bm.getAddr32(0, 0);
/external/chromium_org/third_party/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 DImageDecodeBench.cpp63 SkBitmap bm; variable
65 SkDEBUGCODE(bool success =) SkImageDecoder::DecodeStream(&fStream, &bm);
/external/fio/lib/
H A Daxmap.h8 void axmap_free(struct axmap *bm);
/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);
/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...]

Completed in 364 milliseconds

1234567891011>>