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

Unified Diff: ui/gl/gl_context_android.cc

Issue 119493005: Expose a low-end device mode override flags for non-android OSs as well (Closed) Base URL: https://git.chromium.org/chromium/src.git@master
Patch Set: Created 7 years 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: ui/gl/gl_context_android.cc
diff --git a/ui/gl/gl_context_android.cc b/ui/gl/gl_context_android.cc
index a9e888b203d41a2912d0e87217ae1a415660013a..c36a30303e29278d0653b58078434dd7cdd4d9da 100644
--- a/ui/gl/gl_context_android.cc
+++ b/ui/gl/gl_context_android.cc
@@ -4,10 +4,10 @@
#include "ui/gl/gl_context.h"
-#include "base/android/sys_utils.h"
#include "base/logging.h"
#include "base/memory/ref_counted.h"
#include "base/sys_info.h"
+#include "base/sys_utils.h"
#include "ui/gl/gl_bindings.h"
#include "ui/gl/gl_context_egl.h"
#include "ui/gl/gl_context_stub.h"
@@ -115,7 +115,7 @@ bool GLContextEGL::GetTotalGpuMemory(size_t* bytes) {
// Nexus S(low-end) 8MB
static size_t limit_bytes = 0;
if (limit_bytes == 0) {
- if (!base::android::SysUtils::IsLowEndDevice()) {
+ if (!base::SysUtils::IsLowEndDevice()) {
if (physical_memory_mb >= 1536)
limit_bytes = physical_memory_mb / 8;
else if (physical_memory_mb >= 1152)

Powered by Google App Engine
This is Rietveld 408576698