Home
last modified time | relevance | path

Searched refs:fBitmap (Results 1 – 25 of 37) sorted by relevance

12

/external/skia/src/images/
DSkImageRef.cpp50 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 …]
DSkImageRefPool.cpp27 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()
DSkMovie.cpp69 if (!this->onGetBitmap(&fBitmap)) // failure in bitmap()
70 fBitmap.reset(); in bitmap()
73 return fBitmap; in bitmap()
/external/skia/src/core/
DSkBitmapProcState_sample.h29 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 …]
DSkBitmapProcState.cpp119 #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 …]
DSkDevice.cpp7 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()
DSkBitmapProcState_matrix.h28 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 …]
DSkBitmapProcShader.cpp87 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()
DSkBitmapSamplerTemplate.h35 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()
DSkBitmapSampler.cpp37 : 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()
DSkDraw.cpp285 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 …]
DSkBitmapSampler.h32 const SkBitmap& getBitmap() const { return fBitmap; } in getBitmap()
48 const SkBitmap& fBitmap;
DSkBitmapProcState_matrixProcs.cpp114 fFilterOneX = SK_Fixed1 / fBitmap->width(); in chooseMatrixProc()
115 fFilterOneY = SK_Fixed1 / fBitmap->height(); in chooseMatrixProc()
/external/skia/src/animator/
DSkDrawBitmap.cpp44 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/
DSkBitmapRef.h36 : 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/
DSkDevice.h47 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;
DSkBitmap.h564 SkAutoLockPixels(const SkBitmap& bitmap) : fBitmap(bitmap) { in SkAutoLockPixels()
568 fBitmap.unlockPixels(); in ~SkAutoLockPixels()
572 const SkBitmap& fBitmap;
/external/skia/src/views/
DSkWindow.cpp62 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()
DSkWidgets.cpp502 *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);
DSkImageView.cpp180 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/
DSkImageRef_ashmem.cpp149 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/
DSkFlipPixelRef.h89 fDirty = &ref->beginUpdate(&fBitmap); in SkAutoFlipUpdate()
97 const SkBitmap& bitmap() const { return fBitmap; } in bitmap()
110 SkBitmap fBitmap; variable
DSkMovie.h77 SkBitmap fBitmap; variable
/external/skia/emoji/
DEmojiFont.cpp54 SkBitmap* fBitmap; member
103 bitmap = rec->fBitmap; in get_bitmap()
113 rec->fBitmap = bitmap; in get_bitmap()
/external/skia/include/views/
DSkWindow.h39 const SkBitmap& getBitmap() const { return fBitmap; } in getBitmap()
77 SkBitmap fBitmap; variable

12