PassRefPtr<Image> ImageBuffer::newImageSnapshot(AccelerationHint hint, SnapshotReason reason) const { RefPtr<SkImage> snapshot = newSkImageSnapshot(hint, reason); if (!snapshot) return nullptr; return StaticBitmapImage::create(snapshot); }
PassRefPtr<Image> ImageBuffer::newImageSnapshot() const { RefPtr<SkImage> snapshot = newSkImageSnapshot(); if (!snapshot) return nullptr; return StaticBitmapImage::create(snapshot); }