Home | History | Annotate | Download | only in core

Lines Matching defs:SkBitmap

27 /** \class SkBitmap
29 The SkBitmap class specifies a raster bitmap. A bitmap has an integer width
33 A const SkBitmap exposes getAddr(), which lets a caller write its pixels;
37 SkBitmap is not thread safe. Each thread must use its own (shallow) copy.
39 class SK_API SkBitmap {
47 SkBitmap();
54 SkBitmap(const SkBitmap& src);
60 SkBitmap(SkBitmap&& src);
62 ~SkBitmap();
67 SkBitmap& operator=(const SkBitmap& src);
72 SkBitmap& operator=(SkBitmap&& src);
77 void swap(SkBitmap& other);
143 /** Return the address of the pixels for this SkBitmap.
221 static bool ComputeIsOpaque(const SkBitmap& bm) {
593 bool extractSubset(SkBitmap* dst, const SkIRect& subset) const;
654 bool extractAlpha(SkBitmap* dst) const {
658 bool extractAlpha(SkBitmap* dst, const SkPaint* paint,
676 bool extractAlpha(SkBitmap* dst, const SkPaint* paint, Allocator* allocator,
700 virtual bool allocPixelRef(SkBitmap*, SkColorTable*) = 0;
702 virtual bool allocPixelRef(SkBitmap*) = 0;
715 bool allocPixelRef(SkBitmap*, SkColorTable*) override;
717 bool allocPixelRef(SkBitmap*) override;
747 static void WriteRawPixels(SkWriteBuffer*, const SkBitmap&);
748 static bool ReadRawPixels(SkReadBuffer*, SkBitmap*);
756 inline uint32_t* SkBitmap::getAddr32(int x, int y) const {
763 inline uint16_t* SkBitmap::getAddr16(int x, int y) const {
770 inline uint8_t* SkBitmap::getAddr8(int x, int y) const {