/external/skia/gm/ |
anisotropic.cpp | 34 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.height() + kSpacer) [all...] |
giantbitmap.cpp | 22 SkBitmap* fBM; 28 if (nullptr == 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(nullptr) { 69 virtual ~GiantBitmapGM() { delete fBM; }
|
filterbitmap.cpp | 50 SkScalar cx = SkScalarHalf(fBM.width()); 51 SkScalar cy = SkScalarHalf(fBM.height()); 63 SkBitmap fBM; 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.copyTo(&tmp, kGray_8_SkColorType) [all...] |
avoidxfermode.cpp | 35 codec->decode(&stream, &fBM, kN32_SkColorType, SkImageDecoder::kDecodePixels_Mode); 38 fBM.allocN32Pixels(1, 1); 39 fBM.eraseARGB(255, 255, 0 , 0); // red == bad 44 canvas->drawBitmap(fBM, 0, 0); 92 SkBitmap fBM;
|
pixelxorxfermode.cpp | 35 codec->decode(&stream, &fBM, kN32_SkColorType, SkImageDecoder::kDecodePixels_Mode); 38 fBM.allocN32Pixels(1, 1); 39 fBM.eraseARGB(255, 255, 0 , 0); // red == bad 44 canvas->drawBitmap(fBM, 0, 0); 86 SkBitmap fBM;
|
filterindiabox.cpp | 49 SkScalar cx = SkScalarHalf(fBM.width()); 50 SkScalar cy = SkScalarHalf(fBM.height()); 60 SkBitmap fBM; 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();
|
downsamplebitmap.cpp | 39 SkBitmap fBM; 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_SkColorType, SkImageDecoder::kDecodePixels_Mode) [all...] |
showmiplevels.cpp | 78 SkBitmap fBM[4]; 110 fBM[0] = sk_tool_utils::create_checkerboard_bitmap(N, N, SK_ColorBLACK, SK_ColorWHITE, 2); 111 fBM[1] = make_bitmap(N, N); 112 fBM[2] = make_bitmap2(N, N); 113 fBM[3] = make_bitmap3(N, N); 203 for (const auto& bm : fBM) { 222 SkBitmap fBM[4]; 226 fBM[0] = sk_tool_utils::create_checkerboard_bitmap(w, h, SHOW_MIP_COLOR, SK_ColorWHITE, 2); 227 fBM[1] = make_bitmap(w, h); 228 fBM[2] = make_bitmap2(w, h) [all...] |
image_pict.cpp | 111 RasterGenerator(const SkBitmap& bm) : SkImageGenerator(bm.info()), fBM(bm) { 112 fBM.lockPixels(); 117 SkASSERT(fBM.width() == info.width()); 118 SkASSERT(fBM.height() == info.height()); 121 if (SkColorTable* ct = fBM.getColorTable()) { 130 memcpy(pixels, fBM.getAddr8(0, y), fBM.width()); 138 return fBM.readPixels(info, pixels, rowBytes, 0, 0); 142 SkBitmap fBM;
|
bitmaprect.cpp | 231 SkBitmap fBM; 248 fBM.allocN32Pixels(10, 10); 249 fBM.eraseColor(SK_ColorBLUE); 266 canvas->drawBitmapRect(fBM, r, nullptr);
|
/external/skia/samplecode/ |
SampleSubpixelTranslate.cpp | 37 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; 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, fCurPos.fX + i * (fBM.width() + 10), fCurPos.fY + 2*(fSize + 10) + fBM.height() + 10, &paint ) [all...] |
SampleIdentityScale.cpp | 35 codec->decode(&stream, &fBM, kN32_SkColorType, SkImageDecoder::kDecodePixels_Mode); 38 fBM.allocN32Pixels(1, 1); 39 *(fBM.getAddr32(0,0)) = 0xFF0000FF; // red == bad 44 SkBitmap fBM; 80 canvas->drawBitmap( fBM, 100, 100, &paint );
|
SampleDither.cpp | 114 SkBitmap fBM, fBMPreDither, fBM16; 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.height()>>1, fAngle) [all...] |
SampleTinyBitmap.cpp | 42 SkBitmap fBM; 45 fBM = make_bitmap(); 65 SkShader* s = SkShader::CreateBitmapShader(fBM, SkShader::kRepeat_TileMode,
|
SampleTextureDomain.cpp | 29 SkBitmap fBM; 33 fBM = make_bitmap(); 56 canvas->drawBitmapRect(fBM, srcRect, dstRect, &paint, SkCanvas::kStrict_SrcRectConstraint); 67 surface->getCanvas()->drawBitmapRect(fBM, srcRect, dstRect, &paint, 101 canvas->drawBitmapRect(fBM, dstRect, &paint);
|
SampleBlur.cpp | 54 SkBitmap fBM; 58 fBM = make_bitmap();
|
/external/skia/src/utils/ |
SkImageGeneratorUtils.cpp | 24 GeneratorFromBitmap(const SkBitmap& bm) : SkImageGenerator(bm.info()), fBM(bm) { 26 bm.copyTo(&fBM); 33 return fBM.readPixels(info, pixels, rowBytes, 0, 0); 37 SkBitmap fBM;
|
/external/skia/src/ports/ |
SkFontHost_win.cpp | 421 fBM = 0; 431 if (fBM) { 432 DeleteObject(fBM); 445 HBITMAP fBM; 448 void* fBits; // points into fBM 473 if (fBM && (fIsBW != isBW || fWidth < glyph.fWidth || fHeight < glyph.fHeight)) { 474 DeleteObject(fBM); 475 fBM = 0; 484 if (0 == fBM) { 502 fBM = CreateDIBSection(fDC, &info, DIB_RGB_COLORS, &fBits, 0, 0) [all...] |