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

Issue 1223263009: Disable hardware acceleration for ChromeActivities on low-end devices. (Closed)

Created:
5 years, 5 months ago by Dmitry Skiba
Modified:
5 years, 4 months ago
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Disable hardware acceleration for ChromeActivities on low-end devices. Disabling HW acceleration saves us several MiB of GL/EGL memory (4-10 as reported by meminfo depending on the device). However, we do that only for activities derived from ChromeActivity because they have simple UI, so side effects of disabled HW acceleration (janky ripple animation, no shadows, etc) are not noticeable. Also, since we cannot really disable HW acceleration at runtime (only enable), we disable it in the manifest and enable for high-end devices. BUG=482727 Committed: https://crrev.com/58112bab464cbcbc4c82efb3ac2193d49f3131e8 Cr-Commit-Position: refs/heads/master@{#341393}

Patch Set 1 #

Total comments: 3

Patch Set 2 : Removed asserts, added tests #

Total comments: 2

Patch Set 3 : NoRenderThread tests #

Patch Set 4 : rebased #

Patch Set 5 : Fixed DocumentModeTestBase to compile #

Unified diffs Side-by-side diffs Delta from patch set Stats (+357 lines, -23 lines) Patch
M chrome/android/java/AndroidManifest.xml View 1 2 10 chunks +14 lines, -11 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/ChromeActivity.java View 1 2 3 4 chunks +11 lines, -0 lines 0 comments Download
M chrome/android/javatests/src/org/chromium/chrome/browser/document/DocumentModeTest.java View 1 2 3 1 chunk +1 line, -12 lines 0 comments Download
M chrome/android/javatests/src/org/chromium/chrome/browser/document/DocumentModeTestBase.java View 1 2 3 4 2 chunks +22 lines, -0 lines 0 comments Download
A chrome/android/javatests/src/org/chromium/chrome/browser/hardware_acceleration/ChromeTabbedActivityHWATest.java View 1 2 1 chunk +40 lines, -0 lines 0 comments Download
A chrome/android/javatests/src/org/chromium/chrome/browser/hardware_acceleration/CustomTabActivityHWATest.java View 1 2 1 chunk +22 lines, -0 lines 0 comments Download
A chrome/android/javatests/src/org/chromium/chrome/browser/hardware_acceleration/DocumentActivityHWATest.java View 1 2 1 chunk +39 lines, -0 lines 0 comments Download
A chrome/android/javatests/src/org/chromium/chrome/browser/hardware_acceleration/EmbedContentViewActivityHWATest.java View 1 1 chunk +33 lines, -0 lines 0 comments Download
A chrome/android/javatests/src/org/chromium/chrome/browser/hardware_acceleration/IncognitoDocumentActivityHWATest.java View 1 2 1 chunk +39 lines, -0 lines 0 comments Download
A chrome/android/javatests/src/org/chromium/chrome/browser/hardware_acceleration/ManifestHWATest.java View 1 1 chunk +39 lines, -0 lines 0 comments Download
A chrome/android/javatests/src/org/chromium/chrome/browser/hardware_acceleration/Utils.java View 1 2 1 chunk +75 lines, -0 lines 0 comments Download
A chrome/android/javatests/src/org/chromium/chrome/browser/hardware_acceleration/WebappActivityHWATest.java View 1 2 1 chunk +22 lines, -0 lines 0 comments Download

Messages

Total messages: 17 (4 generated)
Dmitry Skiba
5 years, 5 months ago (2015-07-15 21:59:16 UTC) #2
newt (away)
I'll defer to Maria and Alex for the initial review https://codereview.chromium.org/1223263009/diff/1/chrome/android/java/AndroidManifest.xml File chrome/android/java/AndroidManifest.xml (right): https://codereview.chromium.org/1223263009/diff/1/chrome/android/java/AndroidManifest.xml#newcode111 ...
5 years, 5 months ago (2015-07-16 19:46:16 UTC) #3
aelias_OOO_until_Jul13
Before we land anything, I think this needs further discussion around: A) the likely jankiness ...
5 years, 5 months ago (2015-07-17 02:48:25 UTC) #4
DmitrySkiba
https://codereview.chromium.org/1223263009/diff/1/chrome/android/java/src/org/chromium/chrome/browser/ChromeActivity.java File chrome/android/java/src/org/chromium/chrome/browser/ChromeActivity.java (right): https://codereview.chromium.org/1223263009/diff/1/chrome/android/java/src/org/chromium/chrome/browser/ChromeActivity.java#newcode1409 chrome/android/java/src/org/chromium/chrome/browser/ChromeActivity.java:1409: private void checkHardwareAcceleration() { On 2015/07/17 02:48:25, aelias wrote: ...
5 years, 5 months ago (2015-07-17 16:55:14 UTC) #6
Maria
lgtm I played with the change for a bit and it looks good to me. ...
5 years, 5 months ago (2015-07-24 20:59:38 UTC) #7
Dmitry Skiba
Alexandre, I believe I answered your concerns in crbug.com/482727 - is there anything I need ...
5 years, 4 months ago (2015-07-27 16:03:02 UTC) #8
aelias_OOO_until_Jul13
As mentioned offline, I think this can regress very easily because any random thing like ...
5 years, 4 months ago (2015-07-28 00:49:21 UTC) #9
Dmitry Skiba
Alexandre, please check NoRenderThread tests I added to DocumentActivityHWATest, IncognitoDocumentActivityHWATest and ChromeTabbedActivityHWATest. Actually, that was ...
5 years, 4 months ago (2015-07-28 21:23:53 UTC) #10
aelias_OOO_until_Jul13
Thanks for the tests. A few more things, I agree with Maria's comment here: > ...
5 years, 4 months ago (2015-07-28 23:04:31 UTC) #11
Dmitry Skiba
> How about adding a UMA stat collection at page load complete time that checks ...
5 years, 4 months ago (2015-07-29 22:28:57 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1223263009/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1223263009/80001
5 years, 4 months ago (2015-07-31 19:47:18 UTC) #15
commit-bot: I haz the power
Committed patchset #5 (id:80001)
5 years, 4 months ago (2015-07-31 19:57:14 UTC) #16
commit-bot: I haz the power
5 years, 4 months ago (2015-07-31 19:57:51 UTC) #17
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/58112bab464cbcbc4c82efb3ac2193d49f3131e8
Cr-Commit-Position: refs/heads/master@{#341393}

Powered by Google App Engine
This is Rietveld 408576698