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

Issue 1214503002: Increase priority of raster threads on Android. (Closed)

Created:
5 years, 6 months ago by aelias_OOO_until_Jul13
Modified:
5 years, 5 months ago
Reviewers:
danakj, no sievers
CC:
brianderson, chromium-reviews, darin-cc_chromium.org, erikwright+watch_chromium.org, jam, mkwst+moarreviews-renderer_chromium.org, mlamouri+watch-content_chromium.org, piman+watch_chromium.org, reveman, rvargas (doing something else), sunnyps
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Increase priority of raster threads on Android. On Android in particular, priority 10 is a threshold for qualitative policy changes by the system that can throttle a thread heavily. Raster threads are really mid-priority threads that shouldn't interfere with the threads responsible for issuing frames, but on the other hand shouldn't be delayed for very long (or the user will see checkerboard on the screen). This patch changes the BACKGROUND priority to 9 on Android. This also makes compositor thread use that priority when smoothness does not take priority, as well as the async upload thread, both of which seem appropriate as well. (There are no other users of BACKGROUND priority outside the graphics stack.) BUG=503720 Committed: https://crrev.com/e8687a393c617f54fe1e1bf8a79b204a69a10dfb Cr-Commit-Position: refs/heads/master@{#337532}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Fix freebsd compile #

Patch Set 3 : Rename enum and fix windows test #

Patch Set 4 : Just change existing value to 9 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+8 lines, -15 lines) Patch
M base/threading/platform_thread_android.cc View 1 2 3 1 chunk +8 lines, -15 lines 1 comment Download

Messages

Total messages: 14 (3 generated)
aelias_OOO_until_Jul13
danakj@ for base/ review (usual threading reviewer rvargas@ is on leave) sievers@ for content/ review
5 years, 6 months ago (2015-06-25 22:16:46 UTC) #2
no sievers
lgtm https://codereview.chromium.org/1214503002/diff/1/base/threading/platform_thread_freebsd.cc File base/threading/platform_thread_freebsd.cc (right): https://codereview.chromium.org/1214503002/diff/1/base/threading/platform_thread_freebsd.cc#newcode32 base/threading/platform_thread_freebsd.cc:32: const ThreadPriorityToNiceValuePair kThreadPriorityToNiceValueMap[4] = { [4] -> [5] ...
5 years, 6 months ago (2015-06-25 22:52:16 UTC) #3
aelias_OOO_until_Jul13
https://codereview.chromium.org/1214503002/diff/1/base/threading/platform_thread_freebsd.cc File base/threading/platform_thread_freebsd.cc (right): https://codereview.chromium.org/1214503002/diff/1/base/threading/platform_thread_freebsd.cc#newcode32 base/threading/platform_thread_freebsd.cc:32: const ThreadPriorityToNiceValuePair kThreadPriorityToNiceValueMap[4] = { On 2015/06/25 at 22:52:15, ...
5 years, 6 months ago (2015-06-25 23:49:13 UTC) #4
no sievers
On 2015/06/25 23:49:13, aelias wrote: > https://codereview.chromium.org/1214503002/diff/1/base/threading/platform_thread_freebsd.cc > File base/threading/platform_thread_freebsd.cc (right): > > https://codereview.chromium.org/1214503002/diff/1/base/threading/platform_thread_freebsd.cc#newcode32 > ...
5 years, 6 months ago (2015-06-26 01:02:29 UTC) #5
danakj
> This patch introduces a new thread priority level mapped to 9 on POSIX and ...
5 years, 5 months ago (2015-07-06 22:49:49 UTC) #6
danakj
OK sorry I read this wrong.. we're making them increased priority.. like the title.. wee ...
5 years, 5 months ago (2015-07-06 23:10:01 UTC) #7
aelias_OOO_until_Jul13
On 2015/07/06 at 23:10:01, danakj wrote: > OK sorry I read this wrong.. we're making ...
5 years, 5 months ago (2015-07-06 23:21:37 UTC) #8
danakj
LGTM https://codereview.chromium.org/1214503002/diff/60001/base/threading/platform_thread_android.cc File base/threading/platform_thread_android.cc (right): https://codereview.chromium.org/1214503002/diff/60001/base/threading/platform_thread_android.cc#newcode26 base/threading/platform_thread_android.cc:26: // - BACKGROUND is 9 due to it ...
5 years, 5 months ago (2015-07-06 23:24:22 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1214503002/60001
5 years, 5 months ago (2015-07-06 23:27:16 UTC) #12
commit-bot: I haz the power
Committed patchset #4 (id:60001)
5 years, 5 months ago (2015-07-07 00:34:53 UTC) #13
commit-bot: I haz the power
5 years, 5 months ago (2015-07-07 00:35:41 UTC) #14
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/e8687a393c617f54fe1e1bf8a79b204a69a10dfb
Cr-Commit-Position: refs/heads/master@{#337532}

Powered by Google App Engine
This is Rietveld 408576698