Lines Matching refs:src
22 #include "src/core/SkConvertPixels.h"
23 #include "src/core/SkMask.h"
24 #include "src/core/SkMaskFilterBase.h"
25 #include "src/core/SkMipmap.h"
26 #include "src/core/SkPixelRefPriv.h"
27 #include "src/core/SkPixmapPriv.h"
28 #include "src/core/SkReadBuffer.h"
29 #include "src/core/SkWriteBuffer.h"
30 #include "src/core/SkWritePixelsRec.h"
42 SkBitmap::SkBitmap(const SkBitmap& src)
43 : fPixelRef (src.fPixelRef)
44 , fPixmap (src.fPixmap)
45 , fMips (src.fMips)
47 SkDEBUGCODE(src.validate();)
62 SkBitmap& SkBitmap::operator=(const SkBitmap& src) {
63 if (this != &src) {
64 fPixelRef = src.fPixelRef;
65 fPixmap = src.fPixmap;
66 fMips = src.fMips;
430 return false; // no src pixels
463 SkPixmap src;
464 if (!this->peekPixels(&src)) {
467 return src.readPixels(requestedDstInfo, dstPixels, dstRB, x, y);
474 bool SkBitmap::writePixels(const SkPixmap& src, int dstX, int dstY) {
475 if (!SkImageInfoValidConversion(this->info(), src.info())) {
479 SkWritePixelsRec rec(src.info(), src.addr(), src.rowBytes(), dstX, dstY);
496 static bool GetBitmapAlpha(const SkBitmap& src, uint8_t* SK_RESTRICT alpha, int alphaRowBytes) {
498 SkASSERT(alphaRowBytes >= src.width());
501 if (!src.peekPixels(&pmap)) {
502 for (int y = 0; y < src.height(); ++y) {
503 memset(alpha, 0, src.width());