gfx::Image::SwapRepresentations is removed in favor of std::move

https://chromium-review.googlesource.com/c/chromium/src/+/588033
This commit is contained in:
deepak1556 2017-11-27 12:20:42 +05:30 committed by Cheng Zhao
parent 62635f43f4
commit e03f7baa60

View file

@ -456,7 +456,7 @@ void NativeImage::AddRepresentation(const mate::Dictionary& options) {
// Re-initialize image when first representation is added to an empty image // Re-initialize image when first representation is added to an empty image
if (skia_rep_added && IsEmpty()) { if (skia_rep_added && IsEmpty()) {
gfx::Image image(image_skia); gfx::Image image(image_skia);
image_.SwapRepresentations(&image); image_ = std::move(image);
} }
} }