[atom/common/api/atom_api_clipboard.cc](https://github.com/electron/electron/blob/master/atom/common/api/atom_api_clipboard.cc)

See TODO in the code.

/cc @gavignus 

atom/common/api/atom_api_clipboard.cc
SkPixmap srcPM;
  if (!src.peekPixels(&srcPM)) {
    return false;
  }
  SkBitmap tmpDst;
  SkImageInfo dstInfo = srcPM.info().makeColorType(dstColorType);
  if (!tmpDst.setInfo(dstInfo)) {
    return false;
  }
  if (!tmpDst.tryAllocPixels()) {
    return false;
  }
  SkPixmap dstPM;
  if (!tmpDst.peekPixels(&dstPM)) {
    return false;
  }
  if (!srcPM.readPixels(dstPM)) {
    return false;
  }
  dst->swap(tmpDst);
  return true;
}
}  
namespace atom {
namespace api {
ui::ClipboardType Clipboard::GetClipboardType(mate::Arguments* args) {