Lines Matching defs:pixels
691 // if x or y are negative, then we have to adjust pixels
717 bool SkCanvas::writePixels(const SkImageInfo& origInfo, const void* pixels, size_t rowBytes,
726 if (NULL == pixels || rowBytes < origInfo.minRowBytes()) {
746 // if x or y are negative, then we have to adjust pixels
754 pixels = ((const char*)pixels - y * rowBytes - x * info.bytesPerPixel());
757 return device->writePixels(info, pixels, rowBytes, target.x(), target.y());
1055 void* pixels = this->onAccessTopLayerPixels(info, rowBytes);
1056 if (pixels && origin) {
1059 return pixels;
2587 SkCanvas* SkCanvas::NewRasterDirect(const SkImageInfo& info, void* pixels, size_t rowBytes) {
2593 if (!bitmap.installPixels(info, pixels, rowBytes)) {