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

Unified Diff: cc/output/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
« no previous file with comments | « cc/output/output_surface.h ('k') | cc/output/output_surface_client.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/output/output_surface.cc
diff --git a/cc/output/output_surface.cc b/cc/output/output_surface.cc
index 36417cee2bce56c2704b287f9b0dbaa954cf83ab..a853c64e86c0caece0a30e7e912ef220b29be81a 100644
--- a/cc/output/output_surface.cc
+++ b/cc/output/output_surface.cc
@@ -256,16 +256,6 @@ void OutputSurface::DidReceiveTextureInUseResponses(
client_->DidReceiveTextureInUseResponses(responses);
}
-void OutputSurface::SetMemoryPolicy(const ManagedMemoryPolicy& policy) {
- TRACE_EVENT1("cc", "OutputSurface::SetMemoryPolicy",
- "bytes_limit_when_visible", policy.bytes_limit_when_visible);
- // Just ignore the memory manager when it says to set the limit to zero
- // bytes. This will happen when the memory manager thinks that the renderer
- // is not visible (which the renderer knows better).
- if (policy.bytes_limit_when_visible)
- client_->SetMemoryPolicy(policy);
-}
-
OverlayCandidateValidator* OutputSurface::GetOverlayCandidateValidator() const {
return nullptr;
}
« no previous file with comments | « cc/output/output_surface.h ('k') | cc/output/output_surface_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698