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

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: review comment + android_arm64_dbg_recipe bot issue. Created 5 years, 2 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/context_provider.h ('k') | cc/output/output_surface_unittest.cc » ('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 efa6d13b8d720dda4dd77f1f99c1091bb063c5ff..93b6cdd55d35807c4dd38f64b573a87aca0026d2 100644
--- a/cc/output/output_surface.cc
+++ b/cc/output/output_surface.cc
@@ -210,8 +210,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)));
}
}
@@ -355,8 +353,6 @@ void OutputSurface::DetachFromClientInternal() {
if (context_provider_.get()) {
context_provider_->SetLostContextCallback(
ContextProvider::LostContextCallback());
- context_provider_->SetMemoryPolicyChangedCallback(
- ContextProvider::MemoryPolicyChangedCallback());
}
context_provider_ = nullptr;
client_ = nullptr;
« no previous file with comments | « cc/output/context_provider.h ('k') | cc/output/output_surface_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698