/external/skia/gm/ |
D | xfermodeimagefilter.cpp | 38 fBitmap = sk_tool_utils::create_string_bitmap(80, 80, 0xD000D000, 15, 65, 96, "e"); in onOnceBeforeDraw() 88 DrawClippedBitmap(canvas, fBitmap, paint, x, y); in onDraw() 89 x += fBitmap.width() + MARGIN; in onDraw() 90 if (x + fBitmap.width() > WIDTH) { in onDraw() 92 y += fBitmap.height() + MARGIN; in onDraw() 98 DrawClippedBitmap(canvas, fBitmap, paint, x, y); in onDraw() 99 x += fBitmap.width() + MARGIN; in onDraw() 100 if (x + fBitmap.width() > WIDTH) { in onDraw() 102 y += fBitmap.height() + MARGIN; in onDraw() 106 DrawClippedBitmap(canvas, fBitmap, paint, x, y); in onDraw() [all …]
|
D | tileimagefilter.cpp | 38 fBitmap = SkImage::MakeFromBitmap( in onOnceBeforeDraw() 59 sk_sp<SkImage> image = (i & 0x01) ? fCheckerboard : fBitmap; in onDraw() 76 canvas->drawImage(fBitmap.get(), 0, 0, &paint); in onDraw() 92 SkRect srcRect = SkRect::MakeWH(SkIntToScalar(fBitmap->width()), in onDraw() 93 SkIntToScalar(fBitmap->height())); in onDraw() 94 SkRect dstRect = SkRect::MakeWH(SkIntToScalar(fBitmap->width() * 2), in onDraw() 95 SkIntToScalar(fBitmap->height() * 2)); in onDraw() 105 canvas->drawImage(fBitmap.get(), 0, 0); in onDraw() 127 sk_sp<SkImage> fBitmap, fCheckerboard; member in skiagm::TileImageFilterGM
|
D | morphology.cpp | 29 fBitmap.allocN32Pixels(135, 135); in onOnceBeforeDraw() 30 SkCanvas canvas(fBitmap); in onOnceBeforeDraw() 51 SkIntToScalar(fBitmap.width()), SkIntToScalar(fBitmap.height()))); in drawClippedBitmap() 52 canvas->drawBitmap(fBitmap, 0, 0, &paint); in drawClippedBitmap() 90 SkBitmap fBitmap; member in skiagm::MorphologyGM
|
D | matrixconvolution.cpp | 52 fBitmap.setInfo(SkImageInfo::MakeS32(80, 80, kPremul_SkAlphaType)); in makeBitmap() 53 fBitmap.setPixelRef(sk_ref_sp(n32Bitmap.pixelRef()), 0, 0); in makeBitmap() 95 canvas->clipRect(SkRect::MakeWH(SkIntToScalar(fBitmap.width()), in draw() 96 SkIntToScalar(fBitmap.height()))); in draw() 97 canvas->drawBitmap(fBitmap, 0, 0, &paint); in draw() 110 SkImageFilter::CropRect rect(SkRect::Make(fBitmap.bounds())); in onDraw() 129 SkBitmap fBitmap; member in skiagm::MatrixConvolutionGM
|
D | ninepatchstretch.cpp | 58 SkBitmap fBitmap; member in NinePatchStretchGM 73 if (nullptr == fBitmap.pixelRef()) { in onDraw() 75 image_to_bitmap(fImage.get(), &fBitmap); in onDraw() 79 const SkScalar fixed = SkIntToScalar(fBitmap.width() - fCenter.width()); in onDraw() 88 canvas->drawBitmap(fBitmap, 10, 10, nullptr); in onDraw() 102 canvas->drawBitmapNine(fBitmap, fCenter, r, &paint); in onDraw()
|
D | gm_expectations.h | 87 explicit BitmapAndDigest(const SkBitmap &bitmap) : fBitmap(bitmap), fDigest(bitmap) {} in BitmapAndDigest() 89 const SkBitmap fBitmap; variable 152 return (kUnknown_SkColorType == fBitmap.colorType()) ? nullptr : &fBitmap; in asBitmap() 165 SkBitmap fBitmap; variable
|
D | shadows.cpp | 34 SkBitmap fBitmap; member in skiagm::ShadowsGM 42 fBitmap.allocPixels(SkImageInfo::Make(20, 20, SkColorType::kAlpha_8_SkColorType, in onOnceBeforeDraw() 44 SkCanvas canvas(fBitmap); in onOnceBeforeDraw() 109 canvas->drawBitmap(fBitmap, 10, 10, &paint); in onDraw() 113 fBitmap, SkShader::kRepeat_TileMode, in onDraw()
|
/external/mesa3d/src/gallium/targets/haiku-softpipe/ |
D | SoftwareRenderer.cpp | 47 fBitmap(NULL), in SoftwareRenderer() 80 fContextID = fContextObj->CreateContext(fBitmap); in SoftwareRenderer() 101 if (fBitmap) in ~SoftwareRenderer() 102 delete fBitmap; in ~SoftwareRenderer() 120 if (fBitmap && cs == fColorSpace && fContextObj->Validate(fWidth, fHeight)) { in LockGL() 121 fContextObj->SetCurrentContext(fBitmap, fContextID); in LockGL() 128 fContextObj->SetCurrentContext(fBitmap, fContextID); in LockGL() 148 if (!fBitmap) in SwapBuffers() 159 GLView()->DrawBitmap(fBitmap, B_ORIGIN); in SwapBuffers() 169 != fBitmap->Bounds().IntegerHeight() in SwapBuffers() [all …]
|
/external/skia/src/image/ |
D | SkSurface_Raster.cpp | 29 SkBitmap fBitmap; member in SkSurface_Raster 102 fBitmap.installPixels(info, pixels, rb, releaseProc, context); in SkSurface_Raster() 111 fBitmap.setInfo(info, pr->rowBytes()); in SkSurface_Raster() 113 fBitmap.setPixelRef(std::move(pr), 0, 0); in SkSurface_Raster() 117 SkCanvas* SkSurface_Raster::onNewCanvas() { return new SkCanvas(fBitmap, this->props()); } in onNewCanvas() 125 canvas->drawBitmap(fBitmap, x, y, paint); in onDraw() 133 if (SkPixelRef* pr = fBitmap.pixelRef()) { in onNewImageSnapshot() 142 return SkMakeImageFromRasterBitmap(fBitmap, cpm); in onNewImageSnapshot() 147 if (SkPixelRef* pr = fBitmap.pixelRef()) { in onRestoreBackingMutability() 156 if (SkBitmapImageGetPixelRef(cached.get()) == fBitmap.pixelRef()) { in onCopyOnWrite() [all …]
|
D | SkImage_Raster.cpp | 79 return fBitmap.info(); in onImageInfo() 82 return fBitmap.alphaType(); in onAlphaType() 87 const SkBitmap* onPeekBitmap() const override { return &fBitmap; } in onPeekBitmap() 98 SkPixelRef* getPixelRef() const { return fBitmap.pixelRef(); } in getPixelRef() 106 , fBitmap(bm) in SkImage_Raster() 108 SkASSERT(bitmapMayBeMutable || fBitmap.isImmutable()); in SkImage_Raster() 123 SkBitmap fBitmap; member in SkImage_Raster 146 fBitmap.installPixels(info, addr, rowBytes, release_data, data.release()); in SkImage_Raster() 147 fBitmap.setImmutable(); in SkImage_Raster() 158 SkBitmap shallowCopy(fBitmap); in onReadPixels() [all …]
|
/external/skia/tools/skdiff/ |
D | skdiff_utils.cpp | 45 if (!resource.fBitmap.setInfo(codec->getInfo().makeColorType(kN32_SkColorType))) { in get_bitmap() 55 if (!resource.fBitmap.tryAllocPixels()) { in get_bitmap() 61 if (SkCodec::kSuccess != codec->getPixels(resource.fBitmap.info(), in get_bitmap() 62 resource.fBitmap.getPixels(), resource.fBitmap.rowBytes())) { in get_bitmap() 136 const int w = drp->fBase.fBitmap.width(); in create_and_write_diff_image() 137 const int h = drp->fBase.fBitmap.height(); in create_and_write_diff_image() 139 if (w != drp->fComparison.fBitmap.width() || h != drp->fComparison.fBitmap.height()) { in create_and_write_diff_image() 142 drp->fDifference.fBitmap.allocN32Pixels(w, h); in create_and_write_diff_image() 144 drp->fWhite.fBitmap.allocN32Pixels(w, h); in create_and_write_diff_image() 167 if (write_bitmap(drp->fDifference.fFullPath, drp->fDifference.fBitmap)) { in create_and_write_diff_image() [all …]
|
D | skdiff.cpp | 159 const int w = dr->fComparison.fBitmap.width(); in compute_diff() 160 const int h = dr->fComparison.fBitmap.height(); in compute_diff() 161 if (w != dr->fBase.fBitmap.width() || h != dr->fBase.fBitmap.height()) { in compute_diff() 177 SkPMColor c0 = *dr->fBase.fBitmap.getAddr32(x, y); in compute_diff() 178 SkPMColor c1 = *dr->fComparison.fBitmap.getAddr32(x, y); in compute_diff() 205 *dr->fDifference.fBitmap.getAddr32(x, y) = outputDifference; in compute_diff() 206 *dr->fWhite.fBitmap.getAddr32(x, y) = PMCOLOR_WHITE; in compute_diff() 208 *dr->fDifference.fBitmap.getAddr32(x, y) = 0; in compute_diff() 209 *dr->fWhite.fBitmap.getAddr32(x, y) = PMCOLOR_BLACK; in compute_diff()
|
/external/skia/samplecode/ |
D | SampleUnpremul.cpp | 102 header.appendf(" [%dx%d] %s", fBitmap.width(), fBitmap.height(), in onDrawContent() 122 bm.allocN32Pixels(fBitmap.width(), fBitmap.height()); in onDrawContent() 123 for (int i = 0; i < fBitmap.width(); ++i) { in onDrawContent() 124 for (int j = 0; j < fBitmap.height(); ++j) { in onDrawContent() 125 *bm.getAddr32(i, j) = premultiply_unpmcolor(*fBitmap.getAddr32(i, j)); in onDrawContent() 130 canvas->drawBitmap(fBitmap, 0, 0); in onDrawContent() 139 SkBitmap fBitmap; member in UnpremulView 166 fDecodeSucceeded = decode_file(fCurrFile.c_str(), &fBitmap, kN32_SkColorType, !fPremul); in decodeCurrFile()
|
D | SampleShaders.cpp | 42 SkBitmap fBitmap; member in ShaderView 45 decode_file("/skimages/logo.gif", &fBitmap); in ShaderView() 77 canvas->drawBitmap(fBitmap, 0, 0); in onDrawContent() 91 int w = fBitmap.width(); in onDrawContent() 92 int h = fBitmap.height(); in onDrawContent() 99 paint.setShader(make_bitmapfade(fBitmap)); in onDrawContent()
|
D | SampleBitmapRect.cpp | 178 SkBitmap fBitmap; member in BitmapRectView2 192 fSrcR.iset(0, 0, fBitmap.height() * 3, fBitmap.height()); in resetBounce() 198 make_big_bitmap(&fBitmap); in BitmapRectView2() 204 fLimitR.iset(0, 0, fBitmap.width(), fBitmap.height()); in BitmapRectView2() 227 canvas->drawBitmapRect(fBitmap, fSrcR, fDstR[i], &paint, in onDrawContent()
|
/external/skia/src/gpu/ |
D | GrBitmapTextureMaker.cpp | 21 , fBitmap(bitmap) { in GrBitmapTextureMaker() 46 proxy = GrGenerateMipMapsAndUploadToTextureProxy(this->context(), fBitmap, dstColorSpace); in refOriginalTextureProxy() 49 proxy = GrUploadBitmapToTextureProxy(this->context()->resourceProvider(), fBitmap, in refOriginalTextureProxy() 55 GrInstallBitmapUniqueKeyInvalidator(fOriginalKey, fBitmap.pixelRef()); in refOriginalTextureProxy() 69 GrInstallBitmapUniqueKeyInvalidator(copyKey, fBitmap.pixelRef()); in didCacheCopy() 73 return fBitmap.alphaType(); in alphaType() 78 return fBitmap.refColorSpace(); in getColorSpace()
|
/external/skia/bench/ |
D | BitmapRectBench.cpp | 41 SkBitmap fBitmap; member in BitmapRectBench 57 fBitmap.setInfo(SkImageInfo::MakeN32Premul(kWidth, kHeight)); in BitmapRectBench() 70 fBitmap.allocPixels(); in onDelayedSetup() 71 fBitmap.setAlphaType(kOpaque_SkAlphaType); in onDelayedSetup() 72 fBitmap.eraseColor(SK_ColorBLACK); in onDelayedSetup() 73 draw_into_bitmap(fBitmap); in onDelayedSetup() 98 canvas->drawBitmapRect(fBitmap, fSrcR, fDstR, &paint, in onDraw()
|
D | RepeatTileBench.cpp | 39 SkBitmap fBitmap; member in RepeatTileBench 45 fBitmap.setInfo(SkImageInfo::Make(w, h, ct, at)); in RepeatTileBench() 56 fBitmap.allocPixels(); in onDelayedSetup() 57 fBitmap.eraseColor(kOpaque_SkAlphaType == fAlphaType ? SK_ColorWHITE : 0); in onDelayedSetup() 59 draw_into_bitmap(fBitmap); in onDelayedSetup() 61 fPaint.setShader(SkShader::MakeBitmapShader(fBitmap, in onDelayedSetup()
|
D | ColorCanvasDrawBitmapBench.cpp | 20 fBitmap.allocPixels(SkImageInfo::MakeN32(100, 100, kOpaque_SkAlphaType, src)); in ColorCanvasDrawBitmap() 21 fBitmap.eraseColor(SK_ColorBLUE); in ColorCanvasDrawBitmap() 41 colorCanvas->drawBitmap(fBitmap, 0, 0, nullptr); in onDraw() 48 SkBitmap fBitmap; member in ColorCanvasDrawBitmap
|
D | DrawBitmapAABench.cpp | 37 fBitmap.allocN32Pixels(200, 200); in onDelayedSetup() 38 fBitmap.eraseARGB(255, 0, 255, 0); in onDelayedSetup() 44 canvas->drawBitmap(fBitmap, 0, 0, &fPaint); in onDraw() 52 SkBitmap fBitmap; member in DrawBitmapAABench
|
D | ImageFilterCollapse.cpp | 43 canvas->drawBitmap(fBitmap, 0, 0, &paint); in onDraw() 49 SkBitmap fBitmap; member in BaseImageFilterCollapseBench 54 fBitmap.allocN32Pixels(W, H); in makeBitmap() 55 fBitmap.eraseColor(SK_ColorTRANSPARENT); in makeBitmap() 57 SkCanvas canvas(fBitmap); in makeBitmap()
|
D | DisplacementBench.cpp | 35 fBitmap.allocN32Pixels(w, h); in makeBitmap() 36 SkCanvas canvas(fBitmap); in makeBitmap() 74 SkIntToScalar(fBitmap.width()), in drawClippedBitmap() 75 SkIntToScalar(fBitmap.height()))); in drawClippedBitmap() 76 canvas->drawBitmap(fBitmap, SkIntToScalar(x), SkIntToScalar(y), &paint); in drawClippedBitmap() 82 SkBitmap fBitmap; member in DisplacementBaseBench
|
D | DrawLatticeBench.cpp | 44 fBitmap.allocN32Pixels(fSrcSize.width(), fSrcSize.height()); in onDelayedSetup() 45 fBitmap.eraseColor(0x880000FF); in onDelayedSetup() 50 canvas->drawBitmapLattice(fBitmap, fLattice, fDst); in onDraw() 59 SkBitmap fBitmap; member in DrawLatticeBench
|
/external/skia/src/core/ |
D | SkBitmapDevice.cpp | 66 , fBitmap(bitmap) in SkBitmapDevice() 79 , fBitmap(bitmap) in SkBitmapDevice() 125 SkASSERT(bm.width() == fBitmap.width()); in replaceBitmapBackendForRasterSurface() 126 SkASSERT(bm.height() == fBitmap.height()); in replaceBitmapBackendForRasterSurface() 127 fBitmap = bm; // intent is to use bm's pixelRef (and rowbytes/config) in replaceBitmapBackendForRasterSurface() 128 this->privateResize(fBitmap.info().width(), fBitmap.info().height()); in replaceBitmapBackendForRasterSurface() 138 fBitmap.notifyPixelsChanged(); in onAccessPixels() 145 const SkImageInfo info = fBitmap.info(); in onPeekPixels() 146 if (fBitmap.getPixels() && (kUnknown_SkColorType != info.colorType())) { in onPeekPixels() 147 pmap->reset(fBitmap.info(), fBitmap.getPixels(), fBitmap.rowBytes()); in onPeekPixels() [all …]
|
/external/skia/tests/ |
D | RecordingXfermodeTest.cpp | 80 fBitmap.allocPixels(imageInfo); in BitmapBackedCanvasStrategy() 85 SkCanvas canvas(fBitmap); in recordAndReplay() 90 return fBitmap; in recordAndReplay() 94 SkBitmap fBitmap; member in __anon2ee53d110111::BitmapBackedCanvasStrategy 103 fBitmap.allocPixels(imageInfo); in PictureStrategy() 119 SkCanvas replayCanvas(fBitmap); in recordAndReplay() 123 return fBitmap; in recordAndReplay() 127 SkBitmap fBitmap; member in __anon2ee53d110111::PictureStrategy
|