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

Unified Diff: content/renderer/gpu/compositor_output_surface.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
Index: content/renderer/gpu/compositor_output_surface.cc
diff --git a/content/renderer/gpu/compositor_output_surface.cc b/content/renderer/gpu/compositor_output_surface.cc
index de11e048870d5df9c093e4b0caf36c5c17496122..5064c01d4da9ab39e8c6e54db4b3dfa59dbc0fe8 100644
--- a/content/renderer/gpu/compositor_output_surface.cc
+++ b/content/renderer/gpu/compositor_output_surface.cc
@@ -79,15 +79,6 @@ bool CompositorOutputSurface::BindToClient(
output_surface_filter_->AddHandlerOnCompositorThread(
routing_id_,
output_surface_filter_handler_);
-
- if (!context_provider()) {
- // Without a GPU context, the memory policy otherwise wouldn't be set.
- client->SetMemoryPolicy(cc::ManagedMemoryPolicy(
- 128 * 1024 * 1024,
- gpu::MemoryAllocation::CUTOFF_ALLOW_NICE_TO_HAVE,
- base::SharedMemory::GetHandleLimit() / 3));
- }
-
return true;
}
« no previous file with comments | « content/renderer/android/synchronous_compositor_output_surface.h ('k') | content/renderer/gpu/render_widget_compositor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698