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

Unified Diff: content/common/gpu/gpu_memory_manager.h

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
Index: content/common/gpu/gpu_memory_manager.h
diff --git a/content/common/gpu/gpu_memory_manager.h b/content/common/gpu/gpu_memory_manager.h
index 3c9a2232fe5186d589b786c48162be38cdfddf37..4dd720c2df6efb4b4dc662ee511308099c1c98a3 100644
--- a/content/common/gpu/gpu_memory_manager.h
+++ b/content/common/gpu/gpu_memory_manager.h
@@ -116,7 +116,6 @@ class CONTENT_EXPORT GpuMemoryManager :
// Compute the allocation for clients when visible and not visible.
void ComputeVisibleSurfacesAllocations();
- void ComputeNonvisibleSurfacesAllocations();
void DistributeRemainingMemoryToVisibleSurfaces();
// Compute the budget for a client. Allow at most bytes_above_required_cap
@@ -128,8 +127,6 @@ class CONTENT_EXPORT GpuMemoryManager :
uint64 bytes_above_required_cap,
uint64 bytes_above_minimum_cap,
uint64 bytes_overall_cap);
- uint64 ComputeClientAllocationWhenNonvisible(
- GpuMemoryManagerClientState* client_state);
// Update the amount of GPU memory we think we have in the system, based
// on what the stubs' contexts report.
@@ -232,17 +229,12 @@ class CONTENT_EXPORT GpuMemoryManager :
uint64 bytes_available_gpu_memory_;
bool bytes_available_gpu_memory_overridden_;
- // Whether or not clients can be allocated memory when nonvisible.
- bool allow_nonvisible_memory_;
-
// The minimum and default allocations for a single client.
uint64 bytes_minimum_per_client_;
uint64 bytes_default_per_client_;
// The current total memory usage, and historical maximum memory usage
uint64 bytes_allocated_managed_current_;
- uint64 bytes_allocated_managed_visible_;
- uint64 bytes_allocated_managed_nonvisible_;
uint64 bytes_allocated_unmanaged_current_;
uint64 bytes_allocated_historical_max_;
« no previous file with comments | « content/common/gpu/client/context_provider_command_buffer.cc ('k') | content/common/gpu/gpu_memory_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698