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

Unified Diff: cc/output/output_surface.cc

Issue 1324413003: Move gpu memory calculations to Compositor. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: move memory clamping code to RWC. Created 5 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 | « no previous file | cc/trees/layer_tree_host_impl.cc » ('j') | content/renderer/gpu/render_widget_compositor.h » ('J')
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 056879f49d84ba444142101690da109437208d14..423c68a35f32d21b2f350ec5d806e7d5b14c66bf 100644
--- a/cc/output/output_surface.cc
+++ b/cc/output/output_surface.cc
@@ -104,8 +104,6 @@ OutputSurface::~OutputSurface() {
if (context_provider_.get()) {
context_provider_->SetLostContextCallback(
ContextProvider::LostContextCallback());
- context_provider_->SetMemoryPolicyChangedCallback(
- ContextProvider::MemoryPolicyChangedCallback());
}
}
@@ -123,8 +121,6 @@ bool OutputSurface::BindToClient(OutputSurfaceClient* client) {
if (success) {
context_provider_->SetLostContextCallback(base::Bind(
&OutputSurface::DidLoseOutputSurface, base::Unretained(this)));
- context_provider_->SetMemoryPolicyChangedCallback(
- base::Bind(&OutputSurface::SetMemoryPolicy, base::Unretained(this)));
}
}
« no previous file with comments | « no previous file | cc/trees/layer_tree_host_impl.cc » ('j') | content/renderer/gpu/render_widget_compositor.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698