Searched refs:bm (Results 176 - 200 of 228) sorted by relevance

12345678910

/external/skia/src/core/
H A DSkScalerContext.cpp409 SkBitmap bm; local
412 if (!bm.tryAllocPixels(info)) {
418 bm.installPixels(info, mask.fImage, dstRB);
420 sk_bzero(bm.getPixels(), bm.getSafeSize());
426 draw.fBitmap = &bm;
431 packA8ToA1(mask, bm.getAddr8(0, 0), bm.rowBytes());
440 pack4xHToLCD16<true>(bm, mask, maskPreBlend);
442 pack4xHToLCD16<false>(bm, mas
[all...]
H A DSkConfig8888.cpp289 SkBitmap bm; local
290 if (!bm.installPixels(srcInfo, const_cast<void*>(srcPixels), srcRB, ctable, NULL, NULL)) {
302 canvas->drawBitmap(bm, 0, 0, &paint);
H A DSkBitmapDevice.cpp111 void SkBitmapDevice::replaceBitmapBackendForRasterSurface(const SkBitmap& bm) { argument
112 SkASSERT(bm.width() == fBitmap.width());
113 SkASSERT(bm.height() == fBitmap.height());
114 fBitmap = bm; // intent is to use bm's pixelRef (and rowbytes/config)
H A DSkPictureRecord.cpp569 SkBitmap bm; local
570 if (as_IB(image)->getROPixels(&bm)) {
571 this->SkPictureRecord::onDrawBitmap(bm, x, y, paint);
577 SkBitmap bm; local
578 if (as_IB(image)->getROPixels(&bm)) {
579 this->SkPictureRecord::onDrawBitmapRect(bm, src, dst, paint, kNone_DrawBitmapRectFlag);
H A DSkCanvas.cpp715 SkBitmap bm(*bitmap);
716 bm.lockPixels();
717 if (bm.getPixels() && this->readPixels(bm.info(), bm.getPixels(), bm.rowBytes(), x, y)) {
766 SkBitmap bm(bitmap);
767 bm.lockPixels();
768 if (bm.getPixels()) {
769 return this->writePixels(bm
[all...]
H A DSkPictureData.cpp413 SkBitmap* bm = &fBitmaps[i]; local
414 if (buffer.readBitmap(bm)) {
415 bm->setImmutable();
H A DSkDraw.cpp511 const SkBitmap* bm = blitter->justAnOpaqueColor(&value); local
512 if (bm && kRGB_565_SkColorType == bm->colorType()) {
514 } else if (bm && kN32_SkColorType == bm->colorType()) {
1574 SkBitmap bm; local
1575 bm.installPixels(SkImageInfo::MakeN32Premul(mask.fBounds.width(), mask.fBounds.height()),
1578 fDraw->drawSprite(bm, mask.fBounds.x(), mask.fBounds.y(), *fPaint);
2224 SkBitmap bm; local
2230 bm
[all...]
/external/skia/src/views/mac/
H A DSkOSWindow_Mac.cpp166 const SkBitmap& bm = this->getBitmap();
167 CGImageRef img = SkCreateCGImageRef(bm);
170 CGRect r = CGRectMake(0, 0, bm.width(), bm.height());
216 const SkBitmap& bm = this->getBitmap(); local
218 CGImageRef img = SkCreateCGImageRef(bm);
/external/skia/src/pipe/
H A DSkGPipeWrite.cpp378 bool SkGPipeCanvas::shuttleBitmap(const SkBitmap& bm, int32_t slot) { argument
382 buffer.writeBitmap(bm);
746 bool SkGPipeCanvas::commonDrawBitmap(const SkBitmap& bm, DrawOps op, argument
761 int32_t bitmapIndex = fBitmapHeap->insert(bm);
773 void SkGPipeCanvas::onDrawBitmap(const SkBitmap& bm, SkScalar left, SkScalar top, argument
778 if (this->commonDrawBitmap(bm, kDrawBitmap_DrawOp, 0, opBytesNeeded, paint)) {
784 void SkGPipeCanvas::onDrawBitmapRect(const SkBitmap& bm, const SkRect* src, const SkRect& dst, argument
800 if (this->commonDrawBitmap(bm, kDrawBitmapRectToRect_DrawOp, flags, opBytesNeeded, paint)) {
808 void SkGPipeCanvas::onDrawBitmapNine(const SkBitmap& bm, const SkIRect& center, argument
813 if (this->commonDrawBitmap(bm, kDrawBitmapNine_DrawO
822 onDrawSprite(const SkBitmap& bm, int left, int top, const SkPaint* paint) argument
[all...]
H A DSkGPipeRead.cpp150 SkBitmap* bm;
152 bm = SkNEW(SkBitmap);
153 *fBitmaps.append() = bm;
155 bm = fBitmaps[index];
157 fReader->readBitmap(bm);
/external/skia/src/svg/
H A DSkSVGDevice.h64 void drawBitmapCommon(const SkDraw& draw, const SkBitmap& bm, const SkPaint& paint);
/external/skia/samplecode/
H A DSampleSlides.cpp318 SkBitmap bm; local
320 SkImageDecoder::DecodeFile("/skimages/logo.gif", &bm);
321 size->set(bm.width(), bm.height());
322 return SkShader::CreateBitmapShader(bm, SkShader::kClamp_TileMode,
681 SkBitmap bm; local
682 bm.allocN32Pixels(1024, 768);
683 SkCanvas canvas(bm);
693 SkImageEncoder::EncodeFile(str.c_str(), bm, SkImageEncoder::kPNG_Type, 100);
H A DSampleApp.cpp292 const SkBitmap& bm = win->getBitmap(); local
293 fCurRenderTarget->writePixels(0, 0, bm.width(), bm.height(),
294 SkImageInfo2GrPixelConfig(bm.colorType(),
295 bm.alphaType(),
296 bm.profileType()),
297 bm.getPixels(),
298 bm.rowBytes(),
957 SkBitmap bm; local
958 if (bm
[all...]
/external/v8/src/
H A Djsregexp.cc2286 BoyerMooreLookahead* bm,
2289 bm->SetRest(offset);
2291 on_success()->FillInBMInfo(offset, budget - 1, bm, not_at_start);
2293 SaveBMInfo(bm, not_at_start, offset);
2315 BoyerMooreLookahead* bm,
2319 on_success()->FillInBMInfo(offset, budget - 1, bm, not_at_start);
2320 SaveBMInfo(bm, not_at_start, offset);
2950 BoyerMooreLookahead* bm,
2953 bm->SetRest(offset);
2954 SaveBMInfo(bm, not_at_star
2284 FillInBMInfo(int offset, int budget, BoyerMooreLookahead* bm, bool not_at_start) argument
2313 FillInBMInfo(int offset, int budget, BoyerMooreLookahead* bm, bool not_at_start) argument
2948 FillInBMInfo(int offset, int budget, BoyerMooreLookahead* bm, bool not_at_start) argument
3058 BoyerMooreLookahead* bm = local
4082 BoyerMooreLookahead* bm = bm_info(false); local
5821 FillInBMInfo(int offset, int budget, BoyerMooreLookahead* bm, bool not_at_start) argument
5836 FillInBMInfo(int offset, int budget, BoyerMooreLookahead* bm, bool not_at_start) argument
5855 FillInBMInfo(int initial_offset, int budget, BoyerMooreLookahead* bm, bool not_at_start) argument
[all...]
/external/skia/tests/
H A DFrontBufferedStreamTest.cpp291 SkBitmap bm; local
296 SkImageDecoder::DecodeStream(stream, &bm);
H A DCanvasTest.cpp69 static void createBitmap(SkBitmap* bm, SkColor color) { argument
70 bm->allocN32Pixels(kWidth, kHeight);
71 bm->eraseColor(color);
211 SkBitmap bm; local
212 bm.setInfo(SkImageInfo::MakeN32Premul(size.width(), size.height()));
213 SkCanvas c(bm);
H A DDeferredCanvasTest.cpp29 static void create(SkBitmap* bm, SkColor color) { argument
30 bm->allocN32Pixels(gWidth, gHeight);
31 bm->eraseColor(color);
445 MockDevice(const SkBitmap& bm) : SkBitmapDevice(bm) { argument
/external/skia/include/core/
H A DSkBitmap.h767 SkAutoLockPixels(const SkBitmap& bm, bool doLock = true) : fBitmap(bm) { argument
770 bm.lockPixels();
H A DSkImageDecoder.h260 bool decodeSubset(SkBitmap* bm, const SkIRect& subset, SkColorType pref);
/external/skia/src/images/
H A DSkImageDecoder_wbmp.cpp25 Result onDecode(SkStream* stream, SkBitmap* bm, Mode) override;
H A DSkImageEncoder_argb.cpp16 bool onEncode(SkWStream* stream, const SkBitmap& bm, int quality) override;
/external/v8/src/x64/
H A Ddisasm-x64.cc176 void CopyTable(const ByteMnemonic bm[], InstructionType type);
211 void InstructionTable::CopyTable(const ByteMnemonic bm[], argument
213 for (int i = 0; bm[i].b >= 0; i++) {
214 InstructionDesc* id = &instructions_[bm[i].b];
215 id->mnem = bm[i].mnem;
216 OperandType op_order = bm[i].op_order_;
/external/jmonkeyengine/engine/src/core/com/jme3/font/
H A DLetterQuad.java219 BitmapCharacter bm = charSet.getCharacter(c, style);
220 setBitmapChar(bm);
/external/libvncserver/x11vnc/
H A Dscreen.c1643 unsigned long rm = 0, gm = 0, bm = 0, tm; local
1955 if (sscanf(q, ":%lx/%lx/%lx", &rm, &gm, &bm) == 3) {
1957 } else if (sscanf(q, ":0x%lx/0x%lx/0x%lx", &rm, &gm, &bm)== 3) {
1959 } else if (sscanf(q, ":%lu/%lu/%lu", &rm, &gm, &bm) == 3) {
1964 bm = 0;
1986 if (rm == 0 && gm == 0 && bm == 0) {
1991 bm = 0x0000ff;
1995 bm = 0x001f;
1999 bm = 0xc0;
2006 rm = bm;
[all...]
/external/skia/src/gpu/
H A DSkGpuDevice.cpp1734 static bool wrap_as_bm(const SkImage* image, SkBitmap* bm) { argument
1737 GrWrapTextureInBitmap(tex, image->width(), image->height(), image->isOpaque(), bm);
1740 return as_IB(image)->getROPixels(bm);
1746 SkBitmap bm; local
1747 if (wrap_as_bm(image, &bm)) {
1748 this->drawBitmap(draw, bm, SkMatrix::MakeTrans(x, y), paint);
1754 SkBitmap bm; local
1755 if (wrap_as_bm(image, &bm)) {
1756 this->drawBitmapRect(draw, bm, src, dst, paint, SkCanvas::kNone_DrawBitmapRectFlag);

Completed in 2616 milliseconds

12345678910