Lines Matching defs:const
43 Declaring SkBitmap const prevents altering SkImageInfo: the SkBitmap height, width,
45 pixels. Declaring SkBitmap const affects SkBitmap configuration, not its contents.
75 SkBitmap(const SkBitmap& src);
99 SkBitmap& operator=(const SkBitmap& src);
124 const SkPixmap& pixmap() const { return fPixmap; }
130 const SkImageInfo& info() const { return fPixmap.info(); }
140 int width() const { return fPixmap.width(); }
149 int height() const { return fPixmap.height(); }
151 SkColorType colorType() const { return fPixmap.colorType(); }
153 SkAlphaType alphaType() const { return fPixmap.alphaType(); }
161 SkColorSpace* colorSpace() const { return fPixmap.colorSpace(); }
171 sk_sp<SkColorSpace> refColorSpace() const { return fPixmap.info().refColorSpace(); }
178 int bytesPerPixel() const { return fPixmap.info().bytesPerPixel(); }
185 int rowBytesAsPixels() const { return fPixmap.rowBytesAsPixels(); }
192 int shiftPerPixel() const { return fPixmap.shiftPerPixel(); }
201 bool empty() const { return fPixmap.info().isEmpty(); }
210 bool isNull() const { return nullptr == fPixelRef; }
217 bool drawsNothing() const {
229 size_t rowBytes() const { return fPixmap.rowBytes(); }
264 void* getPixels() const { return fPixmap.writable_addr(); }
274 size_t computeByteSize() const { return fPixmap.computeByteSize(); }
284 bool isImmutable() const;
305 bool isOpaque() const {
339 static bool ComputeIsOpaque(const SkBitmap& bm) {
349 void getBounds(SkRect* bounds) const;
357 void getBounds(SkIRect* bounds) const;
363 SkIRect bounds() const { return fPixmap.info().bounds(); }
369 SkISize dimensions() const { return fPixmap.info().dimensions(); }
375 SkIRect getSubset() const {
410 bool setInfo(const SkImageInfo& imageInfo, size_t rowBytes = 0);
434 bool SK_WARN_UNUSED_RESULT tryAllocPixelsFlags(const SkImageInfo& info, uint32_t flags);
454 void allocPixelsFlags(const SkImageInfo& info, uint32_t flags);
472 bool SK_WARN_UNUSED_RESULT tryAllocPixels(const SkImageInfo& info, size_t rowBytes);
492 void allocPixels(const SkImageInfo& info, size_t rowBytes);
508 bool SK_WARN_UNUSED_RESULT tryAllocPixels(const SkImageInfo& info) {
528 void allocPixels(const SkImageInfo& info);
590 bool installPixels(const SkImageInfo& info, void* pixels, size_t rowBytes,
608 bool installPixels(const SkImageInfo& info, void* pixels, size_t rowBytes) {
627 bool installPixels(const SkPixmap& pixmap);
631 bool installMaskPixels(const SkMask& mask);
701 SkPixelRef* pixelRef() const { return fPixelRef.get(); }
716 SkIPoint pixelRefOrigin() const;
739 bool readyToDraw() const {
753 uint32_t getGenerationID() const;
760 void notifyPixelsChanged() const;
771 void eraseColor(SkColor c) const;
784 void eraseARGB(U8CPU a, U8CPU r, U8CPU g, U8CPU b) const {
800 void erase(SkColor c, const SkIRect& area) const;
804 void eraseArea(const SkIRect& area, SkColor c) const {
824 SkColor getColor(int x, int y) const {
836 float getAlphaf(int x, int y) const {
855 void* getAddr(int x, int y) const;
869 inline uint32_t* getAddr32(int x, int y) const;
883 inline uint16_t* getAddr16(int x, int y) const;
897 inline uint8_t* getAddr8(int x, int y) const;
918 bool extractSubset(SkBitmap* dst, const SkIRect& subset) const;
948 bool readPixels(const SkImageInfo& dstInfo, void* dstPixels, size_t dstRowBytes,
949 int srcX, int srcY) const;
979 bool readPixels(const SkPixmap& dst, int srcX, int srcY) const;
1001 bool readPixels(const SkPixmap& dst) const {
1033 bool writePixels(const SkPixmap& src, int dstX, int dstY);
1055 bool writePixels(const SkPixmap& src) {
1067 bool extractAlpha(SkBitmap* dst) const {
1084 bool extractAlpha(SkBitmap* dst, const SkPaint* paint,
1085 SkIPoint* offset) const {
1104 bool extractAlpha(SkBitmap* dst, const SkPaint* paint, Allocator* allocator,
1105 SkIPoint* offset) const;
1118 bool peekPixels(SkPixmap* pixmap) const;
1119 sk_sp<SkShader> makeShader(SkTileMode tmx, SkTileMode tmy, const SkSamplingOptions&,
1120 const SkMatrix* = nullptr) const;
1122 sk_sp<SkShader> makeShader(SkTileMode tmx, SkTileMode tmy, const SkSamplingOptions& sampling,
1123 const SkMatrix& localMatrix) const {
1127 sk_sp<SkShader> makeShader(const SkSamplingOptions& sampling,
1128 const SkMatrix* localMatrix = nullptr) const {
1132 sk_sp<SkShader> makeShader(const SkSamplingOptions& sampling,
1133 const SkMatrix& localMatrix) const {
1141 sk_sp<SkImage> asImage() const;
1146 SkDEBUGCODE(void validate() const;)
1197 inline uint32_t* SkBitmap::getAddr32(int x, int y) const {
1202 inline uint16_t* SkBitmap::getAddr16(int x, int y) const {
1207 inline uint8_t* SkBitmap::getAddr8(int x, int y) const {