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

Unified Diff: blimp/client/support/compositor/blimp_layer_tree_settings.cc

Issue 2321883002: cc: Remove SetMemoryPolicy from OutputSurface and Display. (Closed)
Patch Set: nits Created 4 years, 3 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 | « android_webview/browser/surfaces_instance.h ('k') | cc/output/output_surface.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: blimp/client/support/compositor/blimp_layer_tree_settings.cc
diff --git a/blimp/client/support/compositor/blimp_layer_tree_settings.cc b/blimp/client/support/compositor/blimp_layer_tree_settings.cc
index f0edf011de17b1adc7bf1a6f088c04cb92f46a12..c150fb93be22697aac80f56941f278e00e8a053d 100644
--- a/blimp/client/support/compositor/blimp_layer_tree_settings.cc
+++ b/blimp/client/support/compositor/blimp_layer_tree_settings.cc
@@ -101,8 +101,8 @@ void PopulateCommonLayerTreeSettings(cc::LayerTreeSettings* settings) {
// settings->scrollbar_show_scale_threshold = 1.05f;
#endif
- // Set the GpuMemoryPolicy.
- cc::ManagedMemoryPolicy memory_policy = settings->memory_policy_;
+ // Set the gpu memory policy.
+ cc::ManagedMemoryPolicy& memory_policy = settings->gpu_memory_policy;
memory_policy.bytes_limit_when_visible = 0;
#if defined(OS_ANDROID)
« no previous file with comments | « android_webview/browser/surfaces_instance.h ('k') | cc/output/output_surface.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698