added comment to mention sk_tools_utils::copy_to

This commit is contained in:
Vladimir Vainer 2017-08-08 13:06:39 +03:00
parent e6abfa959a
commit 39c46a9b75

View file

@ -168,6 +168,7 @@ gfx::Image Clipboard::ReadImage(mate::Arguments* args) {
void Clipboard::WriteImage(const gfx::Image& image, mate::Arguments* args) {
ui::ScopedClipboardWriter writer(GetClipboardType(args));
SkBitmap bmp;
// TODO(ferreus): Replace with sk_tools_utils::copy_to (chrome60)
if (image.AsBitmap().deepCopyTo(&bmp)) {
writer.WriteImage(bmp);
} else {