From 39c46a9b7506abf89f980fced202cb07a14ffa47 Mon Sep 17 00:00:00 2001 From: Vladimir Vainer Date: Tue, 8 Aug 2017 13:06:39 +0300 Subject: [PATCH] added comment to mention sk_tools_utils::copy_to --- atom/common/api/atom_api_clipboard.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/atom/common/api/atom_api_clipboard.cc b/atom/common/api/atom_api_clipboard.cc index f88df67cf0b..3f923c9ddb8 100644 --- a/atom/common/api/atom_api_clipboard.cc +++ b/atom/common/api/atom_api_clipboard.cc @@ -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 {