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

Unified Diff: content/common/gpu/client/context_provider_command_buffer.cc

Issue 53633003: Do not give GPU memory to backgrounded compositors. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove test 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
« no previous file with comments | « cc/trees/layer_tree_host_unittest_damage.cc ('k') | content/common/gpu/gpu_memory_manager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/gpu/client/context_provider_command_buffer.cc
diff --git a/content/common/gpu/client/context_provider_command_buffer.cc b/content/common/gpu/client/context_provider_command_buffer.cc
index e992236f78ca565c7f2702a74f3aa0db6a6e0051..59034e12071ae7b4405e4ebdf98d30ded496edb6 100644
--- a/content/common/gpu/client/context_provider_command_buffer.cc
+++ b/content/common/gpu/client/context_provider_command_buffer.cc
@@ -204,11 +204,7 @@ void ContextProviderCommandBuffer::OnMemoryAllocationChanged(
if (memory_policy_changed_callback_.is_null())
return;
- bool discard_backbuffer_when_not_visible =
- !allocation.have_backbuffer_when_not_visible;
-
- memory_policy_changed_callback_.Run(
- cc::ManagedMemoryPolicy(allocation), discard_backbuffer_when_not_visible);
+ memory_policy_changed_callback_.Run(cc::ManagedMemoryPolicy(allocation));
}
bool ContextProviderCommandBuffer::InitializeCapabilities() {
« no previous file with comments | « cc/trees/layer_tree_host_unittest_damage.cc ('k') | content/common/gpu/gpu_memory_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698