Home
last modified time | relevance | path

Searched refs:dstInfo (Results 1 – 15 of 15) sorted by relevance

/external/chromium_org/third_party/skia/platform_tools/android/examples/hello_skia_app/jni/
Dhelloskia.cpp24 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/
Dhelloskia.cpp24 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/
DSkConfig8888.cpp140 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()
DSkDevice.cpp172 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()
DSkBitmapDevice.cpp157 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()
DSkConfig8888.h18 static bool CopyPixels(const SkImageInfo& dstInfo, void* dstPixels, size_t dstRowBytes,
DSkBitmap.cpp858 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/
DSkBitmapDevice.cpp171 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 …]
DSkDevice.cpp102 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()
DSkBitmap.cpp947 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/
DBitmapCopyTest.cpp591 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/
DSkGpuDevice.cpp226 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/
DSkGpuDevice.cpp262 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/
DSkBitmap.h627 bool readPixels(const SkImageInfo& dstInfo, void* dstPixels, size_t dstRowBytes,
DSkCanvas.h266 bool readPixels(const SkImageInfo& dstInfo, void* dstPixels, size_t dstRowBytes,