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