mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Update to Chromium revision fa6a5d87 (#499098)
This commit is contained in:
@@ -319,8 +319,7 @@ bool CefImageImpl::AddBitmap(float scale_factor, const SkBitmap& bitmap) {
|
||||
|
||||
gfx::ImageSkiaRep skia_rep(bitmap, scale_factor);
|
||||
if (image_.IsEmpty()) {
|
||||
gfx::Image image((gfx::ImageSkia(skia_rep)));
|
||||
image_.SwapRepresentations(&image);
|
||||
image_ = gfx::Image(gfx::ImageSkia(skia_rep));
|
||||
} else {
|
||||
image_.AsImageSkia().AddRepresentation(skia_rep);
|
||||
}
|
||||
|
Reference in New Issue
Block a user