mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
update native_mate and use the MarkHighMemoryUsage API to speed up garbage collection
This commit is contained in:
@@ -204,6 +204,7 @@ NativeImage::NativeImage(v8::Isolate* isolate, const gfx::Image& image)
|
||||
Init(isolate_);
|
||||
isolate_->AdjustAmountOfExternalAllocatedMemory(
|
||||
image_.Width() * image_.Height() * 4);
|
||||
MarkHighMemoryUsage();
|
||||
}
|
||||
|
||||
#if defined(OS_WIN)
|
||||
@@ -216,6 +217,7 @@ NativeImage::NativeImage(v8::Isolate* isolate, const base::FilePath& hicon_path)
|
||||
Init(isolate);
|
||||
isolate_->AdjustAmountOfExternalAllocatedMemory(
|
||||
image_.Width() * image_.Height() * 4);
|
||||
MarkHighMemoryUsage();
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
2
vendor/native_mate
vendored
2
vendor/native_mate
vendored
Submodule vendor/native_mate updated: fd0e7dc4ab...7d9c1a80f0
Reference in New Issue
Block a user