/external/skia/src/images/ |
D | SkImageRef.cpp | 60 SkASSERT(SkBitmap::kNo_Config != fBitmap.config()); in getInfo() 62 bitmap->setConfig(fBitmap.config(), fBitmap.width(), fBitmap.height()); in getInfo() 70 bitmap->setIsOpaque(fBitmap.isOpaque()); in isOpaque() 102 if (SkBitmap::kNo_Config != fBitmap.config()) { in prepareBitmap() 103 fConfig = fBitmap.config(); in prepareBitmap() 106 if (NULL != fBitmap.getPixels() || in prepareBitmap() 107 (SkBitmap::kNo_Config != fBitmap.config() && in prepareBitmap() 112 SkASSERT(fBitmap.getPixels() == NULL); in prepareBitmap() 128 if (this->onDecode(codec, fStream, &fBitmap, fConfig, mode)) { in prepareBitmap() 142 fBitmap.reset(); 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 | colormatrix.cpp | 20 fBitmap = createBitmap(64, 64); in ColorMatrixGM() 56 canvas->drawBitmap(fBitmap, 0, 0, &paint); in onDraw() 60 canvas->drawBitmap(fBitmap, 80, 0, &paint); in onDraw() 64 canvas->drawBitmap(fBitmap, 160, 0, &paint); in onDraw() 68 canvas->drawBitmap(fBitmap, 240, 0, &paint); in onDraw() 72 canvas->drawBitmap(fBitmap, 0, 80, &paint); in onDraw() 76 canvas->drawBitmap(fBitmap, 80, 80, &paint); in onDraw() 80 canvas->drawBitmap(fBitmap, 160, 80, &paint); in onDraw() 84 canvas->drawBitmap(fBitmap, 240, 80, &paint); in onDraw() 88 canvas->drawBitmap(fBitmap, 0, 160, &paint); in onDraw() [all …]
|
D | morphology.cpp | 29 fBitmap.setConfig(SkBitmap::kARGB_8888_Config, 135, 135); in make_bitmap() 30 fBitmap.allocPixels(); in make_bitmap() 31 SkDevice device(fBitmap); in make_bitmap() 82 canvas->drawBitmap(fBitmap, samples[i].fX, samples[i].fY); in onDraw() 89 SkBitmap fBitmap; member in skiagm::MorphologyGM
|
/external/skia/src/opts/ |
D | SkBitmapProcState_opts_arm.cpp | 28 const uint16_t* SK_RESTRICT table = s.fBitmap->getColorTable()->lock16BitCache(); in SI8_D16_nofilter_DX_arm() 29 const uint8_t* SK_RESTRICT srcAddr = (const uint8_t*)s.fBitmap->getPixels(); in SI8_D16_nofilter_DX_arm() 33 SkASSERT((unsigned)xy[0] < (unsigned)s.fBitmap->height()); in SI8_D16_nofilter_DX_arm() 35 xy[0] * s.fBitmap->rowBytes()); in SI8_D16_nofilter_DX_arm() 39 if (1 == s.fBitmap->width()) { in SI8_D16_nofilter_DX_arm() 103 s.fBitmap->getColorTable()->unlock16BitCache(); in SI8_D16_nofilter_DX_arm() 119 const SkPMColor* SK_RESTRICT table = s.fBitmap->getColorTable()->lockColors(); in SI8_opaque_D32_nofilter_DX_arm() 120 const uint8_t* SK_RESTRICT srcAddr = (const uint8_t*)s.fBitmap->getPixels(); in SI8_opaque_D32_nofilter_DX_arm() 124 SkASSERT((unsigned)xy[0] < (unsigned)s.fBitmap->height()); in SI8_opaque_D32_nofilter_DX_arm() 125 srcAddr = (const uint8_t*)((const char*)srcAddr + xy[0] * s.fBitmap->rowBytes()); in SI8_opaque_D32_nofilter_DX_arm() [all …]
|
D | SkBitmapProcState_opts_SSE2.cpp | 19 SkASSERT(s.fBitmap->config() == SkBitmap::kARGB_8888_Config); in S32_opaque_D32_filter_DX_SSE2() 22 const char* srcAddr = static_cast<const char*>(s.fBitmap->getPixels()); in S32_opaque_D32_filter_DX_SSE2() 23 unsigned rb = s.fBitmap->rowBytes(); in S32_opaque_D32_filter_DX_SSE2() 125 SkASSERT(s.fBitmap->config() == SkBitmap::kARGB_8888_Config); in S32_alpha_D32_filter_DX_SSE2() 128 const char* srcAddr = static_cast<const char*>(s.fBitmap->getPixels()); in S32_alpha_D32_filter_DX_SSE2() 129 unsigned rb = s.fBitmap->rowBytes(); in S32_alpha_D32_filter_DX_SSE2() 252 const unsigned maxX = s.fBitmap->width() - 1; in ClampX_ClampY_filter_scale_SSE2() 261 const unsigned maxY = s.fBitmap->height() - 1; in ClampX_ClampY_filter_scale_SSE2() 376 const unsigned maxX = s.fBitmap->width() - 1; in ClampX_ClampY_nofilter_scale_SSE2() 382 const unsigned maxY = s.fBitmap->height() - 1; in ClampX_ClampY_nofilter_scale_SSE2() [all …]
|
/external/skia/src/core/ |
D | SkBitmapProcState_sample.h | 36 const char* SK_RESTRICT srcAddr = (const char*)s.fBitmap->getPixels(); in MAKENAME() 37 int i, rb = s.fBitmap->rowBytes(); in MAKENAME() 44 SkASSERT((XY >> 16) < (unsigned)s.fBitmap->height() && in MAKENAME() 45 (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() 57 SkASSERT((XY >> 16) < (unsigned)s.fBitmap->height() && in MAKENAME() 58 (XY & 0xFFFF) < (unsigned)s.fBitmap->width()); in MAKENAME() 79 const SRCTYPE* SK_RESTRICT srcAddr = (const SRCTYPE*)s.fBitmap->getPixels(); in MAKENAME() 83 SkASSERT((unsigned)xy[0] < (unsigned)s.fBitmap->height()); in MAKENAME() [all …]
|
D | SkBitmapProcState.cpp | 92 #define CHECKSTATE(state) SkASSERT(state.fBitmap->config() == SkBitmap::kARGB_8888_Config); \ 104 #define CHECKSTATE(state) SkASSERT(state.fBitmap->config() == SkBitmap::kARGB_8888_Config); \ 123 #define CHECKSTATE(state) SkASSERT(state.fBitmap->config() == SkBitmap::kRGB_565_Config); \ 139 #define CHECKSTATE(state) SkASSERT(state.fBitmap->config() == SkBitmap::kRGB_565_Config); \ 154 #define CHECKSTATE(state) SkASSERT(state.fBitmap->config() == SkBitmap::kIndex8_Config); \ 156 #define PREAMBLE(state) const SkPMColor* SK_RESTRICT table = state.fBitmap->getColorTable()… 159 #define POSTAMBLE(state) state.fBitmap->getColorTable()->unlockColors(false) 168 #define CHECKSTATE(state) SkASSERT(state.fBitmap->config() == SkBitmap::kIndex8_Config); \ 171 … const SkPMColor* SK_RESTRICT table = state.fBitmap->getColorTable()->lockColors() 174 #define POSTAMBLE(state) state.fBitmap->getColorTable()->unlockColors(false) [all …]
|
D | SkDevice.cpp | 16 SkDevice::SkDevice(const SkBitmap& bitmap) : fBitmap(bitmap) { in SkDevice() 25 fBitmap.setConfig(config, width, height); in SkDevice() 26 fBitmap.allocPixels(); in SkDevice() 27 fBitmap.setIsOpaque(isOpaque); in SkDevice() 29 fBitmap.eraseColor(0); in SkDevice() 68 if (fBitmap.lockPixelsAreWritable()) { in lockPixels() 69 fBitmap.lockPixels(); in lockPixels() 74 if (fBitmap.lockPixelsAreWritable()) { in unlockPixels() 75 fBitmap.unlockPixels(); in unlockPixels() 80 const SkBitmap& bitmap = this->onAccessBitmap(&fBitmap); in accessBitmap() [all …]
|
D | SkBitmapProcState_matrix.h | 38 const unsigned maxX = s.fBitmap->width() - 1; in SCALE_NOFILTER_NAME() 45 const unsigned maxY = s.fBitmap->height() - 1; in SCALE_NOFILTER_NAME() 112 int maxX = s.fBitmap->width() - 1; in AFFINE_NOFILTER_NAME() 113 int maxY = s.fBitmap->height() - 1; in AFFINE_NOFILTER_NAME() 127 int maxX = s.fBitmap->width() - 1; in PERSP_NOFILTER_NAME() 128 int maxY = s.fBitmap->height() - 1; in PERSP_NOFILTER_NAME() 168 const unsigned maxX = s.fBitmap->width() - 1; in SCALE_FILTER_NAME() 178 const unsigned maxY = s.fBitmap->height() - 1; in SCALE_FILTER_NAME() 220 unsigned maxX = s.fBitmap->width() - 1; in AFFINE_FILTER_NAME() 221 unsigned maxY = s.fBitmap->height() - 1; in AFFINE_FILTER_NAME() [all …]
|
D | SkBitmapSamplerTemplate.h | 27 return BITMAP_PIXEL_TO_PMCOLOR(fBitmap, x, y); in BITMAP_CLASSNAME_PREFIX() 43 return BITMAP_PIXEL_TO_PMCOLOR(fBitmap, x, y); in BITMAP_CLASSNAME_PREFIX() 58 return BITMAP_PIXEL_TO_PMCOLOR(fBitmap, x, y); in BITMAP_CLASSNAME_PREFIX() 73 return BITMAP_PIXEL_TO_PMCOLOR(fBitmap, x, y); in BITMAP_CLASSNAME_PREFIX() 88 return BITMAP_PIXEL_TO_PMCOLOR(fBitmap, x, y); in BITMAP_CLASSNAME_PREFIX() 103 return BITMAP_PIXEL_TO_PMCOLOR(fBitmap, x, y); in BITMAP_CLASSNAME_PREFIX()
|
D | SkBitmapProcState_shaderproc.h | 22 const unsigned maxX = s.fBitmap->width() - 1; in SCALE_FILTER_NAME() 35 const unsigned maxY = s.fBitmap->height() - 1; in SCALE_FILTER_NAME() 41 const char* SK_RESTRICT srcAddr = (const char*)s.fBitmap->getPixels(); in SCALE_FILTER_NAME() 42 unsigned rb = s.fBitmap->rowBytes(); in SCALE_FILTER_NAME()
|
D | SkBitmapProcState_matrix_repeat.h | 68 const unsigned maxX = s.fBitmap->width() - 1; in SCALE_NOFILTER_NAME() 75 const unsigned maxY = s.fBitmap->height() - 1; in SCALE_NOFILTER_NAME() 208 int maxX = s.fBitmap->width() - 1; in AFFINE_NOFILTER_NAME() 209 int maxY = s.fBitmap->height() - 1; in AFFINE_NOFILTER_NAME() 317 int maxX = s.fBitmap->width() - 1; in PERSP_NOFILTER_NAME() 318 int maxY = s.fBitmap->height() - 1; in PERSP_NOFILTER_NAME() 453 const unsigned maxX = s.fBitmap->width() - 1; in SCALE_FILTER_NAME() 463 const unsigned maxY = s.fBitmap->height() - 1; in SCALE_FILTER_NAME() 505 unsigned maxX = s.fBitmap->width() - 1; in AFFINE_FILTER_NAME() 506 unsigned maxY = s.fBitmap->height() - 1; in AFFINE_FILTER_NAME() [all …]
|
/external/skia/src/animator/ |
D | SkDrawBitmap.cpp | 36 maker.fCanvas->drawBitmap(fBitmap, x, y, maker.fPaint); in draw() 93 fBitmap.setConfig((SkBitmap::Config) format, width, height, rowBytes); in onEndElement() 94 fBitmap.allocPixels(); in onEndElement() 96 fBitmap.eraseColor(fColor); in onEndElement() 164 value->fOperand.fS32 = fBitmap.height(); in getProperty() 167 value->fOperand.fS32 = fBitmap.width(); in getProperty() 184 fBitmap.reset(); in resolve() 185 SkImageDecoder::DecodeMemory(base64.fData, base64.fLength, &fBitmap); in resolve() 190 fBitmap.reset(); in resolve() 196 SkImageDecoder::DecodeStream(stream, &fBitmap); in resolve()
|
/external/skia/samplecode/ |
D | SampleOvalTest.cpp | 20 SkBitmap fBitmap; member in OvalTestView 25 fBitmap.setConfig(SkBitmap::kARGB_8888_Config, kILimit, kILimit); in OvalTestView() 26 fBitmap.allocPixels(); in OvalTestView() 45 SkCanvas canvas(fBitmap); in drawOval() 48 fBitmap.eraseColor(0); in drawOval() 64 SkPMColor* ptr = fBitmap.getAddr32(x, y); in checkOval() 86 canvas->drawBitmap(fBitmap, SkIntToScalar(20), SkIntToScalar(20), NULL); in onDrawContent()
|
D | SampleDecode.cpp | 28 SkBitmap fBitmap[SK_ARRAY_COUNT(gRec)]; member in DecodeView 37 codec->decode(&stream, &fBitmap[i], gRec[i].fPrefConfig, in DecodeView() 63 for (size_t i = 0; i < SK_ARRAY_COUNT(fBitmap); i++) { in onDraw() 64 canvas->drawBitmap(fBitmap[i], 0, 0); in onDraw() 65 canvas->translate(SkIntToScalar(fBitmap[i].width()), 0); in onDraw()
|
D | SampleShaders.cpp | 53 SkBitmap fBitmap; member in ShaderView 56 SkImageDecoder::DecodeFile("/skimages/logo.gif", &fBitmap); in ShaderView() 95 canvas->drawBitmap(fBitmap, 0, 0); in onDrawContent() 109 int w = fBitmap.width(); in onDrawContent() 110 int h = fBitmap.height(); in onDrawContent() 117 paint.setShader(make_bitmapfade(fBitmap))->unref(); in onDrawContent()
|
D | SampleMipMap.cpp | 39 SkBitmap fBitmap; member in MipMapView 45 fBitmap = createBitmap(N); in MipMapView() 94 drawN2(canvas, fBitmap); in onDrawContent() 97 SkBitmap bitmap(fBitmap); in onDrawContent() 116 canvas->drawBitmapRect(fBitmap, NULL, dst, NULL); in onDrawContent() 118 canvas->drawBitmapRect(fBitmap, NULL, dst, &paint); in onDrawContent()
|
/external/skia/src/effects/ |
D | SkTableColorFilter.cpp | 9 fBitmap = NULL; in SkTable_ColorFilter() 49 SkBitmap* fBitmap; member in SkTable_ColorFilter 171 fBitmap = NULL; in SkTable_ColorFilter() 188 if (NULL == fBitmap) { in asComponentTable() 189 fBitmap = new SkBitmap; in asComponentTable() 190 fBitmap->setConfig(SkBitmap::kA8_Config, 256, 4, 256); in asComponentTable() 191 fBitmap->allocPixels(); in asComponentTable() 192 memcpy(fBitmap->getAddr8(0, 0), fStorage, 256 * 4); in asComponentTable() 194 *table = *fBitmap; in asComponentTable()
|
/external/skia/bench/ |
D | BitmapBench.cpp | 100 SkBitmap fBitmap; member in BitmapBench 127 convertToIndex666(bm, &fBitmap); in BitmapBench() 129 fBitmap = bm; in BitmapBench() 132 if (fBitmap.getColorTable()) { in BitmapBench() 133 fBitmap.getColorTable()->setIsOpaque(isOpaque); in BitmapBench() 135 fBitmap.setIsOpaque(isOpaque); in BitmapBench() 136 fBitmap.setIsVolatile(bitmapVolatile); in BitmapBench() 148 fName.appendf("_%s%s", gConfigName[fBitmap.config()], in onGetName() 152 if (fBitmap.isVolatile()) in onGetName() 165 const SkBitmap& bitmap = fBitmap; in onDraw()
|
/external/webkit/Source/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 | 80 virtual int width() const { return fBitmap.width(); } in width() 83 virtual int height() const { return fBitmap.height(); } in height() 95 bool isOpaque() const { return fBitmap.isOpaque(); } in isOpaque() 99 SkBitmap::Config config() const { return fBitmap.getConfig(); } in config() 291 SkPixelRef* getPixelRef() const { return fBitmap.pixelRef(); } in getPixelRef() 294 fBitmap.setPixelRef(pr, offset); in setPixelRef() 364 SkBitmap fBitmap; variable
|
/external/skia/src/views/ |
D | SkWindow.cpp | 90 this->resize(fBitmap.width(), fBitmap.height(), config); in setConfig() 98 if (width != fBitmap.width() || height != fBitmap.height() || config != fConfig) in resize() 101 fBitmap.setConfig(config, width, height); in resize() 102 fBitmap.allocPixels(); in resize() 103 fBitmap.setIsOpaque(true); in resize() 112 fBitmap.eraseARGB(a, r, g, b); in eraseARGB() 117 fBitmap.eraseRGB(r, g, b); in eraseRGB()
|
D | SkWidgets.cpp | 509 *bitmap = fBitmap; 510 return fBitmap.getConfig() != SkBitmap::kNo_Config; 517 fBitmap = *bitmap; 518 fBitmap.setOwnsPixels(viewOwnsPixels); 537 if (fBitmap.getConfig() != SkBitmap::kNo_Config && 538 fBitmap.width() && fBitmap.height()) 544 canvas->scale( this->width() / fBitmap.width(), 545 this->height() / fBitmap.height(), 547 canvas->drawBitmap(fBitmap, 0, 0, p);
|
/external/skia/src/gpu/ |
D | SkGrTexturePixelRef.cpp | 31 fBitmap.reset(); in onLockPixels() 33 if (!this->onReadPixels(&fBitmap, NULL)) { in onLockPixels() 37 fBitmap.lockPixels(); in onLockPixels() 38 return fBitmap.getPixels(); in onLockPixels() 42 fBitmap.unlockPixels(); in onUnlockPixels()
|