chore: bump chromium to a264339194bfa02f5ecb3b8cba449 (master) (#27111)
Co-authored-by: Shelley Vohr <shelley.vohr@gmail.com> Co-authored-by: John Kleinschmidt <jkleinsc@electronjs.org>
This commit is contained in:
parent
1cd72425aa
commit
adf0a73543
86 changed files with 503 additions and 460 deletions
|
@ -93,9 +93,8 @@ v8::Local<v8::Promise> NativeImage::CreateThumbnailFromPath(
|
|||
|
||||
base::win::ScopedHICON icon(CreateIconIndirect(&icon_info));
|
||||
SkBitmap skbitmap = IconUtil::CreateSkBitmapFromHICON(icon.get());
|
||||
gfx::ImageSkia image_skia;
|
||||
image_skia.AddRepresentation(
|
||||
gfx::ImageSkiaRep(skbitmap, 1.0 /*scale factor*/));
|
||||
gfx::ImageSkia image_skia =
|
||||
gfx::ImageSkia::CreateFromBitmap(skbitmap, 1.0 /*scale factor*/);
|
||||
gfx::Image gfx_image = gfx::Image(image_skia);
|
||||
promise.Resolve(gfx_image);
|
||||
return handle;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue