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

Unified Diff: content/child/blink_platform_impl.cc

Issue 258663002: Expose a low-end device mode override flags for non-android OSs as well (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Forward command-line flags to renderer and gpu processes Created 6 years, 8 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/child/blink_platform_impl.cc
diff --git a/content/child/blink_platform_impl.cc b/content/child/blink_platform_impl.cc
index 33d3790cdd5dbf95139fb8dec13a90621385486b..d89d5fcd8e3bb49f970d74aaa9e7a8a330c5b5b9 100644
--- a/content/child/blink_platform_impl.cc
+++ b/content/child/blink_platform_impl.cc
@@ -26,6 +26,7 @@
#include "base/synchronization/lock.h"
#include "base/synchronization/waitable_event.h"
#include "base/sys_info.h"
+#include "base/sys_utils.h"
#include "base/time/time.h"
#include "content/child/content_child_helpers.h"
#include "content/child/fling_curve_configuration.h"
@@ -51,7 +52,6 @@
#include "ui/base/layout.h"
#if defined(OS_ANDROID)
-#include "base/android/sys_utils.h"
#include "content/child/fling_animator_impl_android.h"
#endif
@@ -1055,7 +1055,7 @@ BlinkPlatformImpl::allocateAndLockDiscardableMemory(size_t bytes) {
size_t BlinkPlatformImpl::maxDecodedImageBytes() {
#if defined(OS_ANDROID)
- if (base::android::SysUtils::IsLowEndDevice()) {
+ if (base::SysUtils::IsLowEndDevice()) {
// Limit image decoded size to 3M pixels on low end devices.
// 4 is maximum number of bytes per pixel.
return 3 * 1024 * 1024 * 4;

Powered by Google App Engine
This is Rietveld 408576698