/external/skia/src/images/ |
D | SkImageRef.cpp | 50 SkASSERT(SkBitmap::kNo_Config != fBitmap.config()); in getInfo() 52 bitmap->setConfig(fBitmap.config(), fBitmap.width(), fBitmap.height()); in getInfo() 82 if (SkBitmap::kNo_Config != fBitmap.config()) { in prepareBitmap() 83 fConfig = fBitmap.config(); in prepareBitmap() 86 if (NULL != fBitmap.getPixels() || in prepareBitmap() 87 (SkBitmap::kNo_Config != fBitmap.config() && in prepareBitmap() 92 SkASSERT(fBitmap.getPixels() == NULL); in prepareBitmap() 107 if (this->onDecode(codec, fStream, &fBitmap, fConfig, mode)) { in prepareBitmap() 121 fBitmap.reset(); in prepareBitmap() 128 if (NULL == fBitmap.getPixels()) { in onLockPixels() [all …]
|
D | SkImageRefPool.cpp | 27 ref->fBitmap.width(), ref->fBitmap.height(), in justAddedPixels() 28 ref->fBitmap.bytesPerPixel(), in justAddedPixels() 29 ref->fBitmap.getSize(), (int)fRAMUsed); in justAddedPixels() 55 if (0 == ref->getLockCount() && ref->fBitmap.getPixels()) { in setRAMUsed() 63 ref->fBitmap.width(), ref->fBitmap.height(), in setRAMUsed() 64 ref->fBitmap.bytesPerPixel(), in setRAMUsed() 70 ref->fBitmap.setPixels(NULL); in setRAMUsed() 71 SkASSERT(NULL == ref->fBitmap.getPixels()); in setRAMUsed() 177 SkDebugf(" [%3d %3d %d] ram=%d data=%d locks=%d %s\n", ref->fBitmap.width(), in dump() 178 ref->fBitmap.height(), ref->fBitmap.config(), in dump()
|
D | SkMovie.cpp | 69 if (!this->onGetBitmap(&fBitmap)) // failure in bitmap() 70 fBitmap.reset(); in bitmap() 73 return fBitmap; in bitmap()
|
/external/skia/src/core/ |
D | SkBitmapProcState_sample.h | 29 const char* SK_RESTRICT srcAddr = (const char*)s.fBitmap->getPixels(); in MAKENAME() 30 int i, rb = s.fBitmap->rowBytes(); in MAKENAME() 37 SkASSERT((XY >> 16) < (unsigned)s.fBitmap->height() && in MAKENAME() 38 (XY & 0xFFFF) < (unsigned)s.fBitmap->width()); in MAKENAME() 43 SkASSERT((XY >> 16) < (unsigned)s.fBitmap->height() && in MAKENAME() 44 (XY & 0xFFFF) < (unsigned)s.fBitmap->width()); in MAKENAME() 50 SkASSERT((XY >> 16) < (unsigned)s.fBitmap->height() && in MAKENAME() 51 (XY & 0xFFFF) < (unsigned)s.fBitmap->width()); in MAKENAME() 72 const SRCTYPE* SK_RESTRICT srcAddr = (const SRCTYPE*)s.fBitmap->getPixels(); in MAKENAME() 76 SkASSERT((unsigned)xy[0] < (unsigned)s.fBitmap->height()); in MAKENAME() [all …]
|
D | SkBitmapProcState.cpp | 119 #define CHECKSTATE(state) SkASSERT(state.fBitmap->config() == SkBitmap::kARGB_8888_Config); \ 129 #define CHECKSTATE(state) SkASSERT(state.fBitmap->config() == SkBitmap::kARGB_8888_Config); \ 145 #define CHECKSTATE(state) SkASSERT(state.fBitmap->config() == SkBitmap::kRGB_565_Config); \ 155 #define CHECKSTATE(state) SkASSERT(state.fBitmap->config() == SkBitmap::kRGB_565_Config); \ 171 #define CHECKSTATE(state) SkASSERT(state.fBitmap->config() == SkBitmap::kIndex8_Config); \ 173 #define PREAMBLE(state) const SkPMColor* SK_RESTRICT table = state.fBitmap->getColorTable()… 177 #define POSTAMBLE(state) state.fBitmap->getColorTable()->unlockColors(false) 183 #define CHECKSTATE(state) SkASSERT(state.fBitmap->config() == SkBitmap::kIndex8_Config); \ 186 … const SkPMColor* SK_RESTRICT table = state.fBitmap->getColorTable()->lockColors() 190 #define POSTAMBLE(state) state.fBitmap->getColorTable()->unlockColors(false) [all …]
|
D | SkDevice.cpp | 7 SkDevice::SkDevice(const SkBitmap& bitmap) : fBitmap(bitmap) {} in SkDevice() 10 fBitmap.lockPixels(); in lockPixels() 14 fBitmap.unlockPixels(); in unlockPixels() 18 this->onAccessBitmap(&fBitmap); in accessBitmap() 20 fBitmap.notifyPixelsChanged(); in accessBitmap() 22 return fBitmap; in accessBitmap() 27 bounds->set(0, 0, fBitmap.width(), fBitmap.height()); in getBounds() 39 fBitmap.eraseColor(eraseColor); in eraseColor()
|
D | SkBitmapProcState_matrix.h | 28 const unsigned maxX = s.fBitmap->width() - 1; in SCALE_NOFILTER_NAME() 35 const unsigned maxY = s.fBitmap->height() - 1; in SCALE_NOFILTER_NAME() 102 int maxX = s.fBitmap->width() - 1; in AFFINE_NOFILTER_NAME() 103 int maxY = s.fBitmap->height() - 1; in AFFINE_NOFILTER_NAME() 117 int maxX = s.fBitmap->width() - 1; in PERSP_NOFILTER_NAME() 118 int maxY = s.fBitmap->height() - 1; in PERSP_NOFILTER_NAME() 158 const unsigned maxX = s.fBitmap->width() - 1; in SCALE_FILTER_NAME() 168 const unsigned maxY = s.fBitmap->height() - 1; in SCALE_FILTER_NAME() 210 unsigned maxX = s.fBitmap->width() - 1; in AFFINE_FILTER_NAME() 211 unsigned maxY = s.fBitmap->height() - 1; in AFFINE_FILTER_NAME() [all …]
|
D | SkBitmapProcShader.cpp | 87 bool bitmapIsOpaque = fState.fBitmap->isOpaque(); in setContext() 104 switch (fState.fBitmap->config()) { in setContext() 132 SkASSERT(state.fBitmap->getPixels()); in shadeSpan() 133 SkASSERT(state.fBitmap->pixelRef() == NULL || in shadeSpan() 134 state.fBitmap->pixelRef()->getLockCount()); in shadeSpan() 160 SkASSERT(state.fBitmap->getPixels()); in shadeSpan16() 161 SkASSERT(state.fBitmap->pixelRef() == NULL || in shadeSpan16() 162 state.fBitmap->pixelRef()->getLockCount()); in shadeSpan16()
|
D | SkBitmapSamplerTemplate.h | 35 return BITMAP_PIXEL_TO_PMCOLOR(fBitmap, x, y); in BITMAP_CLASSNAME_PREFIX() 51 return BITMAP_PIXEL_TO_PMCOLOR(fBitmap, x, y); in BITMAP_CLASSNAME_PREFIX() 66 return BITMAP_PIXEL_TO_PMCOLOR(fBitmap, x, y); in BITMAP_CLASSNAME_PREFIX() 81 return BITMAP_PIXEL_TO_PMCOLOR(fBitmap, x, y); in BITMAP_CLASSNAME_PREFIX() 96 return BITMAP_PIXEL_TO_PMCOLOR(fBitmap, x, y); in BITMAP_CLASSNAME_PREFIX() 111 return BITMAP_PIXEL_TO_PMCOLOR(fBitmap, x, y); in BITMAP_CLASSNAME_PREFIX()
|
D | SkBitmapSampler.cpp | 37 : fBitmap(bm), fFilterBitmap(filter), fTileModeX(tmx), fTileModeY(tmy) in SkBitmapSampler() 102 const SkBitmap* bitmap = &fBitmap; in sample() 150 const SkBitmap* bitmap = &fBitmap; in sample() 196 const SkBitmap* bitmap = &fBitmap; in sample() 264 const SkBitmap* bitmap = &fBitmap; in sample() 313 int alpha = *fBitmap.getAddr8(fTileProcX(ix, fMaxX), fTileProcY(iy, fMaxY)); in sample()
|
D | SkDraw.cpp | 285 devRect.set(0, 0, fBitmap->width(), fBitmap->height()); in drawPaint() 297 BitmapXferProc proc = ChooseBitmapXferProc(*fBitmap, paint, &procData); in drawPaint() 305 CallBitmapXferProc(*fBitmap, iter.rect(), proc, procData); in drawPaint() 310 SkAutoBlitterChoose blitter(*fBitmap, *fMatrix, paint); in drawPaint() 573 SkAutoBlitterChoose blitter(*fBitmap, *fMatrix, paint); in drawPoints() 699 SkAutoBlitterChoose blitterStorage(*fBitmap, matrix, paint); in drawRect() 738 SkAutoBlitterChoose blitter(*fBitmap, *fMatrix, paint); in drawDevMask() 848 SkAutoBlitterChoose blitter(*fBitmap, *fMatrix, paint); in drawPath() 908 devBounds.set(0, 0, fBitmap->width(), fBitmap->height()); in drawBitmapAsMask() 1007 SkBlitter* blitter = SkBlitter::ChooseSprite(*fBitmap, paint, bitmap, in drawBitmap() [all …]
|
D | SkBitmapSampler.h | 32 const SkBitmap& getBitmap() const { return fBitmap; } in getBitmap() 48 const SkBitmap& fBitmap;
|
D | SkBitmapProcState_matrixProcs.cpp | 114 fFilterOneX = SK_Fixed1 / fBitmap->width(); in chooseMatrixProc() 115 fFilterOneY = SK_Fixed1 / fBitmap->height(); in chooseMatrixProc()
|
/external/skia/src/animator/ |
D | SkDrawBitmap.cpp | 44 maker.fCanvas->drawBitmap(fBitmap, x, y, maker.fPaint); in draw() 101 fBitmap.setConfig((SkBitmap::Config) format, width, height, rowBytes); in onEndElement() 102 fBitmap.allocPixels(); in onEndElement() 104 fBitmap.eraseColor(fColor); in onEndElement() 172 value->fOperand.fS32 = fBitmap.height(); in getProperty() 175 value->fOperand.fS32 = fBitmap.width(); in getProperty() 192 fBitmap.reset(); in resolve() 193 SkImageDecoder::DecodeMemory(base64.fData, base64.fLength, &fBitmap); in resolve() 198 fBitmap.reset(); in resolve() 204 SkImageDecoder::DecodeStream(stream, &fBitmap); in resolve()
|
/external/webkit/WebCore/platform/graphics/android/ |
D | SkBitmapRef.h | 36 : fBitmap(src), in SkBitmapRef() 41 const SkBitmap& bitmap() const { return fBitmap; } in bitmap() 42 SkBitmap& bitmap() { return fBitmap; } in bitmap() 57 SkBitmap fBitmap;
|
/external/skia/include/core/ |
D | SkDevice.h | 47 int width() const { return fBitmap.width(); } in width() 50 int height() const { return fBitmap.height(); } in height() 53 SkBitmap::Config config() const { return fBitmap.getConfig(); } in config() 57 bool isOpaque() const { return fBitmap.isOpaque(); } in isOpaque() 139 SkBitmap fBitmap;
|
D | SkBitmap.h | 564 SkAutoLockPixels(const SkBitmap& bitmap) : fBitmap(bitmap) { in SkAutoLockPixels() 568 fBitmap.unlockPixels(); in ~SkAutoLockPixels() 572 const SkBitmap& fBitmap;
|
/external/skia/src/views/ |
D | SkWindow.cpp | 62 this->resize(fBitmap.width(), fBitmap.height(), config); in setConfig() 70 if (width != fBitmap.width() || height != fBitmap.height() || config != fConfig) in resize() 73 fBitmap.setConfig(config, width, height); in resize() 74 fBitmap.allocPixels(); in resize() 83 fBitmap.eraseARGB(a, r, g, b); in eraseARGB() 88 fBitmap.eraseRGB(r, g, b); in eraseRGB()
|
D | SkWidgets.cpp | 502 *bitmap = fBitmap; 503 return fBitmap.getConfig() != SkBitmap::kNo_Config; 510 fBitmap = *bitmap; 511 fBitmap.setOwnsPixels(viewOwnsPixels); 530 if (fBitmap.getConfig() != SkBitmap::kNo_Config && 531 fBitmap.width() && fBitmap.height()) 537 canvas->scale( this->width() / fBitmap.width(), 538 this->height() / fBitmap.height(), 540 canvas->drawBitmap(fBitmap, 0, 0, p);
|
D | SkImageView.cpp | 180 canvas->drawBitmap(*fData.fBitmap, 0, 0, &paint); in onDraw() 214 delete fData.fBitmap; in freeData() 242 width = SkIntToScalar(fData.fBitmap->width()); in getDataBounds() 243 height = SkIntToScalar(fData.fBitmap->height()); in getDataBounds() 288 fData.fBitmap = bitmap; in ensureUriIsLoaded()
|
/external/skia/src/ports/ |
D | SkImageRef_ashmem.cpp | 149 SkASSERT(fBitmap.getPixels() == NULL); in onLockPixels() 150 SkASSERT(fBitmap.getColorTable() == NULL); in onLockPixels() 159 fBitmap.setPixels(fRec.fAddr, fCT); in onLockPixels() 170 SkDebugf("===== ashmem purged %d\n", fBitmap.getSize()); in onLockPixels() 201 fBitmap.setPixels(NULL, NULL); in onUnlockPixels()
|
/external/skia/include/images/ |
D | SkFlipPixelRef.h | 89 fDirty = &ref->beginUpdate(&fBitmap); in SkAutoFlipUpdate() 97 const SkBitmap& bitmap() const { return fBitmap; } in bitmap() 110 SkBitmap fBitmap; variable
|
D | SkMovie.h | 77 SkBitmap fBitmap; variable
|
/external/skia/emoji/ |
D | EmojiFont.cpp | 54 SkBitmap* fBitmap; member 103 bitmap = rec->fBitmap; in get_bitmap() 113 rec->fBitmap = bitmap; in get_bitmap()
|
/external/skia/include/views/ |
D | SkWindow.h | 39 const SkBitmap& getBitmap() const { return fBitmap; } in getBitmap() 77 SkBitmap fBitmap; variable
|