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

Unified Diff: cc/debug/test_context_provider.cc

Issue 53633003: Do not give GPU memory to backgrounded compositors. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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
Index: cc/debug/test_context_provider.cc
diff --git a/cc/debug/test_context_provider.cc b/cc/debug/test_context_provider.cc
index 873889a9b4ff139e5287b993a62b26465537d29b..5d8a29ae47c13b62523d9632b08364dd0c8f14c4 100644
--- a/cc/debug/test_context_provider.cc
+++ b/cc/debug/test_context_provider.cc
@@ -191,12 +191,10 @@ TestWebGraphicsContext3D* TestContextProvider::UnboundTestContext3d() {
}
void TestContextProvider::SetMemoryAllocation(
- const ManagedMemoryPolicy& policy,
- bool discard_backbuffer_when_not_visible) {
+ const ManagedMemoryPolicy& policy) {
if (memory_policy_changed_callback_.is_null())
return;
- memory_policy_changed_callback_.Run(
- policy, discard_backbuffer_when_not_visible);
+ memory_policy_changed_callback_.Run(policy);
}
void TestContextProvider::SetLostContextCallback(

Powered by Google App Engine
This is Rietveld 408576698