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

Unified Diff: content/renderer/gpu/render_widget_compositor.cc

Issue 1293873005: Expire resources in ResourcePool after non-use (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@re-use
Patch Set: Fix unit test Created 5 years, 4 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
« no previous file with comments | « content/browser/renderer_host/render_process_host_impl.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/gpu/render_widget_compositor.cc
diff --git a/content/renderer/gpu/render_widget_compositor.cc b/content/renderer/gpu/render_widget_compositor.cc
index 5b9d781dc83df56a5ed2c82b935d37365782aa0a..9f7c5281a23e2213c6399ed473d80a6ca1c53230 100644
--- a/content/renderer/gpu/render_widget_compositor.cc
+++ b/content/renderer/gpu/render_widget_compositor.cc
@@ -375,18 +375,6 @@ void RenderWidgetCompositor::Initialize() {
settings.invert_viewport_scroll_order =
cmd->HasSwitch(switches::kInvertViewportScrollOrder);
- if (cmd->HasSwitch(cc::switches::kMaxUnusedResourceMemoryUsagePercentage)) {
- int max_unused_resource_memory_percentage;
- if (GetSwitchValueAsInt(
- *cmd,
- cc::switches::kMaxUnusedResourceMemoryUsagePercentage,
- 0, 100,
- &max_unused_resource_memory_percentage)) {
- settings.max_unused_resource_memory_percentage =
- max_unused_resource_memory_percentage;
- }
- }
-
settings.strict_layer_property_change_checking =
cmd->HasSwitch(cc::switches::kStrictLayerPropertyChangeChecking);
« no previous file with comments | « content/browser/renderer_host/render_process_host_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698