/external/skia/include/core/ |
D | SkMask.h | 32 uint8_t* fImage; member 60 SkASSERT(fImage != NULL); in getAddr1() 61 return fImage + ((x - fBounds.fLeft) >> 3) + (y - fBounds.fTop) * fRowBytes; in getAddr1() 71 SkASSERT(fImage != NULL); in getAddr8() 72 return fImage + x - fBounds.fLeft + (y - fBounds.fTop) * fRowBytes; in getAddr8() 83 SkASSERT(fImage != NULL); in getAddrLCD16() 84 uint16_t* row = (uint16_t*)(fImage + (y - fBounds.fTop) * fRowBytes); in getAddrLCD16() 96 SkASSERT(fImage != NULL); in getAddr32() 97 uint32_t* row = (uint32_t*)(fImage + (y - fBounds.fTop) * fRowBytes); in getAddr32() 136 fImage = maskImage; in SkAutoMaskFreeImage() [all …]
|
/external/skia/src/gpu/gl/mesa/ |
D | SkMesaGLContext.cpp | 18 , fImage(NULL) { in SkMesaGLContext() 34 fImage = (GrGLubyte *) sk_malloc_throw(gBOGUS_SIZE * gBOGUS_SIZE * in SkMesaGLContext() 36 if (!fImage) { in SkMesaGLContext() 44 fImage, in SkMesaGLContext() 73 if (fImage) { in destroyGLContext() 74 sk_free(fImage); in destroyGLContext() 75 fImage = NULL; in destroyGLContext() 88 if (!OSMesaMakeCurrent((OSMesaContext)fContext, fImage, in makeCurrent()
|
D | SkMesaGLContext.h | 41 GrGLubyte *fImage; variable
|
/external/skia/tests/ |
D | AAClipTest.cpp | 19 if (!a.fImage && !b.fImage) { in operator ==() 22 if (!a.fImage || !b.fImage) { in operator ==() 46 const char* aptr = (const char*)a.fImage; in operator ==() 47 const char* bptr = (const char*)b.fImage; in operator ==() 64 mask->fImage = NULL; in copyToMask() 70 mask->fImage = SkMask::AllocImage(mask->computeImageSize()); in copyToMask() 71 sk_bzero(mask->fImage, mask->computeImageSize()); in copyToMask() 78 bitmap.installPixels(info, mask->fImage, mask->fRowBytes); in copyToMask() 113 SkMask::FreeImage(mask0.fImage); in operator ==() 114 SkMask::FreeImage(mask1.fImage); in operator ==() [all …]
|
D | BlurTest.cpp | 169 src.fImage = SkMask::AllocImage(src.computeTotalImageSize()); in ground_truth_2d() 171 memset(src.fImage, 0xff, src.computeTotalImageSize()); in ground_truth_2d() 173 dst.fImage = NULL; in ground_truth_2d() 189 SkMask::FreeImage(src.fImage); in ground_truth_2d() 190 SkMask::FreeImage(dst.fImage); in ground_truth_2d()
|
D | MaskCacheTest.cpp | 62 REPORTER_ASSERT(reporter, data->data() == (const void*)mask.fImage); in DEF_TEST() 100 REPORTER_ASSERT(reporter, data->data() == (const void*)mask.fImage); in DEF_TEST()
|
/external/skia/bench/ |
D | BlurRectBench.cpp | 95 SkMask::FreeImage(mask.fImage); in makeBlurryRect() 105 fSrcMask.fImage = NULL; in BlurRectSeparableBench() 109 SkMask::FreeImage(fSrcMask.fImage); in ~BlurRectSeparableBench() 114 SkMask::FreeImage(fSrcMask.fImage); in preBenchSetup() 119 fSrcMask.fImage = SkMask::AllocImage(fSrcMask.computeTotalImageSize()); in preBenchSetup() 121 memset(fSrcMask.fImage, 0xff, fSrcMask.computeTotalImageSize()); in preBenchSetup() 147 mask.fImage = NULL; in makeBlurryRect() 150 SkMask::FreeImage(mask.fImage); in makeBlurryRect() 174 mask.fImage = NULL; in makeBlurryRect() 177 SkMask::FreeImage(mask.fImage); in makeBlurryRect()
|
/external/skia/samplecode/ |
D | SampleFilterQuality.cpp | 131 SkAutoTUnref<SkImage> fImage; member in FilterQualityView 139 FilterQualityView() : fImage(make_image()), fTrans(2, 2), fShowFatBits(true) { in FilterQualityView() 191 canvas->drawImage(fImage, -SkScalarHalf(fImage->width()), -SkScalarHalf(fImage->height()), in drawTheImage() 204 SkISize size = SkISize::Make(fImage->width(), fImage->height()); in drawHere() 209 SkImageInfo info = SkImageInfo::MakeN32(fImage->width() * 2, fImage->height() * 2, in drawHere() 216 canvas->translate(SkScalarHalf(fCell.width() - fImage->width()), in drawHere() 217 SkScalarHalf(fCell.height() - fImage->height())); in drawHere()
|
/external/skia/src/effects/ |
D | SkEmbossMaskFilter.cpp | 90 if (src.fImage == NULL) { in filterMask() 97 uint8_t* alphaPlane = dst->fImage; in filterMask() 102 dst->fImage = SkMask::AllocImage(planeSize * 3); in filterMask() 103 memcpy(dst->fImage, alphaPlane, planeSize); in filterMask() 122 memcpy(dst->fImage, src.fImage, src.computeImageSize()); in filterMask()
|
D | SkTableMaskFilter.cpp | 36 dst->fImage = NULL; in filterMask() 38 if (src.fImage) { in filterMask() 39 dst->fImage = SkMask::AllocImage(dst->computeImageSize()); in filterMask() 41 const uint8_t* srcP = src.fImage; in filterMask() 42 uint8_t* dstP = dst->fImage; in filterMask()
|
D | SkBlurMask.cpp | 533 dst->fImage = NULL; in BoxBlur() 535 if (src.fImage) { in BoxBlur() 543 const uint8_t* sp = src.fImage; in BoxBlur() 584 dst->fImage = dp; in BoxBlur() 593 dst->fImage = SkMask::AllocImage(srcSize); in BoxBlur() 594 merge_src_with_blur(dst->fImage, src.fRowBytes, in BoxBlur() 757 dst->fImage = NULL; in BlurRect() 784 dst->fImage = dp; in BlurRect() 810 dst->fImage = SkMask::AllocImage(srcSize); in BlurRect() 813 uint8_t *inner_scanline = dst->fImage + y*sw; in BlurRect() [all …]
|
D | SkBlurMaskFilter.cpp | 199 mask->fImage = SkMask::AllocImage(size); in prepare_to_draw_into_mask() 200 if (NULL == mask->fImage) { in prepare_to_draw_into_mask() 205 sk_bzero(mask->fImage, size); in prepare_to_draw_into_mask() 239 mask->fImage, mask->fRowBytes); in draw_rects_into_mask() 272 memcpy(data->writable_data(), mask->fImage, size); in copy_mask_to_cacheddata() 273 SkMask::FreeImage(mask->fImage); in copy_mask_to_cacheddata() 274 mask->fImage = (uint8_t*)data->data(); in copy_mask_to_cacheddata() 354 srcM.fImage = NULL; in filterRRectToNine() 430 SkAutoMaskFreeImage amf(srcM.fImage); in filterRRectToNine() 474 srcM.fImage = NULL; in filterRectsToNine() [all …]
|
/external/skia/src/core/ |
D | SkScalerContext.cpp | 31 mask->fImage = (uint8_t*)fImage; in toMask() 210 src.fImage = NULL; // only want the bounds from the filter in getMetrics() 215 SkASSERT(dst.fImage == NULL); in getMetrics() 239 uint8_t* SK_RESTRICT dst = (uint8_t*)mask.fImage; in applyLUTToA8Mask() 261 uint16_t* dstP = (uint16_t*)dst.fImage; in pack4xHToLCD16() 346 uint8_t* dst = mask.fImage; in packA8ToA1() 414 sk_bzero(mask.fImage, mask.computeImageSize()); in generateMask() 418 bm.installPixels(info, mask.fImage, dstRB); in generateMask() 455 uint8_t* dstRow = dst.fImage; in extract_alpha() 498 tmpGlyph.fImage = origGlyph.fImage; in getImage() [all …]
|
D | SkMaskFilter.cpp | 26 SkASSERT((const void*)fMask.fImage == fCache->data()); in ~NinePatch() 29 SkMask::FreeImage(fMask.fImage); in ~NinePatch() 47 dst->fImage = src.fImage + dy * src.fRowBytes + dx; in extractMaskSubset() 224 patch.fMask.fImage = NULL; in filterRRect() 228 SkASSERT(NULL == patch.fMask.fImage); in filterRRect() 248 SkASSERT(NULL == patch.fMask.fImage); in filterPath() 257 SkASSERT(NULL == patch.fMask.fImage); in filterPath() 270 SkAutoMaskFreeImage autoSrc(srcM.fImage); in filterPath() 275 SkAutoMaskFreeImage autoDst(dstM.fImage); in filterPath() 351 srcM.fImage = NULL; in computeFastBounds()
|
D | SkMask.cpp | 80 SkASSERT(fImage); in getAddr() 82 char* addr = (char*)fImage; in getAddr()
|
D | SkGlyphCache.cpp | 103 if (g.fImage) { in ~SkGlyphCache() 317 if (NULL == glyph.fImage) { in findImage() 319 const_cast<SkGlyph&>(glyph).fImage = fGlyphAlloc.alloc(size, in findImage() 322 if (glyph.fImage) { in findImage() 332 return glyph.fImage; in findImage() 667 if (glyph->fImage) { in validate() 668 SkASSERT(fGlyphAlloc.contains(glyph->fImage)); in validate()
|
D | SkScan_AntiPath.cpp | 443 fMask.fImage = (uint8_t*)fStorage; in MaskSuperBlitter() 556 uint8_t* row = fMask.fImage + iy * fMask.fRowBytes + (x >> SHIFT); in blitH() 568 SkASSERT(row >= fMask.fImage); in blitH() 569 SkASSERT(row < fMask.fImage + kMAX_STORAGE + 1); in blitH() 573 SkASSERT(row >= fMask.fImage); in blitH() 574 SkASSERT(row + n + 1 < fMask.fImage + kMAX_STORAGE + 1); in blitH()
|
D | SkGlyph.h | 39 void* fImage; variable 123 fImage = NULL; in initCommon()
|
D | SkDraw.cpp | 906 dstM.fImage = NULL; in drawDevMask() 908 SkAutoMaskFreeImage ami(dstM.fImage); in drawDevMask() 1093 SkMask::FreeImage(mask.fImage); in drawPath() 1164 mask.fImage = bitmap.getAddr8(0, 0); in drawBitmapAsMask() 1197 mask.fImage = (uint8_t*)storage.get(); in drawBitmapAsMask() 1198 memset(mask.fImage, 0, size); in drawBitmapAsMask() 1204 mask.fImage, mask.fRowBytes); in drawBitmapAsMask() 1478 uint8_t* aa = (uint8_t*)glyph.fImage; in D1G_RectClip() 1488 mask.fImage = aa; in D1G_RectClip() 1508 const uint8_t* aa = (const uint8_t*)glyph.fImage; in D1G_RgnClip() [all …]
|
D | SkRasterizer.cpp | 26 srcM.fImage = NULL; in rasterize()
|
D | SkMaskCache.cpp | 82 mask->fImage = (uint8_t*)(result.fData->data()); in FindAndRef() 174 mask->fImage = (uint8_t*)(result.fData->data()); in FindAndRef()
|
/external/skia/src/ports/ |
D | SkFontHost_FreeType_common.cpp | 90 uint16_t* dst = reinterpret_cast<uint16_t*>(mask.fImage); in copyFT2LCD16() 189 uint8_t* dst = dstMask.fImage; in copyFTBitmap() 273 uint8_t* dst = mask.fImage; in packA8ToA1() 381 target.buffer = reinterpret_cast<uint8_t*>(glyph.fImage); in generateGlyphImage() 385 memset(glyph.fImage, 0, glyph.rowBytes() * glyph.fHeight); in generateGlyphImage() 435 unscaledBitmapAlias.fImage = reinterpret_cast<uint8_t*>(unscaledBitmap.getPixels()); in generateGlyphImage() 457 dstBitmap.setPixels(glyph.fImage); in generateGlyphImage() 478 uint16_t* dst = reinterpret_cast<uint16_t*>(glyph.fImage); in generateGlyphImage() 492 memset(glyph.fImage, 0, glyph.rowBytes() * glyph.fHeight); in generateGlyphImage() 500 uint8_t* SK_RESTRICT dst = (uint8_t*)glyph.fImage; in generateGlyphImage()
|
/external/skia/gm/ |
D | blurrect.cpp | 224 SkAutoMaskFreeImage amfi(mask.fImage); in onDraw() 308 SkAutoMaskFreeImage amfi(mask.fImage); in onDraw() 354 src.fImage = SkMask::AllocImage(src.computeTotalImageSize()); in makeMask() 355 SkAutoMaskFreeImage amfi(src.fImage); in makeMask() 357 memset(src.fImage, 0xff, src.computeTotalImageSize()); in makeMask() 400 src.fImage = SkMask::AllocImage(src.computeTotalImageSize()); in makeMask() 401 SkAutoMaskFreeImage amfi(src.fImage); in makeMask() 403 memset(src.fImage, 0xff, src.computeTotalImageSize()); in makeMask()
|
D | drawbitmaprect.cpp | 140 SkAutoTUnref<SkImage> fImage; member in DrawBitmapRectGM 149 fImage.reset(makebm(&fLargeBitmap, gBmpSize, gBmpSize)); in onOnceBeforeDraw() 184 fProc(canvas, fImage, fLargeBitmap, &srcRect, dstRect); in onDraw()
|
/external/skia/src/pdf/ |
D | SkPDFShader.cpp | 433 SkBitmap fImage; member in SkPDFShader::State 493 if (state.fType == SkShader::kNone_GradientType && state.fImage.isNull()) { in get_pdf_shader_by_state() 835 state.fImage.lockPixels(); in Create() 851 const SkBitmap* image = &state.fImage; in Create() 1040 imageShader->fShaderState->fImage.unlockPixels(); in Create() 1115 bitmapType = shader.asABitmap(&fImage, &matrix, fImageTileModes); in State() 1127 fImage.reset(); in State() 1143 fImage.allocN32Pixels(size.width(), size.height()); in State() 1144 fImage.eraseColor(SK_ColorTRANSPARENT); in State() 1149 SkCanvas canvas(fImage); in State() [all …]
|