Searched defs:fBM (Results 1 - 16 of 16) sorted by relevance

/external/skia/gm/
H A Dbitmapsource2.cpp42 fBM.allocN32Pixels(kImageSize, kImageSize, true);
44 SkCanvas canvas(fBM);
64 SkAutoTUnref<SkImageFilter> filter(SkBitmapSource::Create(fBM, srcRect, dstRect, fFilter));
78 SkBitmap fBM; member in class:skiagm::BitmapSourceGM
H A Danisotropic.cpp34 fBM.allocN32Pixels(kImageSize, kImageSize, true);
36 SkCanvas canvas(fBM);
58 canvas->drawBitmapRect(fBM, r, &p);
68 int height = SkScalarFloorToInt(fBM.height() * gScales[i]);
72 yOff = kSpacer + i * (fBM.height() + kSpacer);
75 yOff = (SK_ARRAY_COUNT(gScales) - i) * (fBM.height() + kSpacer) - height;
78 this->draw(canvas, kSpacer, yOff, fBM.width(), height);
83 int width = SkScalarFloorToInt(fBM.width() * gScales[i]);
87 xOff = fBM.width() + 2*kSpacer;
88 yOff = kSpacer + i * (fBM
104 SkBitmap fBM; member in class:skiagm::AnisotropicGM
[all...]
H A Dfilterindiabox.cpp49 SkScalar cx = SkScalarHalf(fBM.width());
50 SkScalar cy = SkScalarHalf(fBM.height());
60 SkBitmap fBM; member in class:FilterIndiaBoxGM
84 SkSize size = computeSize(fBM, fMatrix[i]);
88 draw_row(canvas, fBM, fMatrix[i], size.fWidth);
110 codec->decode(&stream, &fBM, kN32_SkColorType, SkImageDecoder::kDecodePixels_Mode);
113 fBM.allocN32Pixels(1, 1);
114 *(fBM.getAddr32(0,0)) = 0xFF0000FF; // red == bad
116 fSize = fBM.height();
H A Dninepatchstretch.cpp42 SkBitmap fBM; member in class:skiagm::NinePatchStretchGM
H A Dbitmaprect.cpp233 SkBitmap fBM; member in class:BitmapRectRounding
250 fBM.allocN32Pixels(10, 10);
251 fBM.eraseColor(SK_ColorBLUE);
268 canvas->drawBitmapRect(fBM, NULL, r, NULL);
H A Dfilterbitmap.cpp50 SkScalar cx = SkScalarHalf(fBM.width());
51 SkScalar cy = SkScalarHalf(fBM.height());
63 SkBitmap fBM; member in class:FilterBitmapGM
89 SkSize size = computeSize(fBM, fMatrix[i]);
93 draw_row(canvas, fBM, fMatrix[i], size.fWidth);
118 fBM.allocN32Pixels(int(fTextSize * 8), int(fTextSize * 6));
119 SkCanvas canvas(fBM);
158 fBM.allocN32Pixels(fSize, fSize);
161 SkPMColor* s = fBM.getAddr32(x, y);
173 fBM
[all...]
H A Dgiantbitmap.cpp22 SkBitmap* fBM; member in class:GiantBitmapGM
28 if (NULL == fBM) {
29 fBM = new SkBitmap;
30 fBM->allocN32Pixels(W, H);
31 fBM->eraseColor(SK_ColorWHITE);
37 SkCanvas canvas(*fBM);
59 return *fBM;
63 GiantBitmapGM(SkShader::TileMode mode, bool doFilter, bool doRotate) : fBM(NULL) {
70 SkDELETE(fBM);
H A Ddownsamplebitmap.cpp39 SkBitmap fBM; member in class:DownsampleBitmapGM
66 return SkISize::Make(fBM.width(), 4 * fBM.height());
95 canvas->drawBitmap(fBM, 0, 0, &paint);
98 curHeight = (int) (fBM.height() * curScale + 2);
101 } while (curHeight >= 2 && curY < 4*fBM.height());
120 fBM.allocN32Pixels(int(fTextSize * 8), int(fTextSize * 6));
121 SkCanvas canvas(fBM);
155 make_checker(&fBM, fSize, fNumChecks);
182 codec->decode(&stream, &fBM, kN32_SkColorTyp
202 SkBitmap fBM; member in class:ShowMipLevels
[all...]
/external/skia/samplecode/
H A DSampleIdentityScale.cpp34 codec->decode(&stream, &fBM, kN32_SkColorType, SkImageDecoder::kDecodePixels_Mode);
37 fBM.allocN32Pixels(1, 1);
38 *(fBM.getAddr32(0,0)) = 0xFF0000FF; // red == bad
43 SkBitmap fBM; member in class:IdentityScaleView
79 canvas->drawBitmap( fBM, 100, 100, &paint );
H A DSampleSubpixelTranslate.cpp37 codec->decode(&stream, &fBM, kN32_SkColorType, SkImageDecoder::kDecodePixels_Mode);
40 fBM.allocN32Pixels(1, 1);
41 *(fBM.getAddr32(0,0)) = 0xFF0000FF; // red == bad
48 SkBitmap fBM; member in class:SubpixelTranslateView
80 canvas->drawBitmapRect( fBM, r, &paint );
89 canvas->drawBitmapRect( fBM, r, &paint );
96 canvas->drawBitmap( fBM, fCurPos.fX + i * (fBM.width() + 10), fCurPos.fY + 2*(fSize + 10), &paint );
99 canvas->drawText( "AA No Scale", strlen("AA No Scale"), fCurPos.fX + SK_ARRAY_COUNT(gQualitys) * (fBM.width() + 10), fCurPos.fY + 2*(fSize + 10) + fSize/2, paint );
104 canvas->drawBitmap( fBM, fCurPo
[all...]
H A DSampleTextureDomain.cpp29 SkBitmap fBM; member in class:TextureDomainView
33 fBM = make_bitmap();
56 canvas->drawBitmapRectToRect(fBM, &srcRect, dstRect, &paint);
67 surface->getCanvas()->drawBitmapRectToRect(fBM, &srcRect, dstRect,
101 canvas->drawBitmapRectToRect(fBM, NULL, dstRect, &paint);
H A DSampleTinyBitmap.cpp42 SkBitmap fBM; member in class:TinyBitmapView
45 fBM = make_bitmap();
65 SkShader* s = SkShader::CreateBitmapShader(fBM, SkShader::kRepeat_TileMode,
H A DSampleBlur.cpp54 SkBitmap fBM; member in class:BlurView
58 fBM = make_bitmap();
H A DSampleDither.cpp114 SkBitmap fBM, fBMPreDither, fBM16; member in class:DitherView
118 make_bm(&fBM);
121 fBM.copyTo(&fBM16, kARGB_4444_SkColorType);
142 const SkScalar DX = SkIntToScalar(fBM.width() + 10);
147 canvas->drawBitmap(fBM, x, y, &paint);
150 canvas->drawBitmap(fBM, x, y, &paint);
161 draw_sweep(canvas, fBM.width(), fBM.height(), fAngle);
163 draw_sweep(canvas, fBM.width()>>1, fBM
[all...]
/external/skia/src/gpu/
H A DGrSWMaskHelper.h72 fBM.eraseColor(SkColorSetARGB(alpha, alpha, alpha, alpha));
108 SkBitmap fBM; member in class:GrSWMaskHelper
135 // Compresses the bitmap stored in fBM and sends the compressed data
/external/skia/src/ports/
H A DSkFontHost_win.cpp419 fBM = 0;
429 if (fBM) {
430 DeleteObject(fBM);
443 HBITMAP fBM; member in class:HDCOffscreen
446 void* fBits; // points into fBM
471 if (fBM && (fIsBW != isBW || fWidth < glyph.fWidth || fHeight < glyph.fHeight)) {
472 DeleteObject(fBM);
473 fBM = 0;
482 if (0 == fBM) {
500 fBM
[all...]

Completed in 437 milliseconds