Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(452)

Unified Diff: content/renderer/render_thread_impl.h

Issue 1749073002: Do V8 GC ASAP if system memory is pressured (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/renderer/render_thread_impl.h
diff --git a/content/renderer/render_thread_impl.h b/content/renderer/render_thread_impl.h
index ab67cd9ed12e8164975d6a62747f0ef4ae807a30..514c072a2540158054407b844bb90eb3bebf6e7d 100644
--- a/content/renderer/render_thread_impl.h
+++ b/content/renderer/render_thread_impl.h
@@ -31,6 +31,7 @@
#include "net/base/network_change_notifier.h"
#include "third_party/WebKit/public/platform/WebConnectionType.h"
#include "ui/gfx/native_widget_types.h"
+#include "v8/include/v8.h"
#if defined(OS_MACOSX)
#include "third_party/WebKit/public/web/mac/WebScrollbarTheme.h"
@@ -517,6 +518,9 @@ class CONTENT_EXPORT RenderThreadImpl
void ReleaseFreeMemory();
+ void IsMemoryPressured(bool memory_pressured);
+ static void OnV8InterruptCallback(v8::Isolate* isolate, void* data);
+
scoped_ptr<WebGraphicsContext3DCommandBufferImpl> CreateOffscreenContext3d();
// These objects live solely on the render thread.
@@ -703,6 +707,8 @@ class CONTENT_EXPORT RenderThreadImpl
PendingRenderFrameConnectMap;
PendingRenderFrameConnectMap pending_render_frame_connects_;
+ bool is_v8_need_gc_;
+
DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl);
};

Powered by Google App Engine
This is Rietveld 408576698