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

Issue 1276523003: Don't trigger HW acceleration from Toasts on low-end devices. (Closed)

Created:
5 years, 4 months ago by Dmitry Skiba
Modified:
5 years, 4 months ago
CC:
asanka, benjhayden+dwatch_chromium.org, chromium-reviews, darin-cc_chromium.org, feature-media-reviews_chromium.org, gunsch+watch_chromium.org, jam, jochen+watch_chromium.org, lcwu+watch_chromium.org, mcasas+watch_chromium.org, mkwst+moarreviews-shell_chromium.org, mlamouri+watch-content_chromium.org, posciak+watch_chromium.org, wjia+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Don't trigger HW acceleration from Toasts on low-end devices. BUG=520600 Committed: https://crrev.com/88634f4e2e63e13a71d94386dca77b3fc802077c Cr-Commit-Position: refs/heads/master@{#343518}

Patch Set 1 #

Patch Set 2 : Removed unrelated changes; added Toast.java #

Patch Set 3 : Removed ChromeShellActivity.java change #

Total comments: 3

Patch Set 4 : Addressed CR comments #

Patch Set 5 : Fix toast context in one case; add tests #

Patch Set 6 : PRESUBMIT hook #

Patch Set 7 : Enhance PRESUBMIT message #

Total comments: 1

Patch Set 8 : Rebased #

Patch Set 9 : Filter out well-known test paths and error in PRESUBMIT #

Patch Set 10 : Workaround proguard issue #

Patch Set 11 : Check Toast acceleration only on LOLLIPOP+ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+304 lines, -25 lines) Patch
M PRESUBMIT.py View 1 2 3 4 5 6 7 8 2 chunks +38 lines, -0 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/ChromeTabbedActivity.java View 1 2 3 4 3 chunks +2 lines, -2 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/ShortcutHelper.java View 1 2 3 4 5 6 7 2 chunks +1 line, -1 line 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/download/ChromeDownloadDelegate.java View 2 chunks +1 line, -1 line 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/download/DownloadManagerService.java View 2 chunks +1 line, -1 line 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/media/remote/AbstractMediaRouteController.java View 2 chunks +1 line, -1 line 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/media/remote/DefaultMediaRouteController.java View 2 chunks +1 line, -1 line 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/media/remote/RemoteMediaPlayerController.java View 2 chunks +1 line, -1 line 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/nfc/BeamCallback.java View 1 chunk +1 line, -1 line 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/ntp/NewTabPageToolbar.java View 1 chunk +1 line, -1 line 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/preferences/ManagedPreferencesUtils.java View 1 chunk +1 line, -1 line 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/preferences/datareduction/DataReductionPromoScreen.java View 2 chunks +1 line, -1 line 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/preferences/privacy/ClearBrowsingDataDialogFragment.java View 2 chunks +1 line, -1 line 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/preferences/website/LanguagePreferences.java View 2 chunks +1 line, -1 line 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/preferences/website/SingleCategoryPreferences.java View 2 chunks +1 line, -1 line 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/toolbar/ToolbarLayout.java View 1 2 3 4 5 6 7 2 chunks +1 line, -1 line 0 comments Download
M chrome/android/javatests/src/org/chromium/chrome/browser/hardware_acceleration/ChromeTabbedActivityHWATest.java View 1 2 3 4 2 chunks +25 lines, -0 lines 0 comments Download
M chrome/android/javatests/src/org/chromium/chrome/browser/hardware_acceleration/Utils.java View 1 2 3 4 5 6 7 8 9 10 5 chunks +36 lines, -5 lines 0 comments Download
M chrome/android/shell/java/src/org/chromium/chrome/shell/ChromeShellActivity.java View 3 4 5 6 7 8 2 chunks +1 line, -1 line 0 comments Download
M content/public/android/java/src/org/chromium/content/browser/TracingControllerAndroid.java View 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M ui/android/java/src/org/chromium/ui/base/Clipboard.java View 1 chunk +1 line, -1 line 0 comments Download
M ui/android/java/src/org/chromium/ui/base/WindowAndroid.java View 1 chunk +1 line, -1 line 0 comments Download
A ui/android/java/src/org/chromium/ui/widget/Toast.java View 1 2 3 1 chunk +185 lines, -0 lines 0 comments Download

Messages

Total messages: 34 (10 generated)
Dmitry Skiba
5 years, 4 months ago (2015-08-06 23:09:52 UTC) #2
jdduke (slow)
One question before we start, so we've already disabled HW acceleration for low-end devices on ...
5 years, 4 months ago (2015-08-07 00:10:11 UTC) #3
Maria
Jared, You can see the improvement on this graph here: https://chromeperf.appspot.com/report?sid=bf05f9aee584a1525fe891212f9ddaae41ce2b16e6902953342e1675533c73ef. The sharp decline towards ...
5 years, 4 months ago (2015-08-07 01:08:17 UTC) #4
jdduke (slow)
I was also curious, have you looked at how the pull-to-refresh spinner performs with HW ...
5 years, 4 months ago (2015-08-07 02:19:27 UTC) #5
jdduke (slow)
On 2015/08/07 01:08:17, Maria wrote: > Jared, > > You can see the improvement on ...
5 years, 4 months ago (2015-08-07 02:24:29 UTC) #6
DmitrySkiba
On 2015/08/07 01:08:17, Maria wrote: > Dmitry, > > Have you looked into enforcing the ...
5 years, 4 months ago (2015-08-07 15:33:09 UTC) #7
DmitrySkiba
> Thanks, looks like a definite improvement, is 2-3MB about the savings we > expected? ...
5 years, 4 months ago (2015-08-07 15:39:13 UTC) #8
DmitrySkiba
On 2015/08/07 02:19:27, jdduke wrote: > I was also curious, have you looked at how ...
5 years, 4 months ago (2015-08-07 15:43:36 UTC) #9
Maria
lgtm
5 years, 4 months ago (2015-08-10 23:44:45 UTC) #10
Dmitry Skiba
https://chromiumcodereview.appspot.com/1276523003/diff/120001/PRESUBMIT.py File PRESUBMIT.py (right): https://chromiumcodereview.appspot.com/1276523003/diff/120001/PRESUBMIT.py#newcode1334 PRESUBMIT.py:1334: '"android.widget.Toast" usage is detected. Android toasts use hardware' Example ...
5 years, 4 months ago (2015-08-11 23:49:51 UTC) #11
Maria
On 2015/08/11 23:49:51, Dmitry Skiba wrote: > https://chromiumcodereview.appspot.com/1276523003/diff/120001/PRESUBMIT.py > File PRESUBMIT.py (right): > > https://chromiumcodereview.appspot.com/1276523003/diff/120001/PRESUBMIT.py#newcode1334 ...
5 years, 4 months ago (2015-08-12 00:04:56 UTC) #12
Dmitry Skiba
On 2015/08/12 00:04:56, Maria wrote: > On 2015/08/11 23:49:51, Dmitry Skiba wrote: > > https://chromiumcodereview.appspot.com/1276523003/diff/120001/PRESUBMIT.py ...
5 years, 4 months ago (2015-08-12 22:51:38 UTC) #13
Maria
lgtm
5 years, 4 months ago (2015-08-12 23:18:29 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1276523003/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1276523003/160001
5 years, 4 months ago (2015-08-13 21:28:24 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/88024)
5 years, 4 months ago (2015-08-13 21:38:17 UTC) #18
Dmitry Skiba
phajdan.jr: please review PRESUBMIT.py dtrainor: please review TracingControllerAndroid and files in ui/android/java
5 years, 4 months ago (2015-08-13 21:50:07 UTC) #20
David Trainor- moved to gerrit
lgtm
5 years, 4 months ago (2015-08-14 00:35:10 UTC) #21
Paweł Hajdan Jr.
PRESUBMIT.py LGTM
5 years, 4 months ago (2015-08-14 09:32:40 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1276523003/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1276523003/160001
5 years, 4 months ago (2015-08-14 16:56:50 UTC) #24
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_android_rel_ng/builds/55900)
5 years, 4 months ago (2015-08-14 17:45:14 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1276523003/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1276523003/180001
5 years, 4 months ago (2015-08-14 19:10:51 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1276523003/200001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1276523003/200001
5 years, 4 months ago (2015-08-14 21:50:42 UTC) #32
commit-bot: I haz the power
Committed patchset #11 (id:200001)
5 years, 4 months ago (2015-08-14 23:03:38 UTC) #33
commit-bot: I haz the power
5 years, 4 months ago (2015-08-14 23:04:15 UTC) #34
Message was sent while issue was closed.
Patchset 11 (id:??) landed as
https://crrev.com/88634f4e2e63e13a71d94386dca77b3fc802077c
Cr-Commit-Position: refs/heads/master@{#343518}

Powered by Google App Engine
This is Rietveld 408576698