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

Unified Diff: Source/core/frame/Settings.cpp

Issue 106353005: Expose performance.memory in workers (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@Perf-Memory-SharedWorker
Patch Set: Created 6 years, 8 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: Source/core/frame/Settings.cpp
diff --git a/Source/core/frame/Settings.cpp b/Source/core/frame/Settings.cpp
index dc2bcaa6c5dc09fd25f33fc9d8dfb44ebb99372f..4a79264e62d71ec49f5be380e9c44fac8ad778d2 100644
--- a/Source/core/frame/Settings.cpp
+++ b/Source/core/frame/Settings.cpp
@@ -26,6 +26,7 @@
#include "config.h"
#include "core/frame/Settings.h"
+#include "RuntimeEnabledFeatures.h"
#include "platform/scroll/ScrollbarTheme.h"
namespace WebCore {
@@ -131,4 +132,14 @@ void Settings::setOpenGLMultisamplingEnabled(bool flag)
invalidate(SettingsDelegate::MultisamplingChange);
}
+void Settings::setPreciseMemoryInfoEnabled(bool flag)
+{
+ RuntimeEnabledFeatures::setPreciseMemoryInfoEnabled(flag);
+}
+
+bool Settings::preciseMemoryInfoEnabled() const
+{
+ return RuntimeEnabledFeatures::preciseMemoryInfoEnabled();
+}
abarth-chromium 2014/04/23 18:04:37 This is incorrect. The Settings system and the Ru
Pan 2014/04/24 00:22:28 @abarth, @tonyg, Currently, this setting is used a
+
} // namespace WebCore

Powered by Google App Engine
This is Rietveld 408576698