Lines Matching refs:addr
45 addr points to pixels, or nullptr. rowBytes should be info.width() times
49 addr and rowBytes agree with info.
52 out of scope, addr is unaffected.
58 @param addr pointer to pixels allocated by caller; may be nullptr
59 @param rowBytes size of one row of addr; width times pixel size, or larger
62 SkPixmap(const SkImageInfo& info, const void* addr, size_t rowBytes)
63 : fPixels(addr), fRowBytes(rowBytes), fInfo(info)
77 Sets pixel address from addr, which may be nullptr.
81 Does not check addr. Asserts if built with SK_DEBUG defined and if rowBytes is
85 out of scope, addr is unaffected.
88 @param addr pointer to pixels allocated by caller; may be nullptr
89 @param rowBytes size of one row of addr; width times pixel size, or larger
93 void reset(const SkImageInfo& info, const void* addr, size_t rowBytes);
143 const void* addr() const { return fPixels; }
285 const void* addr(int x, int y) const {
466 return const_cast<void*>(this->addr(x, y));