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

Issue 10907037: Only update system power indicators on change (Closed)

Created:
8 years, 3 months ago by sheu
Modified:
8 years, 3 months ago
CC:
chromium-reviews, sadrul, ben+watch_chromium.org
Base URL:
https://git.chromium.org/git/chromium/src@git-svn
Visibility:
Public.

Description

Only update system power indicators on change For chromeos, this saves us having to recomposite the desktop every time we get a power status notification (about 1/30 hz). Saves power, ironically. BUG=chrome-os-partner:13141 TEST=build, run on lumpy, lucas Change-Id: Ief427d42e8e450259cbc29ed939182e65008269e Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=156474

Patch Set 1 #

Total comments: 3

Patch Set 2 : Updated comments, rebased to ToT, moved textfield opts to separte CL #

Total comments: 14

Patch Set 3 : Nit fixes.:wq #

Total comments: 2

Patch Set 4 : Last nits, and some SetImage() removal:wq #

Unified diffs Side-by-side diffs Delta from patch set Stats (+64 lines, -33 lines) Patch
M ash/system/power/power_status_view.h View 1 2 3 1 chunk +7 lines, -2 lines 0 comments Download
M ash/system/power/power_status_view.cc View 1 2 3 4 chunks +14 lines, -8 lines 0 comments Download
M ash/system/power/tray_power.h View 1 2 1 chunk +7 lines, -5 lines 0 comments Download
M ash/system/power/tray_power.cc View 1 2 3 4 chunks +36 lines, -18 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
sheu
Todd/Sam, please review -- thanks.
8 years, 3 months ago (2012-09-04 18:56:14 UTC) #1
tbroch1
lgtm
8 years, 3 months ago (2012-09-04 21:18:56 UTC) #2
commit-bot: I haz the power
No LGTM from a valid reviewer yet. Only full committers are accepted. Even if an ...
8 years, 3 months ago (2012-09-04 21:20:22 UTC) #3
Sam Leffler
lgtm too but need owner
8 years, 3 months ago (2012-09-04 21:45:01 UTC) #4
Daniel Erat
https://chromiumcodereview.appspot.com/10907037/diff/1/ash/system/power/power_status_view.cc File ash/system/power/power_status_view.cc (right): https://chromiumcodereview.appspot.com/10907037/diff/1/ash/system/power/power_status_view.cc#newcode152 ash/system/power/power_status_view.cc:152: time_status_label_->SetText(time_status_text); This seems like a worthwhile optimization to do ...
8 years, 3 months ago (2012-09-04 21:51:58 UTC) #5
sheu
New patchset up.
8 years, 3 months ago (2012-09-11 20:28:18 UTC) #6
Daniel Erat
https://chromiumcodereview.appspot.com/10907037/diff/8002/ash/system/power/power_status_view.cc File ash/system/power/power_status_view.cc (right): https://chromiumcodereview.appspot.com/10907037/diff/8002/ash/system/power/power_status_view.cc#newcode209 ash/system/power/power_status_view.cc:209: if (icon_image_index_ == -1) use curly-brackets for multi-line if ...
8 years, 3 months ago (2012-09-11 22:17:09 UTC) #7
sheu
Up.
8 years, 3 months ago (2012-09-11 23:08:55 UTC) #8
Daniel Erat
https://chromiumcodereview.appspot.com/10907037/diff/1006/ash/system/power/power_status_view.cc File ash/system/power/power_status_view.cc (right): https://chromiumcodereview.appspot.com/10907037/diff/1006/ash/system/power/power_status_view.cc#newcode211 ash/system/power/power_status_view.cc:211: icon_->SetImage(icon_->GetImage()); didn't see any explanation for this: it looks ...
8 years, 3 months ago (2012-09-11 23:31:04 UTC) #9
sheu
The GetImage(), etc. strangeness was because the existing code did that and I just sort ...
8 years, 3 months ago (2012-09-12 04:01:28 UTC) #10
Daniel Erat
lgtm Thanks!
8 years, 3 months ago (2012-09-12 04:06:18 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sheu@chromium.org/10907037/12003
8 years, 3 months ago (2012-09-12 19:51:44 UTC) #12
commit-bot: I haz the power
Try job failure for 10907037-12003 (retry) on android for steps "compile, build" (clobber build). It's ...
8 years, 3 months ago (2012-09-12 20:53:26 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sheu@chromium.org/10907037/12003
8 years, 3 months ago (2012-09-13 00:00:37 UTC) #14
commit-bot: I haz the power
8 years, 3 months ago (2012-09-13 02:42:31 UTC) #15
Change committed as 156474

Powered by Google App Engine
This is Rietveld 408576698