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 class SK_API SkBitmap {
68 SkBitmap();
77 SkBitmap(const SkBitmap& src);
79 ~SkBitmap();
84 SkBitmap& operator=(const SkBitmap& src);
88 void swap(SkBitmap& other);
163 /** Return the address of the pixels for this SkBitmap.
263 static bool ComputeIsOpaque(const SkBitmap&);
625 bool extractSubset(SkBitmap* dst, const SkIRect& subset) const;
639 bool copyTo(SkBitmap* dst, SkColorType ct, Allocator* = NULL) const;
641 bool copyTo(SkBitmap* dst, Allocator* allocator = NULL) const {
657 bool deepCopyTo(SkBitmap* dst) const;
673 bool extractAlpha(SkBitmap* dst) const {
677 bool extractAlpha(SkBitmap* dst, const SkPaint* paint,
695 bool extractAlpha(SkBitmap* dst, const SkPaint* paint, Allocator* allocator,
711 virtual bool allocPixelRef(SkBitmap*, SkColorTable*) = 0;
722 virtual bool allocPixelRef(SkBitmap*, SkColorTable*) SK_OVERRIDE;
785 static void WriteRawPixels(SkWriteBuffer*, const SkBitmap&);
786 static bool ReadRawPixels(SkReadBuffer*, SkBitmap*);
796 SkAutoLockPixels(const SkBitmap& bm, bool doLock = true) : fBitmap(bm) {
809 const SkBitmap& fBitmap;
826 explicit SkAutoLockColors(const SkBitmap& bm) {
859 const SkPMColor* lockColors(const SkBitmap& bm) {
871 inline uint32_t* SkBitmap::getAddr32(int x, int y) const {
878 inline uint16_t* SkBitmap::getAddr16(int x, int y) const {
885 inline uint8_t* SkBitmap::getAddr8(int x, int y) const {
892 inline SkPMColor SkBitmap::getIndex8Color(int x, int y) const {
903 // Helpers until we can fully deprecate SkBitmap::Config
905 extern SkBitmap::Config SkColorTypeToBitmapConfig(SkColorType);
906 extern SkColorType SkBitmapConfigToColorType(SkBitmap::Config);