mirror of https://github.com/electron/electron
6964b79e68
* refactor: electron::util::AddImageSkiaRepFromJPEG() takes a span arg Co-authored-by: Charles Kerr <charles@charleskerr.com> * refactor: electron::util::AddImageSkiaRepFromPNG() takes a span arg Co-authored-by: Charles Kerr <charles@charleskerr.com> * refactor: electron::util::AddImageSkiaRepFromBuffer() takes a span arg Co-authored-by: Charles Kerr <charles@charleskerr.com> * feat: add Node-buffer-to-base-span helper function Co-authored-by: Charles Kerr <charles@charleskerr.com> * refactor: electron::api::NativeImage::CreateFromPNG() now takes a span param Co-authored-by: Charles Kerr <charles@charleskerr.com> * refactor: electron::api::NativeImage::CreateFromJPEG() now takes a span param Co-authored-by: Charles Kerr <charles@charleskerr.com> * refactor: use base::as_byte_span() Co-authored-by: Charles Kerr <charles@charleskerr.com> * fix: -Wunsafe-buffer-usage warning in NativeImage::CreateFromNamedImage() Warning fixed by this commit: ../../electron/shell/common/api/electron_api_native_image_mac.mm:131:11: error: function introduces unsafe buffer manipulation [-Werror,-Wunsafe-buffer-usage] 131 | {reinterpret_cast<const uint8_t*>((char*)[png_data bytes]), | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 132 | [png_data length]}); | ~~~~~~~~~~~~~~~~~~ ../../electron/shell/common/api/electron_api_native_image_mac.mm:131:11: note: See //docs/unsafe_buffers.md for help. Co-authored-by: Charles Kerr <charles@charleskerr.com> * chore: add // SAFETY comment for Node-buffer-to-span func Co-authored-by: Charles Kerr <charles@charleskerr.com> * chore: add // SAFETY comment for NSData-to-span func Co-authored-by: Charles Kerr <charles@charleskerr.com> --------- Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com> Co-authored-by: Charles Kerr <charles@charleskerr.com> |
||
---|---|---|
.. | ||
api | ||
asar | ||
extensions | ||
gin_converters | ||
gin_helper | ||
mac | ||
resources/mac | ||
BUILD.gn | ||
application_info.cc | ||
application_info.h | ||
application_info_linux.cc | ||
application_info_mac.mm | ||
application_info_win.cc | ||
color_util.cc | ||
color_util.h | ||
crash_keys.cc | ||
crash_keys.h | ||
electron_command_line.cc | ||
electron_command_line.h | ||
electron_constants.cc | ||
electron_constants.h | ||
electron_paths.h | ||
heap_snapshot.cc | ||
heap_snapshot.h | ||
key_weak_map.h | ||
keyboard_util.cc | ||
keyboard_util.h | ||
language_util.h | ||
language_util_linux.cc | ||
language_util_mac.mm | ||
language_util_win.cc | ||
logging.cc | ||
logging.h | ||
node_bindings.cc | ||
node_bindings.h | ||
node_bindings_linux.cc | ||
node_bindings_linux.h | ||
node_bindings_mac.cc | ||
node_bindings_mac.h | ||
node_bindings_win.cc | ||
node_bindings_win.h | ||
node_includes.h | ||
node_util.cc | ||
node_util.h | ||
options_switches.cc | ||
options_switches.h | ||
platform_util.cc | ||
platform_util.h | ||
platform_util_internal.h | ||
platform_util_linux.cc | ||
platform_util_mac.mm | ||
platform_util_win.cc | ||
plugin.mojom | ||
plugin_info.cc | ||
plugin_info.h | ||
process_util.cc | ||
process_util.h | ||
skia_util.cc | ||
skia_util.h | ||
thread_restrictions.h | ||
v8_value_serializer.cc | ||
v8_value_serializer.h | ||
world_ids.h |