Lines Matching refs:src

21 #include "src/core/SkConvertPixels.h"
22 #include "src/core/SkDraw.h"
23 #include "src/core/SkMask.h"
24 #include "src/core/SkMatrixProvider.h"
25 #include "src/core/SkPixmapPriv.h"
26 #include "src/core/SkRasterClip.h"
27 #include "src/core/SkUtils.h"
28 #include "src/image/SkReadPixelsRec.h"
29 #include "src/shaders/SkImageShader.h"
50 bool SkPixmap::reset(const SkMask& src) {
51 if (SkMask::kA8_Format == src.fFormat) {
52 this->reset(SkImageInfo::MakeA8(src.fBounds.width(), src.fBounds.height()),
53 src.fImage, src.fRowBytes);
203 SkPixmap src = *this,
206 // Can't do anthing with empty src or dst
207 if (src.width() <= 0 || src.height() <= 0 ||
213 if (src.width() == dst.width() && src.height() == dst.height()) {
214 return src.readPixels(dst);
217 // If src and dst are both unpremul, we'll fake the source out to appear as if premul,
222 if (src.alphaType() == kUnpremul_SkAlphaType &&
224 src.reset(src.info().makeAlphaType(kPremul_SkAlphaType), src.addr(), src.rowBytes());
233 if (!bitmap.installPixels(src)) {
238 SkMatrix scale = SkMatrix::RectToRect(SkRect::Make(src.bounds()), SkRect::Make(dst.bounds()));
584 static bool draw_orientation(const SkPixmap& dst, const SkPixmap& src, SkEncodedOrigin origin) {
591 bm.installPixels(src);
602 bool SkPixmapPriv::Orient(const SkPixmap& dst, const SkPixmap& src, SkEncodedOrigin origin) {
603 if (src.colorType() != dst.colorType()) {
608 int w = src.width();
609 int h = src.height();
622 if (src.addr() == dst.addr()) {
625 return draw_orientation(dst, src, origin);