Home
last modified time | relevance | path

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

/external/skqp/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 …]
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 sk_tool_utils::copy_to_g8(&tmp, fBM); in makeBitmap()
[all …]
Dfilterindiabox.cpp48 SkScalar cx = SkScalarHalf(fBM.width()); in onOnceBeforeDraw()
49 SkScalar cy = SkScalarHalf(fBM.height()); in onOnceBeforeDraw()
59 SkBitmap fBM; member in FilterIndiaBoxGM
83 SkSize size = computeSize(fBM, fMatrix[i]); in onDraw()
87 draw_row(canvas, fBM, fMatrix[i], size.fWidth); in onDraw()
101 if (!GetResourceAsBitmap(fFilename.c_str(), &fBM)) { in makeBitmap()
102 fBM.allocN32Pixels(1, 1); in makeBitmap()
103 fBM.eraseARGB(255, 255, 0 , 0); // red == bad in makeBitmap()
105 fSize = fBM.height(); in makeBitmap()
Dgiantbitmap.cpp22 SkBitmap* fBM; member in GiantBitmapGM
28 if (nullptr == 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(nullptr) { in GiantBitmapGM()
69 ~GiantBitmapGM() override { delete fBM; } in ~GiantBitmapGM()
Dshowmiplevels.cpp77 SkBitmap fBM[4]; member in ShowMipLevels
172 fBM[0] = sk_tool_utils::create_checkerboard_bitmap(fN, fN, SK_ColorBLACK, SK_ColorWHITE, 2); in onOnceBeforeDraw()
173 fBM[1] = make_bitmap(fN, fN); in onOnceBeforeDraw()
174 fBM[2] = make_bitmap2(fN, fN); in onOnceBeforeDraw()
175 fBM[3] = make_bitmap3(fN, fN); in onOnceBeforeDraw()
180 for (const auto& bm : fBM) { in onDraw()
217 SkBitmap fBM[4]; member in ShowMipLevels2
285 fBM[0] = sk_tool_utils::create_checkerboard_bitmap(fW, fH, in onOnceBeforeDraw()
287 fBM[1] = make_bitmap(fW, fH); in onOnceBeforeDraw()
288 fBM[2] = make_bitmap2(fW, fH); in onOnceBeforeDraw()
[all …]
Dbitmaprect.cpp228 SkBitmap fBM; member in BitmapRectRounding
245 fBM.allocN32Pixels(10, 10); in onOnceBeforeDraw()
246 fBM.eraseColor(SK_ColorBLUE); in onOnceBeforeDraw()
263 canvas->drawBitmapRect(fBM, r, nullptr); in onDraw()
Dimage_pict.cpp118 RasterGenerator(const SkBitmap& bm) : SkImageGenerator(bm.info()), fBM(bm) in RasterGenerator()
124 SkASSERT(fBM.width() == info.width()); in onGetPixels()
125 SkASSERT(fBM.height() == info.height()); in onGetPixels()
126 return fBM.readPixels(info, pixels, rowBytes, 0, 0); in onGetPixels()
129 SkBitmap fBM; member in RasterGenerator
/external/skqp/samplecode/
DSampleSubpixelTranslate.cpp30 if (!DecodeDataToBitmap(GetResourceAsData(imageFilename), &fBM)) { in SubpixelTranslateView()
31 fBM.allocN32Pixels(1, 1); in SubpixelTranslateView()
32 *(fBM.getAddr32(0,0)) = 0xFF0000FF; // red == bad in SubpixelTranslateView()
39 SkBitmap fBM; member in SubpixelTranslateView
70 canvas->drawBitmapRect( fBM, r, &paint ); in onDrawContent()
81 canvas->drawBitmapRect( fBM, r, &paint ); in onDrawContent()
90 …canvas->drawBitmap( fBM, fCurPos.fX + i * (fBM.width() + 10), fCurPos.fY + 2*(fSize + 10), &paint … in onDrawContent()
94 fCurPos.fX + SK_ARRAY_COUNT(gQualitys) * (fBM.width() + 10), in onDrawContent()
101 …canvas->drawBitmap( fBM, fCurPos.fX + i * (fBM.width() + 10), fCurPos.fY + 2*(fSize + 10) + fBM.he… in onDrawContent()
104 canvas->drawString("No Scale", fCurPos.fX + SK_ARRAY_COUNT(gQualitys) * (fBM.width() + 10), in onDrawContent()
[all …]
DSampleIdentityScale.cpp27 if (!DecodeDataToBitmap(GetResourceAsData(imageFilename), &fBM)) { in IdentityScaleView()
28 fBM.allocN32Pixels(1, 1); in IdentityScaleView()
29 *(fBM.getAddr32(0,0)) = 0xFF0000FF; // red == bad in IdentityScaleView()
34 SkBitmap fBM; member in IdentityScaleView
69 canvas->drawBitmap( fBM, 100, 100, &paint ); in onDrawContent()
DSampleTextureDomain.cpp28 SkBitmap fBM; member in TextureDomainView
32 fBM = make_bitmap(); in TextureDomainView()
54 canvas->drawBitmapRect(fBM, srcRect, dstRect, &paint, SkCanvas::kStrict_SrcRectConstraint); in onDrawContent()
65 surface->getCanvas()->drawBitmapRect(fBM, srcRect, dstRect, &paint, in onDrawContent()
93 canvas->drawBitmapRect(fBM, dstRect, &paint); in onDrawContent()
/external/skia/gm/
Dfilterindiabox.cpp48 SkBitmap fBM; member in __anon59eabab70111::FilterIndiaBoxGM
53 if (!GetResourceAsBitmap(kResource, &fBM)) { in onOnceBeforeDraw()
54 fBM.allocN32Pixels(1, 1); in onOnceBeforeDraw()
55 fBM.eraseARGB(255, 255, 0 , 0); // red == bad in onOnceBeforeDraw()
57 fBM.setImmutable(); in onOnceBeforeDraw()
59 SkScalar cx = SkScalarHalf(fBM.width()); in onOnceBeforeDraw()
60 SkScalar cy = SkScalarHalf(fBM.height()); in onOnceBeforeDraw()
76 SkSize size = computeSize(fBM, fMatrix[i]); in onDraw()
80 draw_row(canvas, fBM, fMatrix[i], size.fWidth); in onDraw()
Dgiantbitmap.cpp30 SkBitmap* fBM; member in GiantBitmapGM
36 if (nullptr == fBM) { in getBitmap()
37 fBM = new SkBitmap; in getBitmap()
38 fBM->allocN32Pixels(W, H); in getBitmap()
39 fBM->eraseColor(SK_ColorWHITE); in getBitmap()
45 SkCanvas canvas(*fBM); in getBitmap()
67 return *fBM; in getBitmap()
71 GiantBitmapGM(SkTileMode mode, bool doFilter, bool doRotate) : fBM(nullptr) { in GiantBitmapGM()
77 ~GiantBitmapGM() override { delete fBM; } in ~GiantBitmapGM()
Dbitmaprect.cpp244 SkBitmap fBM; member in BitmapRectRounding
261 fBM.allocN32Pixels(10, 10); in onOnceBeforeDraw()
262 fBM.eraseColor(SK_ColorBLUE); in onOnceBeforeDraw()
279 canvas->drawImageRect(fBM.asImage(), r, SkSamplingOptions()); in onDraw()
Dimage_pict.cpp140 RasterGenerator(const SkBitmap& bm) : SkImageGenerator(bm.info()), fBM(bm) in RasterGenerator()
146 SkASSERT(fBM.width() == info.width()); in onGetPixels()
147 SkASSERT(fBM.height() == info.height()); in onGetPixels()
148 return fBM.readPixels(info, pixels, rowBytes, 0, 0); in onGetPixels()
151 SkBitmap fBM; member in RasterGenerator
/external/skqp/tools/mdbviz/
DModel.h44 void* getPixels() const { return fBM.getPixels(); } in getPixels()
45 int width() const { return fBM.width(); } in width()
46 int height() const { return fBM.height(); } in height()
56 SkBitmap fBM; variable
DModel.cpp20 fBM.allocPixels(ii, 0); in Model()
97 SkCanvas canvas(fBM); in drawTo()
/external/skia/tools/mdbviz/
DModel.h44 void* getPixels() const { return fBM.getPixels(); } in getPixels()
45 int width() const { return fBM.width(); } in width()
46 int height() const { return fBM.height(); } in height()
56 SkBitmap fBM; variable
DModel.cpp20 fBM.allocPixels(ii, 0); in Model()
95 SkCanvas canvas(fBM); in drawTo()
/external/skqp/bench/
DReadPixBench.cpp118 fBM.allocPixels(SkImageInfo::Make(1024, 1024, fCT, kPremul_SkAlphaType)); in onDelayedSetup()
119 fBM.eraseColor(0x88112233); in onDelayedSetup()
132 for (int y = 0; y < fBM.height(); ++y) { in onDraw()
133 for (int x = 0; x < fBM.width(); ++x) { in onDraw()
134 fBM.getAlphaf(x, y); in onDraw()
141 SkBitmap fBM; member in GetAlphafBench
/external/skia/bench/
DReadPixBench.cpp115 fBM.allocPixels(SkImageInfo::Make(1024, 1024, fCT, kPremul_SkAlphaType)); in onDelayedSetup()
116 fBM.eraseColor(0x88112233); in onDelayedSetup()
129 for (int y = 0; y < fBM.height(); ++y) { in onDraw()
130 for (int x = 0; x < fBM.width(); ++x) { in onDraw()
131 fBM.getAlphaf(x, y); in onDraw()
138 SkBitmap fBM; member in GetAlphafBench
/external/skqp/src/ports/
DSkFontHost_win.cpp432 fBM = 0; in HDCOffscreen()
442 if (fBM) { in ~HDCOffscreen()
443 DeleteObject(fBM); in ~HDCOffscreen()
456 HBITMAP fBM; member in HDCOffscreen
484 if (fBM && (fIsBW != isBW || fWidth < glyph.fWidth || fHeight < glyph.fHeight)) { in draw()
485 DeleteObject(fBM); in draw()
486 fBM = 0; in draw()
495 if (0 == fBM) { in draw()
513 fBM = CreateDIBSection(fDC, &info, DIB_RGB_COLORS, &fBits, 0, 0); in draw()
514 if (0 == fBM) { in draw()
[all …]
/external/skia/src/ports/
DSkFontHost_win.cpp451 if (fBM) { in ~HDCOffscreen()
452 DeleteObject(fBM); in ~HDCOffscreen()
466 HBITMAP fBM{0}; member in HDCOffscreen
494 if (fBM && (fIsBW != isBW || fWidth < glyph.width() || fHeight < glyph.height())) { in draw()
495 DeleteObject(fBM); in draw()
496 fBM = 0; in draw()
505 if (0 == fBM) { in draw()
523 fBM = CreateDIBSection(fDC, &info, DIB_RGB_COLORS, &fBits, 0, 0); in draw()
524 if (0 == fBM) { in draw()
527 SelectObject(fDC, fBM); in draw()