Lines Matching refs:trimRowBytes
563 size_t trimRowBytes = GrColorTypeBytesPerPixel(srcColorType) * width; in writeSurfacePixels() local
564 tempBuffer.reset(new char[trimRowBytes * height]); in writeSurfacePixels()
565 char* dst = reinterpret_cast<char*>(tempBuffer.get()) + trimRowBytes * (height - 1); in writeSurfacePixels()
567 for (int i = 0; i < height; ++i, src += rowBytes, dst -= trimRowBytes) { in writeSurfacePixels()
568 memcpy(dst, src, trimRowBytes); in writeSurfacePixels()
571 rowBytes = trimRowBytes; in writeSurfacePixels()
760 size_t trimRowBytes = GrColorTypeBytesPerPixel(allowedColorType) * width; in readSurfacePixels() local
761 std::unique_ptr<char[]> row(new char[trimRowBytes]); in readSurfacePixels()
765 memcpy(row.get(), upper, trimRowBytes); in readSurfacePixels()
766 memcpy(upper, lower, trimRowBytes); in readSurfacePixels()
767 memcpy(lower, row.get(), trimRowBytes); in readSurfacePixels()