/external/skia/src/images/ |
D | SkImageRef.cpp | 34 fBitmap.setConfig(info); in SkImageRef() 60 SkASSERT(SkBitmap::kNo_Config != fBitmap.config()); in getInfo() 62 bitmap->setConfig(fBitmap.config(), fBitmap.width(), fBitmap.height()); in getInfo() 71 bitmap->setAlphaType(fBitmap.alphaType()); in isOpaque() 98 if (NULL != fBitmap.getPixels() || in prepareBitmap() 99 (SkBitmap::kNo_Config != fBitmap.config() && in prepareBitmap() 104 SkASSERT(fBitmap.getPixels() == NULL); in prepareBitmap() 123 if (this->onDecode(codec, fStream, &fBitmap, fBitmap.config(), mode)) { in prepareBitmap() 125 SkASSERT(!fBitmap.asImageInfo(&info) || this->info().fColorType == info.fColorType); in prepareBitmap() 126 SkASSERT(this->info().fWidth == fBitmap.width()); in prepareBitmap() [all …]
|
D | SkImageRefPool.cpp | 34 ref->fBitmap.width(), ref->fBitmap.height(), in justAddedPixels() 35 ref->fBitmap.bytesPerPixel(), in justAddedPixels() 36 ref->fBitmap.getSize(), (int)fRAMUsed); in justAddedPixels() 62 if (!ref->isLocked() && ref->fBitmap.getPixels()) { in setRAMUsed() 70 ref->fBitmap.width(), ref->fBitmap.height(), in setRAMUsed() 71 ref->fBitmap.bytesPerPixel(), in setRAMUsed() 77 ref->fBitmap.setPixels(NULL); in setRAMUsed() 78 SkASSERT(NULL == ref->fBitmap.getPixels()); in setRAMUsed() 184 SkDebugf(" [%3d %3d %d] ram=%d data=%d locked=%d %s\n", ref->fBitmap.width(), in dump() 185 ref->fBitmap.height(), ref->fBitmap.config(), in dump()
|
/external/skia/gm/ |
D | xfermodeimagefilter.cpp | 32 fBitmap.setConfig(SkBitmap::kARGB_8888_Config, 80, 80); in make_bitmap() 33 fBitmap.allocPixels(); in make_bitmap() 34 SkBitmapDevice device(fBitmap); in make_bitmap() 143 drawClippedBitmap(canvas, fBitmap, paint, x, y); in onDraw() 144 x += fBitmap.width() + MARGIN; in onDraw() 145 if (x + fBitmap.width() > WIDTH) { in onDraw() 147 y += fBitmap.height() + MARGIN; in onDraw() 154 drawClippedBitmap(canvas, fBitmap, paint, x, y); in onDraw() 155 x += fBitmap.width() + MARGIN; in onDraw() 156 if (x + fBitmap.width() > WIDTH) { in onDraw() [all …]
|
D | bitmapsource.cpp | 25 fBitmap.setConfig(SkBitmap::kARGB_8888_Config, 100, 100); in makeBitmap() 26 fBitmap.allocPixels(); in makeBitmap() 27 SkBitmapDevice device(fBitmap); in makeBitmap() 60 fBitmap.getBounds(&bounds); in onDraw() 61 SkAutoTUnref<SkImageFilter> bitmapSource(new SkBitmapSource(fBitmap)); in onDraw() 62 … SkAutoTUnref<SkImageFilter> bitmapSourceSrcRect(new SkBitmapSource(fBitmap, srcRect, srcRect)); in onDraw() 63 …SkAutoTUnref<SkImageFilter> bitmapSourceSrcRectDstRect(new SkBitmapSource(fBitmap, srcRect, dstRec… in onDraw() 64 … SkAutoTUnref<SkImageFilter> bitmapSourceDstRectOnly(new SkBitmapSource(fBitmap, bounds, dstRect)); in onDraw() 85 SkBitmap fBitmap; member in BitmapSourceGM
|
/external/chromium_org/third_party/skia/src/images/ |
D | SkImageRef.cpp | 56 SkASSERT(SkBitmap::kNo_Config != fBitmap.config()); in getInfo() 58 bitmap->setConfig(fBitmap.config(), fBitmap.width(), fBitmap.height()); in getInfo() 67 bitmap->setAlphaType(fBitmap.alphaType()); in isOpaque() 94 if (NULL != fBitmap.getPixels() || in prepareBitmap() 95 (SkBitmap::kNo_Config != fBitmap.config() && in prepareBitmap() 100 SkASSERT(fBitmap.getPixels() == NULL); in prepareBitmap() 119 if (this->onDecode(codec, fStream, &fBitmap, fBitmap.config(), mode)) { in prepareBitmap() 133 fBitmap.reset(); in prepareBitmap() 138 if (NULL == fBitmap.getPixels()) { in onLockPixels() 143 *ct = fBitmap.getColorTable(); in onLockPixels() [all …]
|
D | SkImageRefPool.cpp | 34 ref->fBitmap.width(), ref->fBitmap.height(), in justAddedPixels() 35 ref->fBitmap.bytesPerPixel(), in justAddedPixels() 36 ref->fBitmap.getSize(), (int)fRAMUsed); in justAddedPixels() 62 if (!ref->isLocked() && ref->fBitmap.getPixels()) { in setRAMUsed() 70 ref->fBitmap.width(), ref->fBitmap.height(), in setRAMUsed() 71 ref->fBitmap.bytesPerPixel(), in setRAMUsed() 77 ref->fBitmap.setPixels(NULL); in setRAMUsed() 78 SkASSERT(NULL == ref->fBitmap.getPixels()); in setRAMUsed() 184 SkDebugf(" [%3d %3d %d] ram=%d data=%d locked=%d %s\n", ref->fBitmap.width(), in dump() 185 ref->fBitmap.height(), ref->fBitmap.config(), in dump()
|
/external/chromium_org/third_party/skia/src/image/ |
D | SkSurface_Raster.cpp | 31 SkBitmap fBitmap; member in SkSurface_Raster 86 fBitmap.setConfig(config, info.fWidth, info.fHeight, rb, info.fAlphaType); in SkSurface_Raster() 87 fBitmap.setPixels(pixels); in SkSurface_Raster() 94 fBitmap.setConfig(config, info.fWidth, info.fHeight, rb, info.fAlphaType); in SkSurface_Raster() 95 fBitmap.setPixelRef(pr); in SkSurface_Raster() 99 fBitmap.eraseColor(SK_ColorTRANSPARENT); in SkSurface_Raster() 104 return SkNEW_ARGS(SkCanvas, (fBitmap)); in onNewCanvas() 113 canvas->drawBitmap(fBitmap, x, y, paint); in onDraw() 117 return SkNewImageFromBitmap(fBitmap, fWeOwnThePixels); in onNewImageSnapshot() 123 if (SkBitmapImageGetPixelRef(this->getCachedImage()) == fBitmap.pixelRef()) { in onCopyOnWrite() [all …]
|
D | SkImage_Gpu.cpp | 31 GrTexture* getTexture() { return fBitmap.getTexture(); } in getTexture() 34 SkBitmap fBitmap; member in SkImage_Gpu 43 , fBitmap(bitmap) { in SkImage_Gpu() 44 SkASSERT(NULL != fBitmap.getTexture()); in SkImage_Gpu() 52 canvas->drawBitmap(fBitmap, x, y, paint); in onDraw() 57 canvas->drawBitmapRectToRect(fBitmap, src, dst, paint); in onDrawRectToRect() 61 return fBitmap.getTexture(); in onGetTexture()
|
D | SkImage_Codec.cpp | 26 SkBitmap fBitmap; member in SkImage_Codec 43 if (!fBitmap.pixelRef()) { in onDraw() 45 &fBitmap)) { in onDraw() 49 canvas->drawBitmap(fBitmap, x, y, paint); in onDraw() 54 if (!fBitmap.pixelRef()) { in onDrawRectToRect() 56 &fBitmap)) { in onDrawRectToRect() 60 canvas->drawBitmapRectToRect(fBitmap, src, dst, paint); in onDrawRectToRect()
|
/external/skia/src/image/ |
D | SkSurface_Raster.cpp | 31 SkBitmap fBitmap; member in SkSurface_Raster 86 fBitmap.setConfig(config, info.fWidth, info.fHeight, rb, info.fAlphaType); in SkSurface_Raster() 87 fBitmap.setPixels(pixels); in SkSurface_Raster() 94 fBitmap.setConfig(config, info.fWidth, info.fHeight, rb, info.fAlphaType); in SkSurface_Raster() 95 fBitmap.setPixelRef(pr); in SkSurface_Raster() 99 fBitmap.eraseColor(SK_ColorTRANSPARENT); in SkSurface_Raster() 104 return SkNEW_ARGS(SkCanvas, (fBitmap)); in onNewCanvas() 113 canvas->drawBitmap(fBitmap, x, y, paint); in onDraw() 117 return SkNewImageFromBitmap(fBitmap, fWeOwnThePixels); in onNewImageSnapshot() 123 if (SkBitmapImageGetPixelRef(this->getCachedImage()) == fBitmap.pixelRef()) { in onCopyOnWrite() [all …]
|
D | SkImage_Gpu.cpp | 31 GrTexture* getTexture() { return fBitmap.getTexture(); } in getTexture() 34 SkBitmap fBitmap; member in SkImage_Gpu 43 , fBitmap(bitmap) { in SkImage_Gpu() 44 SkASSERT(NULL != fBitmap.getTexture()); in SkImage_Gpu() 52 canvas->drawBitmap(fBitmap, x, y, paint); in onDraw() 57 canvas->drawBitmapRectToRect(fBitmap, src, dst, paint); in onDrawRectToRect() 61 return fBitmap.getTexture(); in onGetTexture()
|
D | SkImage_Codec.cpp | 26 SkBitmap fBitmap; member in SkImage_Codec 43 if (!fBitmap.pixelRef()) { in onDraw() 45 &fBitmap)) { in onDraw() 49 canvas->drawBitmap(fBitmap, x, y, paint); in onDraw() 54 if (!fBitmap.pixelRef()) { in onDrawRectToRect() 56 &fBitmap)) { in onDrawRectToRect() 60 canvas->drawBitmapRectToRect(fBitmap, src, dst, paint); in onDrawRectToRect()
|
D | SkImage_Raster.cpp | 63 SkPixelRef* getPixelRef() const { return fBitmap.pixelRef(); } in getPixelRef() 68 SkBitmap fBitmap; member in SkImage_Raster 87 fBitmap.setConfig(info, rowBytes); in SkImage_Raster() 88 fBitmap.setPixelRef(SkNEW_ARGS(SkDataPixelRef, (info, data)))->unref(); in SkImage_Raster() 89 fBitmap.setImmutable(); in SkImage_Raster() 96 fBitmap.setConfig(config, info.fWidth, info.fHeight, rowBytes, info.fAlphaType); in SkImage_Raster() 97 fBitmap.setPixelRef(pr); in SkImage_Raster() 103 canvas->drawBitmap(fBitmap, x, y, paint); in onDraw() 107 canvas->drawBitmapRectToRect(fBitmap, src, dst, paint); in onDrawRectToRect() 111 *dst = fBitmap; in getROPixels()
|
/external/chromium_org/third_party/skia/src/opts/ |
D | SkBitmapProcState_opts_arm.cpp | 32 const uint16_t* SK_RESTRICT table = s.fBitmap->getColorTable()->lock16BitCache(); in SI8_D16_nofilter_DX_arm() 33 const uint8_t* SK_RESTRICT srcAddr = (const uint8_t*)s.fBitmap->getPixels(); in SI8_D16_nofilter_DX_arm() 37 SkASSERT((unsigned)xy[0] < (unsigned)s.fBitmap->height()); in SI8_D16_nofilter_DX_arm() 39 xy[0] * s.fBitmap->rowBytes()); in SI8_D16_nofilter_DX_arm() 43 if (1 == s.fBitmap->width()) { in SI8_D16_nofilter_DX_arm() 107 s.fBitmap->getColorTable()->unlock16BitCache(); in SI8_D16_nofilter_DX_arm() 123 const SkPMColor* SK_RESTRICT table = s.fBitmap->getColorTable()->lockColors(); in SI8_opaque_D32_nofilter_DX_arm() 124 const uint8_t* SK_RESTRICT srcAddr = (const uint8_t*)s.fBitmap->getPixels(); in SI8_opaque_D32_nofilter_DX_arm() 128 SkASSERT((unsigned)xy[0] < (unsigned)s.fBitmap->height()); in SI8_opaque_D32_nofilter_DX_arm() 129 srcAddr = (const uint8_t*)((const char*)srcAddr + xy[0] * s.fBitmap->rowBytes()); in SI8_opaque_D32_nofilter_DX_arm() [all …]
|
/external/skia/src/opts/ |
D | SkBitmapProcState_opts_arm.cpp | 32 const uint16_t* SK_RESTRICT table = s.fBitmap->getColorTable()->lock16BitCache(); in SI8_D16_nofilter_DX_arm() 33 const uint8_t* SK_RESTRICT srcAddr = (const uint8_t*)s.fBitmap->getPixels(); in SI8_D16_nofilter_DX_arm() 37 SkASSERT((unsigned)xy[0] < (unsigned)s.fBitmap->height()); in SI8_D16_nofilter_DX_arm() 39 xy[0] * s.fBitmap->rowBytes()); in SI8_D16_nofilter_DX_arm() 43 if (1 == s.fBitmap->width()) { in SI8_D16_nofilter_DX_arm() 107 s.fBitmap->getColorTable()->unlock16BitCache(); in SI8_D16_nofilter_DX_arm() 123 const SkPMColor* SK_RESTRICT table = s.fBitmap->getColorTable()->lockColors(); in SI8_opaque_D32_nofilter_DX_arm() 124 const uint8_t* SK_RESTRICT srcAddr = (const uint8_t*)s.fBitmap->getPixels(); in SI8_opaque_D32_nofilter_DX_arm() 128 SkASSERT((unsigned)xy[0] < (unsigned)s.fBitmap->height()); in SI8_opaque_D32_nofilter_DX_arm() 129 srcAddr = (const uint8_t*)((const char*)srcAddr + xy[0] * s.fBitmap->rowBytes()); in SI8_opaque_D32_nofilter_DX_arm() [all …]
|
/external/chromium_org/third_party/skia/src/core/ |
D | SkBitmapDevice.cpp | 18 : fBitmap(bitmap) { in SkBitmapDevice() 24 , fBitmap(bitmap) { in SkBitmapDevice() 28 fBitmap.setConfig(config, width, height, 0, isOpaque ? in SkBitmapDevice() 30 if (!fBitmap.allocPixels()) { in SkBitmapDevice() 31 fBitmap.setConfig(config, 0, 0, 0, isOpaque ? in SkBitmapDevice() 35 fBitmap.eraseColor(SK_ColorTRANSPARENT); in SkBitmapDevice() 43 fBitmap.setConfig(config, width, height, 0, isOpaque ? in SkBitmapDevice() 45 if (!fBitmap.allocPixels()) { in SkBitmapDevice() 46 fBitmap.setConfig(config, 0, 0, 0, isOpaque ? in SkBitmapDevice() 50 fBitmap.eraseColor(SK_ColorTRANSPARENT); in SkBitmapDevice() [all …]
|
D | SkBitmapProcState_sample.h | 51 const char* SK_RESTRICT srcAddr = (const char*)s.fBitmap->getPixels(); in MAKENAME() 52 size_t rb = s.fBitmap->rowBytes(); in MAKENAME() 59 SkASSERT((XY >> 16) < (unsigned)s.fBitmap->height() && in MAKENAME() 60 (XY & 0xFFFF) < (unsigned)s.fBitmap->width()); in MAKENAME() 65 SkASSERT((XY >> 16) < (unsigned)s.fBitmap->height() && in MAKENAME() 66 (XY & 0xFFFF) < (unsigned)s.fBitmap->width()); in MAKENAME() 72 SkASSERT((XY >> 16) < (unsigned)s.fBitmap->height() && in MAKENAME() 73 (XY & 0xFFFF) < (unsigned)s.fBitmap->width()); in MAKENAME() 94 const SRCTYPE* SK_RESTRICT srcAddr = (const SRCTYPE*)s.fBitmap->getPixels(); in MAKENAME() 98 SkASSERT((unsigned)xy[0] < (unsigned)s.fBitmap->height()); in MAKENAME() [all …]
|
D | SkBitmapProcState_procs.h | 93 #define CHECKSTATE(state) SkASSERT(state.fBitmap->config() == SkBitmap::kARGB_8888_Config); \ 105 #define CHECKSTATE(state) SkASSERT(state.fBitmap->config() == SkBitmap::kARGB_8888_Config); \ 124 #define CHECKSTATE(state) SkASSERT(state.fBitmap->config() == SkBitmap::kRGB_565_Config); \ 140 #define CHECKSTATE(state) SkASSERT(state.fBitmap->config() == SkBitmap::kRGB_565_Config); \ 155 #define CHECKSTATE(state) SkASSERT(state.fBitmap->config() == SkBitmap::kIndex8_Config); \ 157 #define PREAMBLE(state) const SkPMColor* SK_RESTRICT table = state.fBitmap->getColorTable()… 160 #define POSTAMBLE(state) state.fBitmap->getColorTable()->unlockColors() 169 #define CHECKSTATE(state) SkASSERT(state.fBitmap->config() == SkBitmap::kIndex8_Config); \ 172 … const SkPMColor* SK_RESTRICT table = state.fBitmap->getColorTable()->lockColors() 175 #define POSTAMBLE(state) state.fBitmap->getColorTable()->unlockColors() [all …]
|
/external/skia/src/core/ |
D | SkBitmapDevice.cpp | 18 : fBitmap(bitmap) { in SkBitmapDevice() 24 , fBitmap(bitmap) { in SkBitmapDevice() 28 fBitmap.setConfig(config, width, height, 0, isOpaque ? in SkBitmapDevice() 30 if (!fBitmap.allocPixels()) { in SkBitmapDevice() 31 fBitmap.setConfig(config, 0, 0, 0, isOpaque ? in SkBitmapDevice() 35 fBitmap.eraseColor(SK_ColorTRANSPARENT); in SkBitmapDevice() 43 fBitmap.setConfig(config, width, height, 0, isOpaque ? in SkBitmapDevice() 45 if (!fBitmap.allocPixels()) { in SkBitmapDevice() 46 fBitmap.setConfig(config, 0, 0, 0, isOpaque ? in SkBitmapDevice() 50 fBitmap.eraseColor(SK_ColorTRANSPARENT); in SkBitmapDevice() [all …]
|
D | SkBitmapProcState_sample.h | 51 const char* SK_RESTRICT srcAddr = (const char*)s.fBitmap->getPixels(); in MAKENAME() 52 size_t rb = s.fBitmap->rowBytes(); in MAKENAME() 59 SkASSERT((XY >> 16) < (unsigned)s.fBitmap->height() && in MAKENAME() 60 (XY & 0xFFFF) < (unsigned)s.fBitmap->width()); in MAKENAME() 65 SkASSERT((XY >> 16) < (unsigned)s.fBitmap->height() && in MAKENAME() 66 (XY & 0xFFFF) < (unsigned)s.fBitmap->width()); in MAKENAME() 72 SkASSERT((XY >> 16) < (unsigned)s.fBitmap->height() && in MAKENAME() 73 (XY & 0xFFFF) < (unsigned)s.fBitmap->width()); in MAKENAME() 94 const SRCTYPE* SK_RESTRICT srcAddr = (const SRCTYPE*)s.fBitmap->getPixels(); in MAKENAME() 98 SkASSERT((unsigned)xy[0] < (unsigned)s.fBitmap->height()); in MAKENAME() [all …]
|
D | SkBitmapProcState_procs.h | 93 #define CHECKSTATE(state) SkASSERT(state.fBitmap->config() == SkBitmap::kARGB_8888_Config); \ 105 #define CHECKSTATE(state) SkASSERT(state.fBitmap->config() == SkBitmap::kARGB_8888_Config); \ 124 #define CHECKSTATE(state) SkASSERT(state.fBitmap->config() == SkBitmap::kRGB_565_Config); \ 140 #define CHECKSTATE(state) SkASSERT(state.fBitmap->config() == SkBitmap::kRGB_565_Config); \ 155 #define CHECKSTATE(state) SkASSERT(state.fBitmap->config() == SkBitmap::kIndex8_Config); \ 157 #define PREAMBLE(state) const SkPMColor* SK_RESTRICT table = state.fBitmap->getColorTable()… 160 #define POSTAMBLE(state) state.fBitmap->getColorTable()->unlockColors() 169 #define CHECKSTATE(state) SkASSERT(state.fBitmap->config() == SkBitmap::kIndex8_Config); \ 172 … const SkPMColor* SK_RESTRICT table = state.fBitmap->getColorTable()->lockColors() 175 #define POSTAMBLE(state) state.fBitmap->getColorTable()->unlockColors() [all …]
|
/external/skia/bench/ |
D | RepeatTileBench.cpp | 91 SkBitmap fBitmap; member in RepeatTileBench 102 fBitmap.setConfig(SkBitmap::kARGB_8888_Config, w, h); in RepeatTileBench() 104 fBitmap.setConfig(fConfig, w, h); in RepeatTileBench() 107 gConfigName[fBitmap.config()], isOpaque ? 'X' : 'A'); in RepeatTileBench() 116 fBitmap.allocPixels(); in onPreDraw() 117 fBitmap.eraseColor(fIsOpaque ? SK_ColorWHITE : 0); in onPreDraw() 118 fBitmap.setAlphaType(fIsOpaque ? in onPreDraw() 121 draw_into_bitmap(fBitmap); in onPreDraw() 125 convert_to_index666(fBitmap, &tmp, fIsOpaque); in onPreDraw() 126 fBitmap = tmp; in onPreDraw() [all …]
|
/external/skia/src/animator/ |
D | SkDrawBitmap.cpp | 36 maker.fCanvas->drawBitmap(fBitmap, x, y, maker.fPaint); in draw() 91 fBitmap.setConfig((SkBitmap::Config) format, width, height, rowBytes); in onEndElement() 92 fBitmap.allocPixels(); in onEndElement() 94 fBitmap.eraseColor(fColor); in onEndElement() 162 value->fOperand.fS32 = fBitmap.height(); in getProperty() 165 value->fOperand.fS32 = fBitmap.width(); in getProperty() 182 fBitmap.reset(); in resolve() 183 SkImageDecoder::DecodeMemory(base64.fData, base64.fLength, &fBitmap); in resolve() 188 fBitmap.reset(); in resolve() 193 SkImageDecoder::DecodeStream(stream, &fBitmap); in resolve()
|
/external/chromium_org/third_party/skia/src/animator/ |
D | SkDrawBitmap.cpp | 36 maker.fCanvas->drawBitmap(fBitmap, x, y, maker.fPaint); in draw() 91 fBitmap.setConfig((SkBitmap::Config) format, width, height, rowBytes); in onEndElement() 92 fBitmap.allocPixels(); in onEndElement() 94 fBitmap.eraseColor(fColor); in onEndElement() 162 value->fOperand.fS32 = fBitmap.height(); in getProperty() 165 value->fOperand.fS32 = fBitmap.width(); in getProperty() 182 fBitmap.reset(); in resolve() 183 SkImageDecoder::DecodeMemory(base64.fData, base64.fLength, &fBitmap); in resolve() 188 fBitmap.reset(); in resolve() 193 SkImageDecoder::DecodeStream(stream, &fBitmap); in resolve()
|
/external/skia/tools/ |
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() 166 SkAutoLockPixels alpDiff(dr->fDifference.fBitmap); in compute_diff() 167 SkAutoLockPixels alpWhite(dr->fWhite.fBitmap); in compute_diff() 179 SkPMColor c0 = *dr->fBase.fBitmap.getAddr32(x, y); in compute_diff() 180 SkPMColor c1 = *dr->fComparison.fBitmap.getAddr32(x, y); in compute_diff() 207 *dr->fDifference.fBitmap.getAddr32(x, y) = outputDifference; in compute_diff() 208 *dr->fWhite.fBitmap.getAddr32(x, y) = PMCOLOR_WHITE; in compute_diff() 210 *dr->fDifference.fBitmap.getAddr32(x, y) = 0; in compute_diff() [all …]
|