Lines Matching refs:SkPixelRef
26 class SkPixelRef;
33 SkBitmap points to SkPixelRef, which describes the physical array of pixels.
34 SkImageInfo bounds may be located anywhere fully inside SkPixelRef bounds.
44 and so on cannot change. It does not affect SkPixelRef: a caller may write its
55 kUnknown_SkAlphaType, and with a width and height of zero. SkPixelRef origin is
70 @param src SkBitmap to copy SkImageInfo, and share SkPixelRef
80 @param src SkBitmap to copy SkImageInfo, and reassign SkPixelRef
87 /** Decrements SkPixelRef reference count, if SkPixelRef is not nullptr.
94 @param src SkBitmap to copy SkImageInfo, and share SkPixelRef
104 @param src SkBitmap to copy SkImageInfo, and reassign SkPixelRef
196 Does not check if SkPixelRef is nullptr; call drawsNothing() to check width(),
197 height(), and SkPixelRef.
203 /** Returns true if SkPixelRef is nullptr.
206 width(), height(), and SkPixelRef.
208 @return true if no SkPixelRef is associated
212 /** Returns true if width() or height() are zero, or if SkPixelRef is nullptr.
251 This changes SkAlphaType in SkPixelRef; all bitmaps sharing SkPixelRef
287 Any other bitmap sharing the same SkPixelRef are also marked as immutable.
288 Once SkPixelRef is marked immutable, the setting cannot be cleared.
315 If SkPixelRef is allocated, its reference count is decreased by one, releasing
371 /** Returns the bounds of this bitmap, offset by its SkPixelRef origin.
373 @return bounds within SkPixelRef bounds
568 /** Sets SkImageInfo to info following the rules in setInfo(), and creates SkPixelRef
593 /** Sets SkImageInfo to info following the rules in setInfo(), and creates SkPixelRef
601 Caller must ensure that pixels are valid for the lifetime of SkBitmap and SkPixelRef.
613 SkPixelRef containing pixmap.addr() and pixmap.rowBytes().
620 Caller must ensure that pixmap is valid for the lifetime of SkBitmap and SkPixelRef.
633 /** Replaces SkPixelRef with pixels, preserving SkImageInfo and rowBytes().
634 Sets SkPixelRef origin to (0, 0).
637 release reference to SkPixelRef, and set SkPixelRef to nullptr.
640 of SkBitmap and SkPixelRef.
648 /** Allocates pixel memory with HeapAllocator, and replaces existing SkPixelRef.
659 /** Allocates pixel memory with HeapAllocator, and replaces existing SkPixelRef.
670 /** Allocates pixel memory with allocator, and replaces existing SkPixelRef.
681 /** Allocates pixel memory with allocator, and replaces existing SkPixelRef.
694 /** Returns SkPixelRef, which contains: pixel base address; its dimensions; and
695 rowBytes(), the interval from one row to the next. Does not change SkPixelRef
696 reference count. SkPixelRef may be shared by multiple bitmaps.
697 If SkPixelRef has not been set, returns nullptr.
699 @return SkPixelRef, or nullptr
701 SkPixelRef* pixelRef() const { return fPixelRef.get(); }
703 /** Returns origin of pixels within SkPixelRef. SkBitmap bounds is always contained
704 by SkPixelRef bounds, which may be the same size or larger. Multiple SkBitmap
705 can share the same SkPixelRef, where each SkBitmap has different bounds.
708 SkPixelRef dimensions.
710 Returns (0, 0) if SkPixelRef is nullptr.
712 @return pixel origin within SkPixelRef
719 within the SkPixelRef pixels for the top-left corner of the bitmap.
727 @param pixelRef SkPixelRef describing pixel address and rowBytes()
728 @param dx column offset in SkPixelRef for bitmap origin
729 @param dy row offset in SkPixelRef for bitmap origin
733 void setPixelRef(sk_sp<SkPixelRef> pixelRef, int dx, int dy);
743 /** Returns a unique value corresponding to the pixels in SkPixelRef.
745 Returns zero if SkPixelRef is nullptr.
749 @return unique value for pixels in SkPixelRef
755 /** Marks that pixels in SkPixelRef have changed. Subsequent calls to
844 SkColorType is kUnknown_SkColorType, or SkPixelRef is nullptr.
860 - SkPixelRef is nullptr
874 - SkPixelRef is nullptr
888 - SkPixelRef is nullptr
899 /** Shares SkPixelRef with dst. Pixels are not copied; SkBitmap and dst point
909 - SkPixelRef is nullptr
928 - SkPixelRef is nullptr
959 - SkPixelRef is nullptr
989 - SkPixelRef is nullptr
1013 - SkPixelRef is nullptr
1043 - SkPixelRef is nullptr
1062 Uses HeapAllocator to reserve memory for dst SkPixelRef.
1064 @param dst holds SkPixelRef to fill with alpha layer
1065 @return true if alpha layer was constructed in dst SkPixelRef
1076 SkPixelRef. Sets offset to top-left position for dst for alignment with SkBitmap;
1079 @param dst holds SkPixelRef to fill with alpha layer
1082 @return true if alpha layer was constructed in dst SkPixelRef
1098 @param dst holds SkPixelRef to fill with alpha layer
1100 @param allocator function to reserve memory for SkPixelRef; may be nullptr
1102 @return true if alpha layer was constructed in dst SkPixelRef
1158 @param bitmap SkBitmap containing SkImageInfo as input, and SkPixelRef as output
1159 @return true if SkPixelRef was allocated
1167 Subclass of SkBitmap::Allocator that returns a SkPixelRef that allocates its pixel
1178 @param bitmap SkBitmap containing SkImageInfo as input, and SkPixelRef as output
1187 sk_sp<SkPixelRef> fPixelRef;