Lines Matching refs:rowBytes

631     if (bm.getPixels() && this->readPixels(bm.info(), bm.getPixels(), bm.rowBytes(), x, y)) {
653 if (!this->readPixels(bitmap->info(), bitmap->getPixels(), bitmap->rowBytes(), r.x(), r.y())) {
660 bool SkCanvas::readPixels(const SkImageInfo& origInfo, void* dstP, size_t rowBytes, int x, int y) {
668 if (NULL == dstP || rowBytes < origInfo.minRowBytes()) {
699 dstP = ((char*)dstP - y * rowBytes - x * info.bytesPerPixel());
702 return device->readPixels(info, dstP, rowBytes, srcR.x(), srcR.y());
712 return this->writePixels(bm.info(), bm.getPixels(), bm.rowBytes(), x, y);
717 bool SkCanvas::writePixels(const SkImageInfo& origInfo, const void* pixels, size_t rowBytes,
726 if (NULL == pixels || rowBytes < origInfo.minRowBytes()) {
754 pixels = ((const char*)pixels - y * rowBytes - x * info.bytesPerPixel());
757 return device->writePixels(info, pixels, rowBytes, target.x(), target.y());
1045 const void* SkCanvas::peekPixels(SkImageInfo* info, size_t* rowBytes) {
1046 return this->onPeekPixels(info, rowBytes);
1049 const void* SkCanvas::onPeekPixels(SkImageInfo* info, size_t* rowBytes) {
1051 return dev ? dev->peekPixels(info, rowBytes) : NULL;
1054 void* SkCanvas::accessTopLayerPixels(SkImageInfo* info, size_t* rowBytes, SkIPoint* origin) {
1055 void* pixels = this->onAccessTopLayerPixels(info, rowBytes);
1062 void* SkCanvas::onAccessTopLayerPixels(SkImageInfo* info, size_t* rowBytes) {
1064 return dev ? dev->accessPixels(info, rowBytes) : NULL;
1078 fRowBytes = fBitmap.rowBytes();
2587 SkCanvas* SkCanvas::NewRasterDirect(const SkImageInfo& info, void* pixels, size_t rowBytes) {
2593 if (!bitmap.installPixels(info, pixels, rowBytes)) {