/external/chromium_org/third_party/skia/src/image/ |
SkImage_Raster.cpp | 63 SkPixelRef* getPixelRef() const { return fBitmap.pixelRef(); } 68 SkBitmap fBitmap; 87 fBitmap.setConfig(info, rowBytes); 88 fBitmap.setPixelRef(SkNEW_ARGS(SkDataPixelRef, (info, data)))->unref(); 89 fBitmap.setImmutable(); 96 fBitmap.setConfig(config, info.fWidth, info.fHeight, rowBytes, info.fAlphaType); 97 fBitmap.setPixelRef(pr); 103 canvas->drawBitmap(fBitmap, x, y, paint); 107 canvas->drawBitmapRectToRect(fBitmap, src, dst, paint); 111 *dst = fBitmap; [all...] |
/external/skia/src/animator/ |
SkDrawBitmap.cpp | 36 maker.fCanvas->drawBitmap(fBitmap, x, y, maker.fPaint); 91 fBitmap.setConfig((SkBitmap::Config) format, width, height, rowBytes); 92 fBitmap.allocPixels(); 94 fBitmap.eraseColor(fColor); 162 value->fOperand.fS32 = fBitmap.height(); 165 value->fOperand.fS32 = fBitmap.width(); 182 fBitmap.reset(); 183 SkImageDecoder::DecodeMemory(base64.fData, base64.fLength, &fBitmap); 188 fBitmap.reset(); 193 SkImageDecoder::DecodeStream(stream, &fBitmap); [all...] |
/external/skia/src/image/ |
SkImage_Raster.cpp | 63 SkPixelRef* getPixelRef() const { return fBitmap.pixelRef(); } 68 SkBitmap fBitmap; 87 fBitmap.setConfig(info, rowBytes); 88 fBitmap.setPixelRef(SkNEW_ARGS(SkDataPixelRef, (info, data)))->unref(); 89 fBitmap.setImmutable(); 96 fBitmap.setConfig(config, info.fWidth, info.fHeight, rowBytes, info.fAlphaType); 97 fBitmap.setPixelRef(pr); 103 canvas->drawBitmap(fBitmap, x, y, paint); 107 canvas->drawBitmapRectToRect(fBitmap, src, dst, paint); 111 *dst = fBitmap; [all...] |
/external/chromium_org/third_party/skia/src/core/ |
SkBitmapDevice.cpp | 18 : fBitmap(bitmap) { 24 , fBitmap(bitmap) { 28 fBitmap.setConfig(config, width, height, 0, isOpaque ? 30 if (!fBitmap.allocPixels()) { 31 fBitmap.setConfig(config, 0, 0, 0, isOpaque ? 35 fBitmap.eraseColor(SK_ColorTRANSPARENT); 43 fBitmap.setConfig(config, width, height, 0, isOpaque ? 45 if (!fBitmap.allocPixels()) { 46 fBitmap.setConfig(config, 0, 0, 0, isOpaque ? 50 fBitmap.eraseColor(SK_ColorTRANSPARENT) [all...] |
SkBitmapProcState_sample.h | 51 const char* SK_RESTRICT srcAddr = (const char*)s.fBitmap->getPixels(); 52 size_t rb = s.fBitmap->rowBytes(); 59 SkASSERT((XY >> 16) < (unsigned)s.fBitmap->height() && 60 (XY & 0xFFFF) < (unsigned)s.fBitmap->width()); 65 SkASSERT((XY >> 16) < (unsigned)s.fBitmap->height() && 66 (XY & 0xFFFF) < (unsigned)s.fBitmap->width()); 72 SkASSERT((XY >> 16) < (unsigned)s.fBitmap->height() && 73 (XY & 0xFFFF) < (unsigned)s.fBitmap->width()); 94 const SRCTYPE* SK_RESTRICT srcAddr = (const SRCTYPE*)s.fBitmap->getPixels(); 98 SkASSERT((unsigned)xy[0] < (unsigned)s.fBitmap->height()) [all...] |
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()->lockColors() 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...] |
SkBitmapProcState_shaderproc.h | 27 const unsigned maxX = s.fBitmap->width() - 1; 40 const unsigned maxY = s.fBitmap->height() - 1; 46 const char* SK_RESTRICT srcAddr = (const char*)s.fBitmap->getPixels(); 47 size_t rb = s.fBitmap->rowBytes();
|
/external/skia/src/core/ |
SkBitmapDevice.cpp | 18 : fBitmap(bitmap) { 24 , fBitmap(bitmap) { 28 fBitmap.setConfig(config, width, height, 0, isOpaque ? 30 if (!fBitmap.allocPixels()) { 31 fBitmap.setConfig(config, 0, 0, 0, isOpaque ? 35 fBitmap.eraseColor(SK_ColorTRANSPARENT); 43 fBitmap.setConfig(config, width, height, 0, isOpaque ? 45 if (!fBitmap.allocPixels()) { 46 fBitmap.setConfig(config, 0, 0, 0, isOpaque ? 50 fBitmap.eraseColor(SK_ColorTRANSPARENT) [all...] |
SkBitmapProcState_sample.h | 51 const char* SK_RESTRICT srcAddr = (const char*)s.fBitmap->getPixels(); 52 size_t rb = s.fBitmap->rowBytes(); 59 SkASSERT((XY >> 16) < (unsigned)s.fBitmap->height() && 60 (XY & 0xFFFF) < (unsigned)s.fBitmap->width()); 65 SkASSERT((XY >> 16) < (unsigned)s.fBitmap->height() && 66 (XY & 0xFFFF) < (unsigned)s.fBitmap->width()); 72 SkASSERT((XY >> 16) < (unsigned)s.fBitmap->height() && 73 (XY & 0xFFFF) < (unsigned)s.fBitmap->width()); 94 const SRCTYPE* SK_RESTRICT srcAddr = (const SRCTYPE*)s.fBitmap->getPixels(); 98 SkASSERT((unsigned)xy[0] < (unsigned)s.fBitmap->height()) [all...] |
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()->lockColors() 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/chromium_org/third_party/skia/src/images/ |
SkMovie.cpp | 76 if (!this->onGetBitmap(&fBitmap)) // failure 77 fBitmap.reset(); 80 return fBitmap;
|
/external/skia/src/images/ |
SkMovie.cpp | 76 if (!this->onGetBitmap(&fBitmap)) // failure 77 fBitmap.reset(); 80 return fBitmap;
|
/external/skia/tools/ |
skdiff.cpp | 159 const int w = dr->fComparison.fBitmap.width(); 160 const int h = dr->fComparison.fBitmap.height(); 161 if (w != dr->fBase.fBitmap.width() || h != dr->fBase.fBitmap.height()) { 166 SkAutoLockPixels alpDiff(dr->fDifference.fBitmap); 167 SkAutoLockPixels alpWhite(dr->fWhite.fBitmap); 179 SkPMColor c0 = *dr->fBase.fBitmap.getAddr32(x, y); 180 SkPMColor c1 = *dr->fComparison.fBitmap.getAddr32(x, y); 207 *dr->fDifference.fBitmap.getAddr32(x, y) = outputDifference; 208 *dr->fWhite.fBitmap.getAddr32(x, y) = PMCOLOR_WHITE [all...] |
skdiff_utils.cpp | 66 if (!codec->decode(&stream, &resource.fBitmap, SkBitmap::kARGB_8888_Config, mode)) { 141 const int w = drp->fBase.fBitmap.width(); 142 const int h = drp->fBase.fBitmap.height(); 144 if (w != drp->fComparison.fBitmap.width() || h != drp->fComparison.fBitmap.height()) { 147 drp->fDifference.fBitmap.setConfig(SkBitmap::kARGB_8888_Config, w, h); 148 drp->fDifference.fBitmap.allocPixels(); 150 drp->fWhite.fBitmap.setConfig(SkBitmap::kARGB_8888_Config, w, h); 151 drp->fWhite.fBitmap.allocPixels(); 174 if (write_bitmap(drp->fDifference.fFullPath, drp->fDifference.fBitmap)) { [all...] |
/external/skia/bench/ |
MergeBench.cpp | 48 SkImageFilter* second = new SkBitmapSource(fBitmap); 55 fBitmap.setConfig(SkBitmap::kARGB_8888_Config, 80, 80); 56 fBitmap.allocPixels(); 57 SkBitmapDevice device(fBitmap); 93 SkBitmap fBitmap, fCheckerboard;
|
DisplacementBench.cpp | 36 fBitmap.setConfig(SkBitmap::kARGB_8888_Config, w, h); 37 fBitmap.allocPixels(); 38 SkBitmapDevice device(fBitmap); 77 SkIntToScalar(fBitmap.width()), 78 SkIntToScalar(fBitmap.height()))); 79 canvas->drawBitmap(fBitmap, SkIntToScalar(x), SkIntToScalar(y), &paint); 85 SkBitmap fBitmap, fCheckerboard;
|
/external/skia/gm/ |
gm_expectations.h | 89 explicit BitmapAndDigest(const SkBitmap &bitmap) : fBitmap(bitmap), fDigest(bitmap) {} 91 const SkBitmap fBitmap; 154 return (SkBitmap::kNo_Config == fBitmap.config()) ? NULL : &fBitmap; 167 SkBitmap fBitmap;
|
lighting.cpp | 28 fBitmap.setConfig(SkBitmap::kARGB_8888_Config, 100, 100); 29 fBitmap.allocPixels(); 30 SkBitmapDevice device(fBitmap); 49 SkIntToScalar(fBitmap.width()), SkIntToScalar(fBitmap.height()))); 50 canvas->drawBitmap(fBitmap, 0, 0, &paint); 119 SkBitmap fBitmap;
|
matrixconvolution.cpp | 27 fBitmap.setConfig(SkBitmap::kARGB_8888_Config, 80, 80); 28 fBitmap.allocPixels(); 29 SkBitmapDevice device(fBitmap); 74 canvas->clipRect(SkRect::MakeWH(SkIntToScalar(fBitmap.width()), 75 SkIntToScalar(fBitmap.height()))); 76 canvas->drawBitmap(fBitmap, 0, 0, &paint); 108 SkBitmap fBitmap;
|
bitmapshader.cpp | 45 draw_bm(&fBitmap); 59 SkShader* shader = SkShader::CreateBitmapShader(fBitmap, 92 SkBitmap fBitmap;
|
/external/chromium_org/third_party/skia/include/core/ |
SkBitmapDevice.h | 71 virtual int width() const SK_OVERRIDE { return fBitmap.width(); } 74 virtual int height() const SK_OVERRIDE { return fBitmap.height(); } 79 virtual bool isOpaque() const SK_OVERRIDE { return fBitmap.isOpaque(); } 83 virtual SkBitmap::Config config() const SK_OVERRIDE { return fBitmap.config(); } 200 SkPixelRef* getPixelRef() const { return fBitmap.pixelRef(); } 203 fBitmap.setPixelRef(pr, offset); 278 SkBitmap fBitmap;
|
/external/skia/include/core/ |
SkBitmapDevice.h | 71 virtual int width() const SK_OVERRIDE { return fBitmap.width(); } 74 virtual int height() const SK_OVERRIDE { return fBitmap.height(); } 79 virtual bool isOpaque() const SK_OVERRIDE { return fBitmap.isOpaque(); } 83 virtual SkBitmap::Config config() const SK_OVERRIDE { return fBitmap.config(); } 200 SkPixelRef* getPixelRef() const { return fBitmap.pixelRef(); } 203 fBitmap.setPixelRef(pr, offset); 278 SkBitmap fBitmap;
|
/external/chromium_org/third_party/skia/include/effects/ |
SkBitmapSource.h | 28 SkBitmap fBitmap;
|
/external/chromium_org/third_party/skia/include/gpu/ |
SkGrPixelRef.h | 33 SkBitmap fBitmap;
|
/external/chromium_org/third_party/skia/include/images/ |
SkMovie.h | 72 SkBitmap fBitmap;
|