/external/chromium_org/third_party/skia/platform_tools/android/examples/hello_skia_app/jni/ |
H A D | helloskia.cpp | 24 AndroidBitmapInfo dstInfo; local 26 AndroidBitmap_getInfo(env, dstBitmap, &dstInfo); 29 SkImageInfo info = SkImageInfo::MakeN32Premul(dstInfo.width, dstInfo.height); 32 SkAutoTUnref<SkSurface> surface(SkSurface::NewRasterDirect(info, dstPixels, dstInfo.stride));
|
/external/skia/platform_tools/android/examples/hello_skia_app/jni/ |
H A D | helloskia.cpp | 24 AndroidBitmapInfo dstInfo; local 26 AndroidBitmap_getInfo(env, dstBitmap, &dstInfo); 29 SkImageInfo info = SkImageInfo::MakeN32Premul(dstInfo.width, dstInfo.height); 32 SkAutoTUnref<SkSurface> surface(SkSurface::NewRasterDirect(info, dstPixels, dstInfo.stride));
|
/external/chromium_org/third_party/skia/src/core/ |
H A D | SkConfig8888.cpp | 140 bool SkPixelInfo::CopyPixels(const SkImageInfo& dstInfo, void* dstPixels, size_t dstRB, argument 143 if (srcInfo.dimensions() != dstInfo.dimensions()) { 151 if (4 == srcInfo.bytesPerPixel() && 4 == dstInfo.bytesPerPixel()) { 153 dstPI.fColorType = dstInfo.colorType(); 154 dstPI.fAlphaType = dstInfo.alphaType(); 169 if (srcInfo.colorType() == dstInfo.colorType()) { 176 if (srcInfo.alphaType() != dstInfo.alphaType()) { 193 if (kARGB_4444_SkColorType == dstInfo.colorType() && 232 if (dstInfo.alphaType() == kUnpremul_SkAlphaType) { 246 SkAutoTUnref<SkCanvas> canvas(SkCanvas::NewRasterDirect(dstInfo, dstPixel [all...] |
H A D | SkDevice.cpp | 172 const SkImageInfo& dstInfo = this->imageInfo(); local 173 SkASSERT(x + info.width() <= dstInfo.width()); 174 SkASSERT(y + info.height() <= dstInfo.height());
|
H A D | SkBitmapDevice.cpp | 157 const SkImageInfo dstInfo = fBitmap.info().makeWH(srcInfo.width(), srcInfo.height()); local 162 if (SkPixelInfo::CopyPixels(dstInfo, dstPixels, dstRowBytes, srcInfo, srcPixels, srcRowBytes)) { 169 bool SkBitmapDevice::onReadPixels(const SkImageInfo& dstInfo, void* dstPixels, size_t dstRowBytes, argument 171 return fBitmap.readPixels(dstInfo, dstPixels, dstRowBytes, x, y);
|
H A D | SkBitmap.cpp | 858 const SkImageInfo dstInfo = requestedDstInfo.makeWH(srcR.width(), srcR.height()); local 868 dstPixels = ((char*)dstPixels - y * dstRB - x * dstInfo.bytesPerPixel()); 879 const SkImageInfo srcInfo = this->info().makeWH(dstInfo.width(), dstInfo.height()); 882 return SkPixelInfo::CopyPixels(dstInfo, dstPixels, dstRB, srcInfo, srcPixels, this->rowBytes(), 932 const SkImageInfo dstInfo = src->info().makeColorType(dstColorType); local 935 if (!tmpDst.setInfo(dstInfo)) {
|
/external/skia/src/core/ |
H A D | SkDevice.cpp | 102 const SkImageInfo& dstInfo = this->imageInfo(); local 103 SkASSERT(x + info.width() <= dstInfo.width()); 104 SkASSERT(y + info.height() <= dstInfo.height());
|
H A D | SkBitmapDevice.cpp | 171 static bool copy_pixels(const SkImageInfo& dstInfo, void* dstPixels, size_t dstRowBytes, argument 173 if (srcInfo.dimensions() != dstInfo.dimensions()) { 176 if (4 == srcInfo.bytesPerPixel() && 4 == dstInfo.bytesPerPixel()) { 178 dstPI.fColorType = dstInfo.colorType(); 179 dstPI.fAlphaType = dstInfo.alphaType(); 191 if (srcInfo.colorType() == dstInfo.colorType()) { 197 if (srcInfo.alphaType() != dstInfo.alphaType()) { 218 SkImageInfo dstInfo = fBitmap.info(); local 219 dstInfo.fWidth = srcInfo.width(); 220 dstInfo 232 onReadPixels(const SkImageInfo& dstInfo, void* dstPixels, size_t dstRowBytes, int x, int y) argument [all...] |
H A D | SkBitmap.cpp | 947 SkImageInfo dstInfo = src->info(); local 948 dstInfo.fColorType = dstColorType; 951 if (!tmpDst.setInfo(dstInfo)) {
|
/external/chromium_org/third_party/skia/src/gpu/ |
H A D | SkGpuDevice.cpp | 226 bool SkGpuDevice::onReadPixels(const SkImageInfo& dstInfo, void* dstPixels, size_t dstRowBytes, argument 231 GrPixelConfig config = SkImageInfo2GrPixelConfig(dstInfo); 237 if (kUnpremul_SkAlphaType == dstInfo.alphaType()) { 240 return fContext->readRenderTargetPixels(fRenderTarget, x, y, dstInfo.width(), dstInfo.height(),
|
/external/skia/src/gpu/ |
H A D | SkGpuDevice.cpp | 262 bool SkGpuDevice::onReadPixels(const SkImageInfo& dstInfo, void* dstPixels, size_t dstRowBytes, argument 267 GrPixelConfig config = SkImageInfo2GrPixelConfig(dstInfo); 273 if (kUnpremul_SkAlphaType == dstInfo.alphaType()) { 276 return fContext->readRenderTargetPixels(fRenderTarget, x, y, dstInfo.width(), dstInfo.height(),
|