Browse Source

vendor: Update native mate to fix v8 DCHECK crash (#12534)

* update native_mate ref

* Remove MarkHighMemoryUsage api
Robo 7 years ago
parent
commit
c1404ff2c1

+ 0 - 4
atom/browser/api/atom_api_web_contents.cc

@@ -332,10 +332,6 @@ WebContents::WebContents(v8::Isolate* isolate, const mate::Dictionary& options)
       request_id_(0),
       background_throttling_(true),
       enable_devtools_(true) {
-  // WebContents may need to emit events when it is garbage collected, so it
-  // has to be deleted in the first gc callback.
-  MarkHighMemoryUsage();
-
   // Read options.
   options.Get("backgroundThrottling", &background_throttling_);
 

+ 0 - 2
atom/common/api/atom_api_native_image.cc

@@ -223,7 +223,6 @@ NativeImage::NativeImage(v8::Isolate* isolate, const gfx::Image& image)
     isolate->AdjustAmountOfExternalAllocatedMemory(
       image_.ToImageSkia()->bitmap()->computeByteSize());
   }
-  MarkHighMemoryUsage();
 }
 
 #if defined(OS_WIN)
@@ -238,7 +237,6 @@ NativeImage::NativeImage(v8::Isolate* isolate, const base::FilePath& hicon_path)
     isolate->AdjustAmountOfExternalAllocatedMemory(
       image_.ToImageSkia()->bitmap()->computeByteSize());
   }
-  MarkHighMemoryUsage();
 }
 #endif
 

+ 1 - 1
vendor/native_mate

@@ -1 +1 @@
-Subproject commit 99d9e262eb36cb9dc8e83f61e026d2a7ad1e96ab
+Subproject commit 02693839ca2570a5f14b4270573c91cbf1bd9b1d