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

Issue 2820643002: Decouple some graphics-related IsLowEndDevice() policies for 1GB devices. (Closed)

Created:
3 years, 8 months ago by aelias_OOO_until_Jul13
Modified:
3 years, 8 months ago
Reviewers:
DaleCurtis, jbauman
CC:
chfremer+watch_chromium.org, chromium-reviews, creis+watch_chromium.org, darin-cc_chromium.org, ericrk, feature-media-reviews_chromium.org, jam, kalyank, liberato (no reviews please), Maria, mlamouri+watch-content_chromium.org, nasko+codewatch_chromium.org, ozone-reviews_chromium.org, piman+watch_chromium.org, posciak+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Decouple some graphics-related IsLowEndDevice() policies for 1GB devices. In http://crrev.com/2814323002, IsLowEndDevice() was changed to apply to some 1GB devices, which was not the original intent of the flag (used to be strictly 512MB). I triaged the current uses of it, and found the two following inappropriate ones: 1) Use of 16-bit color in the graphics subsystem is a particularly desperate measure unique to Chrome on 512MB devices (not even resorted to by any other Android app on 512MB devices). Because 16-bit GL driver features are little-used or tested, it poses a high risk of severe performance and stability issues (which are browser crashes in IsLowEndDevice mode). So replace those callsites with an explicit memory check. 2) The video code has some settings to disable autoplay and idle playback on Jellybean or low-RAM devices. Disabling autoplay is a web-standards-violating change so we shouldn't apply it to any new devices. As far as I can tell from the history on http://crbug.com/612909, this was added to workaround Jellybean bugs which have never been observed on any device meeting the Svelte criteria (KitKat or above, 512MB). isLowEndDevice() should only be used for RAM optimizations, so I simply removed the calls. BUG=711079 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.android:android_optional_gpu_tests_rel;master.tryserver.chromium.linux:linux_optional_gpu_tests_rel;master.tryserver.chromium.mac:mac_optional_gpu_tests_rel;master.tryserver.chromium.win:win_optional_gpu_tests_rel Review-Url: https://codereview.chromium.org/2820643002 Cr-Commit-Position: refs/heads/master@{#464813} Committed: https://chromium.googlesource.com/chromium/src/+/e678aa49f3fbb21132296a1356239c79d8db276a

Patch Set 1 #

Patch Set 2 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+33 lines, -38 lines) Patch
M content/browser/renderer_host/compositor_impl_android.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/gpu/render_widget_compositor.cc View 1 2 chunks +15 lines, -15 lines 0 comments Download
M content/renderer/media/renderer_webmediaplayer_delegate.h View 2 chunks +3 lines, -3 lines 0 comments Download
M content/renderer/media/renderer_webmediaplayer_delegate.cc View 3 chunks +8 lines, -10 lines 0 comments Download
M content/renderer/render_view_impl.cc View 1 1 chunk +4 lines, -6 lines 0 comments Download
M media/gpu/android_video_decode_accelerator.cc View 1 1 chunk +1 line, -2 lines 0 comments Download
M ui/gl/gl_surface_egl.cc View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 18 (13 generated)
aelias_OOO_until_Jul13
PTAL, dalecurtis@ for video jbauman@ for ui/gl
3 years, 8 months ago (2017-04-14 02:52:04 UTC) #3
DaleCurtis
media/ lgtm, mlamouri@ never liked that change anyways and I only have a sample size ...
3 years, 8 months ago (2017-04-14 18:24:25 UTC) #12
jbauman
lgtm
3 years, 8 months ago (2017-04-14 22:06:57 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2820643002/20001
3 years, 8 months ago (2017-04-14 22:36:04 UTC) #15
commit-bot: I haz the power
3 years, 8 months ago (2017-04-14 22:41:58 UTC) #18
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/e678aa49f3fbb21132296a135623...

Powered by Google App Engine
This is Rietveld 408576698