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

Issue 2259493005: Let PowerSaveBlocker manager anchor view in Java side (Closed)

Created:
4 years, 4 months ago by Jinsuk Kim
Modified:
4 years, 3 months ago
Reviewers:
Ted C, Theresa, boliu
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Let PowerSaveBlocker manager anchor view in Java side This reduces the number of native-to-Java calls by one with a view to mitigating the benchmark test regression introduced with https://crrev.com/2103243002. PowerSaveBlocker was the only class that created an anchor view during the test. Though the root cause not being entirely clear yet, having the view created on Java side can possibly help decrease the browser thread cpu consumption. BUG=635515 TBR=tedchoc@chromium.org Committed: https://crrev.com/bc403d8872340a62c310c9665e3b3972344c8c5b Cr-Commit-Position: refs/heads/master@{#413900}

Patch Set 1 #

Total comments: 2

Patch Set 2 : JavaObjectWeakGlobalRef #

Patch Set 3 : rebased #

Unified diffs Side-by-side diffs Delta from patch set Stats (+23 lines, -25 lines) Patch
M device/power_save_blocker/android/java/src/org/chromium/device/power_save_blocker/PowerSaveBlocker.java View 3 chunks +4 lines, -2 lines 0 comments Download
M device/power_save_blocker/power_save_blocker_android.cc View 1 2 2 chunks +4 lines, -7 lines 0 comments Download
M ui/android/view_android.h View 1 1 chunk +5 lines, -6 lines 0 comments Download
M ui/android/view_android.cc View 1 2 5 chunks +10 lines, -10 lines 0 comments Download

Messages

Total messages: 28 (15 generated)
Jinsuk Kim
twellington@chromium.org: Please review changes in ui/android/ boliu@chromium.org: Please review changes in device/power_save_blocker
4 years, 4 months ago (2016-08-19 11:29:14 UTC) #2
boliu
https://codereview.chromium.org/2259493005/diff/1/ui/android/view_android.h File ui/android/view_android.h (right): https://codereview.chromium.org/2259493005/diff/1/ui/android/view_android.h#newcode92 ui/android/view_android.h:92: const base::android::ScopedJavaLocalRef<jobject> err, maybe return GlobalRef if this is ...
4 years, 4 months ago (2016-08-19 18:49:58 UTC) #3
Jinsuk Kim
https://codereview.chromium.org/2259493005/diff/1/ui/android/view_android.h File ui/android/view_android.h (right): https://codereview.chromium.org/2259493005/diff/1/ui/android/view_android.h#newcode92 ui/android/view_android.h:92: const base::android::ScopedJavaLocalRef<jobject> On 2016/08/19 18:49:58, boliu wrote: > err, ...
4 years, 4 months ago (2016-08-19 20:44:46 UTC) #4
boliu
lgtm
4 years, 4 months ago (2016-08-19 20:47:44 UTC) #5
Jinsuk Kim
tedchoc@ Please review changes in ui/android.
4 years, 4 months ago (2016-08-19 21:01:21 UTC) #7
Jinsuk Kim
On 2016/08/19 21:01:21, Jinsuk wrote: > tedchoc@ Please review changes in ui/android. ping?
4 years, 4 months ago (2016-08-23 01:16:03 UTC) #16
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/2259493005/40001
4 years, 4 months ago (2016-08-23 21:37:33 UTC) #20
Ted C
On 2016/08/23 21:37:33, commit-bot: I haz the power wrote: > CQ is trying da patch. ...
4 years, 4 months ago (2016-08-23 23:36:46 UTC) #21
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 4 months ago (2016-08-23 23:46:25 UTC) #23
commit-bot: I haz the power
Patchset 3 (id:??) landed as https://crrev.com/bc403d8872340a62c310c9665e3b3972344c8c5b Cr-Commit-Position: refs/heads/master@{#413900}
4 years, 4 months ago (2016-08-23 23:48:39 UTC) #25
no sievers
Can we revert this now, since it looks like it caused no improvement in the ...
4 years, 3 months ago (2016-08-26 19:34:45 UTC) #26
no sievers
On 2016/08/26 19:34:45, sievers wrote: > Can we revert this now, since it looks like ...
4 years, 3 months ago (2016-08-26 20:42:34 UTC) #27
no sievers
4 years, 3 months ago (2016-08-26 20:42:52 UTC) #28
Message was sent while issue was closed.
A revert of this CL (patchset #3 id:40001) has been created in
https://codereview.chromium.org/2279313005/ by sievers@chromium.org.

The reason for reverting is: not needed. doesn't fix the regression..

Powered by Google App Engine
This is Rietveld 408576698