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

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

Issue 10910180: Give Chrome OS more GPU memory (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove extra knob from ChromeOS Created 8 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 | content/common/gpu/gpu_memory_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 015f0b03eae0576cad1bb13d4464c549e389b1ce..af78f577d1c3f5b561e1d4d98fe930519fdaa011 100644
--- a/content/common/gpu/gpu_memory_manager.h
+++ b/content/common/gpu/gpu_memory_manager.h
@@ -103,7 +103,11 @@ class CONTENT_EXPORT GpuMemoryManager :
// The maximum amount of memory that a tab may be assigned
size_t GetMaximumTabAllocation() const {
+#if defined(OS_CHROMEOS)
+ return bytes_available_gpu_memory_;
+#else
return 128 * 1024 * 1024;
+#endif
}
// The minimum non-zero amount of memory that a tab may be assigned
« no previous file with comments | « no previous file | content/common/gpu/gpu_memory_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698