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

Unified Diff: content/browser/renderer_host/compositor_impl_android.cc

Issue 2820643002: Decouple some graphics-related IsLowEndDevice() policies for 1GB devices. (Closed)
Patch Set: Rebase Created 3 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
« no previous file with comments | « no previous file | content/renderer/gpu/render_widget_compositor.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/compositor_impl_android.cc
diff --git a/content/browser/renderer_host/compositor_impl_android.cc b/content/browser/renderer_host/compositor_impl_android.cc
index b4d13ee0391c6928c3187b376a7f9af74c67bd3e..f572bb644c23f4ebc8b8936dd00c1de9de3a2b6f 100644
--- a/content/browser/renderer_host/compositor_impl_android.cc
+++ b/content/browser/renderer_host/compositor_impl_android.cc
@@ -169,7 +169,7 @@ gpu::gles2::ContextCreationAttribHelper GetCompositorContextAttributes(
if (has_transparent_background) {
attributes.alpha_size = 8;
- } else if (base::SysInfo::IsLowEndDevice()) {
+ } else if (base::SysInfo::AmountOfPhysicalMemoryMB() <= 512) {
// In this case we prefer to use RGB565 format instead of RGBA8888 if
// possible.
// TODO(danakj): GpuCommandBufferStub constructor checks for alpha == 0 in
« no previous file with comments | « no previous file | content/renderer/gpu/render_widget_compositor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698