Lines Matching defs:const

200     SkColorInfo(const SkColorInfo&) = default;
203 SkColorInfo& operator=(const SkColorInfo&) = default;
206 SkColorSpace* colorSpace() const { return fColorSpace.get(); }
207 sk_sp<SkColorSpace> refColorSpace() const { return fColorSpace; }
208 SkColorType colorType() const { return fColorType; }
209 SkAlphaType alphaType() const { return fAlphaType; }
211 bool isOpaque() const {
216 bool gammaCloseToSRGB() const { return fColorSpace && fColorSpace->gammaCloseToSRGB(); }
219 bool operator==(const SkColorInfo& other) const {
225 bool operator!=(const SkColorInfo& other) const { return !(*this == other); }
233 SkColorInfo makeAlphaType(SkAlphaType newAlphaType) const {
240 SkColorInfo makeColorType(SkColorType newColorType) const {
247 SkColorInfo makeColorSpace(sk_sp<SkColorSpace> cs) const {
258 int bytesPerPixel() const;
267 int shiftPerPixel() const;
328 static SkImageInfo Make(SkISize dimensions, const SkColorInfo& colorInfo) {
454 int width() const { return fDimensions.width(); }
460 int height() const { return fDimensions.height(); }
462 SkColorType colorType() const { return fColorInfo.colorType(); }
464 SkAlphaType alphaType() const { return fColorInfo.alphaType(); }
471 SkColorSpace* colorSpace() const { return fColorInfo.colorSpace(); }
481 sk_sp<SkColorSpace> refColorSpace() const { return fColorInfo.refColorSpace(); }
488 bool isEmpty() const { return fDimensions.isEmpty(); }
493 const SkColorInfo& colorInfo() const { return fColorInfo; }
504 bool isOpaque() const { return fColorInfo.isOpaque(); }
510 SkISize dimensions() const { return fDimensions; }
516 SkIRect bounds() const { return SkIRect::MakeSize(fDimensions); }
524 bool gammaCloseToSRGB() const { return fColorInfo.gammaCloseToSRGB(); }
533 SkImageInfo makeWH(int newWidth, int newHeight) const {
543 SkImageInfo makeDimensions(SkISize newSize) const {
555 SkImageInfo makeAlphaType(SkAlphaType newAlphaType) const {
564 SkImageInfo makeColorType(SkColorType newColorType) const {
574 SkImageInfo makeColorSpace(sk_sp<SkColorSpace> cs) const {
583 int bytesPerPixel() const { return fColorInfo.bytesPerPixel(); }
590 int shiftPerPixel() const { return fColorInfo.shiftPerPixel(); }
598 uint64_t minRowBytes64() const {
608 size_t minRowBytes() const {
628 size_t computeOffset(int x, int y, size_t rowBytes) const;
636 bool operator==(const SkImageInfo& other) const {
646 bool operator!=(const SkImageInfo& other) const {
661 size_t computeByteSize(size_t rowBytes) const;
671 size_t computeMinByteSize() const {
691 bool validRowBytes(size_t rowBytes) const {
708 SkDEBUGCODE(void validate() const;)
715 void dump(std::string& desc, int depth) const;
721 SkImageInfo(SkISize dimensions, const SkColorInfo& colorInfo)