Home
last modified time | relevance | path

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

12

/external/skia/src/images/
DSkImageRef.cpp53 SkASSERT(SkBitmap::kNo_Config != fBitmap.config()); in getInfo()
55 bitmap->setConfig(fBitmap.config(), fBitmap.width(), fBitmap.height()); in getInfo()
63 bitmap->setIsOpaque(fBitmap.isOpaque()); in isOpaque()
95 if (SkBitmap::kNo_Config != fBitmap.config()) { in prepareBitmap()
96 fConfig = fBitmap.config(); in prepareBitmap()
99 if (NULL != fBitmap.getPixels() || in prepareBitmap()
100 (SkBitmap::kNo_Config != fBitmap.config() && in prepareBitmap()
105 SkASSERT(fBitmap.getPixels() == NULL); in prepareBitmap()
121 if (this->onDecode(codec, fStream, &fBitmap, fConfig, mode)) { in prepareBitmap()
135 fBitmap.reset(); in prepareBitmap()
[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/opts/
DSkBitmapProcState_opts_arm.cpp33 const uint16_t* SK_RESTRICT table = s.fBitmap->getColorTable()->lock16BitCache(); in SI8_D16_nofilter_DX_arm()
34 const uint8_t* SK_RESTRICT srcAddr = (const uint8_t*)s.fBitmap->getPixels(); in SI8_D16_nofilter_DX_arm()
38 SkASSERT((unsigned)xy[0] < (unsigned)s.fBitmap->height()); in SI8_D16_nofilter_DX_arm()
40 xy[0] * s.fBitmap->rowBytes()); in SI8_D16_nofilter_DX_arm()
44 if (1 == s.fBitmap->width()) { in SI8_D16_nofilter_DX_arm()
108 s.fBitmap->getColorTable()->unlock16BitCache(); in SI8_D16_nofilter_DX_arm()
118 const SkPMColor* SK_RESTRICT table = s.fBitmap->getColorTable()->lockColors(); in SI8_opaque_D32_nofilter_DX_arm()
119 const uint8_t* SK_RESTRICT srcAddr = (const uint8_t*)s.fBitmap->getPixels(); in SI8_opaque_D32_nofilter_DX_arm()
123 SkASSERT((unsigned)xy[0] < (unsigned)s.fBitmap->height()); in SI8_opaque_D32_nofilter_DX_arm()
124 srcAddr = (const uint8_t*)((const char*)srcAddr + xy[0] * s.fBitmap->rowBytes()); in SI8_opaque_D32_nofilter_DX_arm()
[all …]
/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.cpp85 #define CHECKSTATE(state) SkASSERT(state.fBitmap->config() == SkBitmap::kARGB_8888_Config); \
97 #define CHECKSTATE(state) SkASSERT(state.fBitmap->config() == SkBitmap::kARGB_8888_Config); \
116 #define CHECKSTATE(state) SkASSERT(state.fBitmap->config() == SkBitmap::kRGB_565_Config); \
132 #define CHECKSTATE(state) SkASSERT(state.fBitmap->config() == SkBitmap::kRGB_565_Config); \
147 #define CHECKSTATE(state) SkASSERT(state.fBitmap->config() == SkBitmap::kIndex8_Config); \
149 #define PREAMBLE(state) const SkPMColor* SK_RESTRICT table = state.fBitmap->getColorTable()…
152 #define POSTAMBLE(state) state.fBitmap->getColorTable()->unlockColors(false)
161 #define CHECKSTATE(state) SkASSERT(state.fBitmap->config() == SkBitmap::kIndex8_Config); \
164 … const SkPMColor* SK_RESTRICT table = state.fBitmap->getColorTable()->lockColors()
167 #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 …]
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()
DSkBitmapProcShader.cpp94 const SkBitmap& bitmap = *fState.fBitmap; in setContext()
152 SkASSERT(state.fBitmap->getPixels()); in shadeSpan()
153 SkASSERT(state.fBitmap->pixelRef() == NULL || in shadeSpan()
154 state.fBitmap->pixelRef()->getLockCount()); in shadeSpan()
184 SkASSERT(state.fBitmap->getPixels()); in shadeSpan16()
185 SkASSERT(state.fBitmap->pixelRef() == NULL || in shadeSpan16()
186 state.fBitmap->pixelRef()->getLockCount()); in shadeSpan16()
DSkBitmapProcState_matrix_repeat.h63 const unsigned maxX = s.fBitmap->width() - 1; in SCALE_NOFILTER_NAME()
70 const unsigned maxY = s.fBitmap->height() - 1; in SCALE_NOFILTER_NAME()
203 int maxX = s.fBitmap->width() - 1; in AFFINE_NOFILTER_NAME()
204 int maxY = s.fBitmap->height() - 1; in AFFINE_NOFILTER_NAME()
312 int maxX = s.fBitmap->width() - 1; in PERSP_NOFILTER_NAME()
313 int maxY = s.fBitmap->height() - 1; in PERSP_NOFILTER_NAME()
448 const unsigned maxX = s.fBitmap->width() - 1; in SCALE_FILTER_NAME()
458 const unsigned maxY = s.fBitmap->height() - 1; in SCALE_FILTER_NAME()
500 unsigned maxX = s.fBitmap->width() - 1; in AFFINE_FILTER_NAME()
501 unsigned maxY = s.fBitmap->height() - 1; in AFFINE_FILTER_NAME()
[all …]
DSkBitmapProcState_shaderproc.h12 const unsigned maxX = s.fBitmap->width() - 1; in SCALE_FILTER_NAME()
25 const unsigned maxY = s.fBitmap->height() - 1; in SCALE_FILTER_NAME()
31 const char* SK_RESTRICT srcAddr = (const char*)s.fBitmap->getPixels(); in SCALE_FILTER_NAME()
32 unsigned rb = s.fBitmap->rowBytes(); in SCALE_FILTER_NAME()
DSkBitmapProcState_matrix_clamp.h65 const unsigned maxX = s.fBitmap->width() - 1; in SCALE_NOFILTER_NAME()
72 const unsigned maxY = s.fBitmap->height() - 1; in SCALE_NOFILTER_NAME()
180 int maxX = s.fBitmap->width() - 1; in AFFINE_NOFILTER_NAME()
181 int maxY = s.fBitmap->height() - 1; in AFFINE_NOFILTER_NAME()
282 int maxX = s.fBitmap->width() - 1; in PERSP_NOFILTER_NAME()
283 int maxY = s.fBitmap->height() - 1; in PERSP_NOFILTER_NAME()
492 const unsigned maxX = s.fBitmap->width() - 1; in SCALE_FILTER_NAME()
502 const unsigned maxY = s.fBitmap->height() - 1; in SCALE_FILTER_NAME()
615 unsigned maxX = s.fBitmap->width() - 1; in AFFINE_FILTER_NAME()
616 unsigned maxY = s.fBitmap->height() - 1; in AFFINE_FILTER_NAME()
[all …]
/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/skia/bench/
DBitmapBench.cpp93 SkBitmap fBitmap; member in BitmapBench
118 convertToIndex666(bm, &fBitmap); in BitmapBench()
120 fBitmap = bm; in BitmapBench()
123 if (fBitmap.getColorTable()) { in BitmapBench()
124 fBitmap.getColorTable()->setIsOpaque(isOpaque); in BitmapBench()
126 fBitmap.setIsOpaque(isOpaque); in BitmapBench()
138 fName.appendf("_%s%s", gConfigName[fBitmap.config()], in onGetName()
150 const SkBitmap& bitmap = fBitmap; in onDraw()
DFPSBench.cpp53 fBitmap.setConfig(config, this->width(), this->height()); in Bitmap_FPSBench()
54 fBitmap.allocPixels(); in Bitmap_FPSBench()
55 fBitmap.eraseColor(0xFFFF0000); in Bitmap_FPSBench()
57 fBitmap.setIsOpaque(true); in Bitmap_FPSBench()
80 canvas->drawBitmapMatrix(fBitmap, fMatrix); in onDraw()
84 SkBitmap fBitmap; member in Bitmap_FPSBench
/external/skia/gm/
Dxfermodes.cpp37 SkBitmap fBitmap; member in skiagm::XfermodesGM
55 fBitmap.setConfig(SkBitmap::kARGB_8888_Config, W, H); in XfermodesGM()
56 fBitmap.allocPixels(); in XfermodesGM()
125 SkCanvas c(fBitmap); in onDraw()
126 const SkScalar w = SkIntToScalar(fBitmap.width()); in onDraw()
127 const SkScalar h = SkIntToScalar(fBitmap.height()); in onDraw()
147 fBitmap.eraseColor(0); in onDraw()
162 canvas->drawBitmap(fBitmap, x, y, NULL); in onDraw()
/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/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/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()
142 SkBitmap fBitmap;
/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
/external/skia/emoji/
DEmojiFont.cpp57 SkBitmap* fBitmap; member
106 bitmap = rec->fBitmap; in get_bitmap()
116 rec->fBitmap = bitmap; in get_bitmap()

12