gfx::Image::SwapRepresentations is removed in favor of std::move
https://chromium-review.googlesource.com/c/chromium/src/+/588033
This commit is contained in:
parent
62635f43f4
commit
e03f7baa60
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue