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

Unified Diff: ui/gl/gl_context_android.cc

Issue 16023006: ui: Make dalvik_limit static so that its value is cached across calls (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 7 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gl/gl_context_android.cc
diff --git a/ui/gl/gl_context_android.cc b/ui/gl/gl_context_android.cc
index ea3460e376de65b35432098747256f5283731a3c..88de4fc6f45faaef44742bb4d2df1a6117ccd59b 100644
--- a/ui/gl/gl_context_android.cc
+++ b/ui/gl/gl_context_android.cc
@@ -96,7 +96,7 @@ bool GLContextEGL::GetTotalGpuMemory(size_t* bytes) {
// Galaxy Nexus 112MB
// Nexus 4/10 256MB
// Xoom 88MB
- size_t dalvik_limit = 0;
+ static size_t dalvik_limit = 0;
if (!dalvik_limit) {
size_t heap_size = static_cast<size_t>(base::SysInfo::DalvikHeapSizeMB());
size_t heap_growth = static_cast<size_t>(
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698