Home
last modified time | relevance | path

Searched refs:fBM (Results 1 – 17 of 17) sorted by relevance

/external/skia/gm/
Danisotropic.cpp34 fBM.allocN32Pixels(kImageSize, kImageSize, true); in onOnceBeforeDraw()
36 SkCanvas canvas(fBM); in onOnceBeforeDraw()
58 canvas->drawBitmapRect(fBM, r, &p); in draw()
68 int height = SkScalarFloorToInt(fBM.height() * gScales[i]); in onDraw()
72 yOff = kSpacer + i * (fBM.height() + kSpacer); in onDraw()
75 yOff = (SK_ARRAY_COUNT(gScales) - i) * (fBM.height() + kSpacer) - height; in onDraw()
78 this->draw(canvas, kSpacer, yOff, fBM.width(), height); in onDraw()
83 int width = SkScalarFloorToInt(fBM.width() * gScales[i]); in onDraw()
87 xOff = fBM.width() + 2*kSpacer; in onDraw()
88 yOff = kSpacer + i * (fBM.height() + kSpacer); in onDraw()
[all …]
Ddownsamplebitmap.cpp39 SkBitmap fBM; member in DownsampleBitmapGM
66 return SkISize::Make(fBM.width(), 4 * fBM.height()); in onISize()
95 canvas->drawBitmap(fBM, 0, 0, &paint); in onDraw()
98 curHeight = (int) (fBM.height() * curScale + 2); in onDraw()
101 } while (curHeight >= 2 && curY < 4*fBM.height()); in onDraw()
120 fBM.allocN32Pixels(int(fTextSize * 8), int(fTextSize * 6)); in make_bitmap()
121 SkCanvas canvas(fBM); in make_bitmap()
155 make_checker(&fBM, fSize, fNumChecks); in make_bitmap()
182 codec->decode(&stream, &fBM, kN32_SkColorType, SkImageDecoder::kDecodePixels_Mode); in make_bitmap()
185 fBM.allocN32Pixels(1, 1); in make_bitmap()
[all …]
Dfilterbitmap.cpp50 SkScalar cx = SkScalarHalf(fBM.width()); in onOnceBeforeDraw()
51 SkScalar cy = SkScalarHalf(fBM.height()); in onOnceBeforeDraw()
63 SkBitmap fBM; member in FilterBitmapGM
89 SkSize size = computeSize(fBM, fMatrix[i]); in onDraw()
93 draw_row(canvas, fBM, fMatrix[i], size.fWidth); in onDraw()
118 fBM.allocN32Pixels(int(fTextSize * 8), int(fTextSize * 6)); in makeBitmap()
119 SkCanvas canvas(fBM); in makeBitmap()
158 fBM.allocN32Pixels(fSize, fSize); in makeBitmap()
161 SkPMColor* s = fBM.getAddr32(x, y); in makeBitmap()
173 fBM.copyTo(&tmp, kGray_8_SkColorType); in makeBitmap()
[all …]
Dfilterindiabox.cpp49 SkScalar cx = SkScalarHalf(fBM.width()); in onOnceBeforeDraw()
50 SkScalar cy = SkScalarHalf(fBM.height()); in onOnceBeforeDraw()
60 SkBitmap fBM; member in FilterIndiaBoxGM
84 SkSize size = computeSize(fBM, fMatrix[i]); in onDraw()
88 draw_row(canvas, fBM, fMatrix[i], size.fWidth); in onDraw()
110 codec->decode(&stream, &fBM, kN32_SkColorType, SkImageDecoder::kDecodePixels_Mode); in makeBitmap()
113 fBM.allocN32Pixels(1, 1); in makeBitmap()
114 *(fBM.getAddr32(0,0)) = 0xFF0000FF; // red == bad in makeBitmap()
116 fSize = fBM.height(); in makeBitmap()
Dgiantbitmap.cpp22 SkBitmap* fBM; member in GiantBitmapGM
28 if (NULL == fBM) { in getBitmap()
29 fBM = new SkBitmap; in getBitmap()
30 fBM->allocN32Pixels(W, H); in getBitmap()
31 fBM->eraseColor(SK_ColorWHITE); in getBitmap()
37 SkCanvas canvas(*fBM); in getBitmap()
59 return *fBM; in getBitmap()
63 GiantBitmapGM(SkShader::TileMode mode, bool doFilter, bool doRotate) : fBM(NULL) { in GiantBitmapGM()
70 SkDELETE(fBM); in ~GiantBitmapGM()
Dbitmapsource2.cpp42 fBM.allocN32Pixels(kImageSize, kImageSize, true); in onOnceBeforeDraw()
44 SkCanvas canvas(fBM); in onOnceBeforeDraw()
64 SkAutoTUnref<SkImageFilter> filter(SkBitmapSource::Create(fBM, srcRect, dstRect, fFilter)); in onDraw()
78 SkBitmap fBM; member in skiagm::BitmapSourceGM
Dbitmaprect.cpp233 SkBitmap fBM; member in BitmapRectRounding
250 fBM.allocN32Pixels(10, 10); in onOnceBeforeDraw()
251 fBM.eraseColor(SK_ColorBLUE); in onOnceBeforeDraw()
268 canvas->drawBitmapRect(fBM, NULL, r, NULL); in onDraw()
Dninepatchstretch.cpp42 SkBitmap fBM; member in skiagm::NinePatchStretchGM
/external/skia/samplecode/
DSampleSubpixelTranslate.cpp37 codec->decode(&stream, &fBM, kN32_SkColorType, SkImageDecoder::kDecodePixels_Mode); in SubpixelTranslateView()
40 fBM.allocN32Pixels(1, 1); in SubpixelTranslateView()
41 *(fBM.getAddr32(0,0)) = 0xFF0000FF; // red == bad in SubpixelTranslateView()
48 SkBitmap fBM; member in SubpixelTranslateView
80 canvas->drawBitmapRect( fBM, r, &paint ); in onDrawContent()
89 canvas->drawBitmapRect( fBM, r, &paint ); in onDrawContent()
96 …canvas->drawBitmap( fBM, fCurPos.fX + i * (fBM.width() + 10), fCurPos.fY + 2*(fSize + 10), &paint … in onDrawContent()
99 …o Scale", strlen("AA No Scale"), fCurPos.fX + SK_ARRAY_COUNT(gQualitys) * (fBM.width() + 10), fCur… in onDrawContent()
104 …canvas->drawBitmap( fBM, fCurPos.fX + i * (fBM.width() + 10), fCurPos.fY + 2*(fSize + 10) + fBM.he… in onDrawContent()
107 …cale"), fCurPos.fX + SK_ARRAY_COUNT(gQualitys) * (fBM.width() + 10), fCurPos.fY + 2*(fSize + 10) +… in onDrawContent()
DSampleDither.cpp114 SkBitmap fBM, fBMPreDither, fBM16; member in DitherView
118 make_bm(&fBM); in DitherView()
121 fBM.copyTo(&fBM16, kARGB_4444_SkColorType); in DitherView()
142 const SkScalar DX = SkIntToScalar(fBM.width() + 10); in onDrawContent()
147 canvas->drawBitmap(fBM, x, y, &paint); in onDrawContent()
150 canvas->drawBitmap(fBM, x, y, &paint); in onDrawContent()
161 draw_sweep(canvas, fBM.width(), fBM.height(), fAngle); in onDrawContent()
163 draw_sweep(canvas, fBM.width()>>1, fBM.height()>>1, fAngle); in onDrawContent()
165 draw_sweep(canvas, fBM.width()>>2, fBM.height()>>2, fAngle); in onDrawContent()
DSampleIdentityScale.cpp34 codec->decode(&stream, &fBM, kN32_SkColorType, SkImageDecoder::kDecodePixels_Mode); in IdentityScaleView()
37 fBM.allocN32Pixels(1, 1); in IdentityScaleView()
38 *(fBM.getAddr32(0,0)) = 0xFF0000FF; // red == bad in IdentityScaleView()
43 SkBitmap fBM; member in IdentityScaleView
79 canvas->drawBitmap( fBM, 100, 100, &paint ); in onDrawContent()
DSampleTextureDomain.cpp29 SkBitmap fBM; member in TextureDomainView
33 fBM = make_bitmap(); in TextureDomainView()
56 canvas->drawBitmapRectToRect(fBM, &srcRect, dstRect, &paint); in onDrawContent()
67 surface->getCanvas()->drawBitmapRectToRect(fBM, &srcRect, dstRect, in onDrawContent()
101 canvas->drawBitmapRectToRect(fBM, NULL, dstRect, &paint); in onDrawContent()
DSampleTinyBitmap.cpp42 SkBitmap fBM; member in TinyBitmapView
45 fBM = make_bitmap(); in TinyBitmapView()
65 SkShader* s = SkShader::CreateBitmapShader(fBM, SkShader::kRepeat_TileMode, in onDrawContent()
DSampleBlur.cpp54 SkBitmap fBM; member in BlurView
58 fBM = make_bitmap(); in BlurView()
/external/skia/src/gpu/
DGrSWMaskHelper.cpp148 fBM.width(), fBM.height(), fCompressedBuffer.get(), &allocator, fCompressedFormat); in draw()
209 if (!fBM.tryAllocPixels(bmImageInfo)) { in init()
213 sk_bzero(fBM.getPixels(), fBM.getSafeSize()); in init()
216 fBM.setInfo(bmImageInfo); in init()
225 fDraw.fBitmap = &fBM; in init()
234 desc.fWidth = fBM.width(); in createTexture()
235 desc.fHeight = fBM.height(); in createTexture()
275 SkAutoDataUnref cmpData(SkTextureCompressor::CompressBitmapToFormat(fBM, fCompressedFormat)); in compressTextureData()
285 SkAutoLockPixels alp(fBM); in toTexture()
288 desc.fWidth = fBM.width(); in toTexture()
[all …]
DGrSWMaskHelper.h72 fBM.eraseColor(SkColorSetARGB(alpha, alpha, alpha, alpha)); in clear()
108 SkBitmap fBM; variable
/external/skia/src/ports/
DSkFontHost_win.cpp419 fBM = 0; in HDCOffscreen()
429 if (fBM) { in ~HDCOffscreen()
430 DeleteObject(fBM); in ~HDCOffscreen()
443 HBITMAP fBM; member in HDCOffscreen
471 if (fBM && (fIsBW != isBW || fWidth < glyph.fWidth || fHeight < glyph.fHeight)) { in draw()
472 DeleteObject(fBM); in draw()
473 fBM = 0; in draw()
482 if (0 == fBM) { in draw()
500 fBM = CreateDIBSection(fDC, &info, DIB_RGB_COLORS, &fBits, 0, 0); in draw()
501 if (0 == fBM) { in draw()
[all …]