Home
last modified time | relevance | path

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

/external/skia/samplecode/
DSampleNinePatch.cpp11 SkBitmap fBM; member in NinePatchView
14 SkImageDecoder::DecodeFile("/skimages/btn_default_normal_disable.9.png", &fBM); in NinePatchView()
19 r.set(1, 1, fBM.width() - 1, fBM.height() - 1); in NinePatchView()
20 fBM.extractSubset(&tmp, r); in NinePatchView()
21 fBM.swap(tmp); in NinePatchView()
23 fX = SkIntToScalar(fBM.width()); in NinePatchView()
73 canvas->drawBitmap(fBM, 0, 0); in onDrawContent()
80 margins.fLeft = fBM.width()/2 - 1; in onDrawContent()
81 margins.fTop = fBM.height()/2 - 1; in onDrawContent()
82 margins.fRight = fBM.width() - margins.fLeft - 1; in onDrawContent()
[all …]
DSampleDither.cpp113 SkBitmap fBM, fBMPreDither, fBM16; member in DitherView
117 make_bm(&fBM); in DitherView()
120 fBM.copyTo(&fBM16, SkBitmap::kARGB_4444_Config); in DitherView()
141 const SkScalar DX = SkIntToScalar(fBM.width() + 10); in onDrawContent()
146 canvas->drawBitmap(fBM, x, y, &paint); in onDrawContent()
149 canvas->drawBitmap(fBM, x, y, &paint); in onDrawContent()
160 draw_sweep(canvas, fBM.width(), fBM.height(), fAngle); in onDrawContent()
162 draw_sweep(canvas, fBM.width()>>1, fBM.height()>>1, fAngle); in onDrawContent()
164 draw_sweep(canvas, fBM.width()>>2, fBM.height()>>2, fAngle); in onDrawContent()
DSampleTextureDomain.cpp23 SkBitmap fBM; member in TextureDomainView
27 fBM = make_bitmap(); in TextureDomainView()
50 canvas->drawBitmapRect(fBM, &srcRect, dstRect, &paint); in onDrawContent()
64 secondCanvas.drawBitmapRect(fBM, &srcRect, dstRect, &paint); in onDrawContent()
DSampleTinyBitmap.cpp34 SkBitmap fBM; member in TinyBitmapView
37 fBM = make_bitmap(); in TinyBitmapView()
61 SkShader* s = SkShader::CreateBitmapShader(fBM, SkShader::kRepeat_TileMode, in onDrawContent()
DSampleBlur.cpp45 SkBitmap fBM; member in BlurView