summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2015-04-15 18:10:08 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2015-04-15 18:10:08 +0000
commitfae77740c29b732e82b73a043f596470cd0ac0ed (patch)
tree91495fa1bddb78b9144a286692b91bdbded54345
parent437a328a14ee07b8da434964eb13f640302c0302 (diff)
parentf65d97567c0d857458a1978085af4518750f51b6 (diff)
downloadsystem_core-fae77740c29b732e82b73a043f596470cd0ac0ed.zip
system_core-fae77740c29b732e82b73a043f596470cd0ac0ed.tar.gz
system_core-fae77740c29b732e82b73a043f596470cd0ac0ed.tar.bz2
am f65d9756: Merge "Move away from gr_surface."
* commit 'f65d97567c0d857458a1978085af4518750f51b6': Move away from gr_surface.
-rw-r--r--healthd/healthd_mode_charger.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/healthd/healthd_mode_charger.cpp b/healthd/healthd_mode_charger.cpp
index 9ed5944..78f8403 100644
--- a/healthd/healthd_mode_charger.cpp
+++ b/healthd/healthd_mode_charger.cpp
@@ -88,7 +88,7 @@ struct frame {
int min_capacity;
bool level_only;
- gr_surface surface;
+ GRSurface* surface;
};
struct animation {
@@ -115,7 +115,7 @@ struct charger {
struct key_state keys[KEY_MAX + 1];
struct animation *batt_anim;
- gr_surface surf_unknown;
+ GRSurface* surf_unknown;
};
static struct frame batt_anim_frames[] = {
@@ -273,7 +273,7 @@ static void android_green(void)
}
/* returns the last y-offset of where the surface ends */
-static int draw_surface_centered(struct charger* /*charger*/, gr_surface surface)
+static int draw_surface_centered(struct charger* /*charger*/, GRSurface* surface)
{
int w;
int h;
@@ -681,7 +681,7 @@ void healthd_mode_charger_init(struct healthd_config* config)
charger->batt_anim = &battery_animation;
- gr_surface* scale_frames;
+ GRSurface** scale_frames;
int scale_count;
ret = res_create_multi_display_surface("charger/battery_scale", &scale_count, &scale_frames);
if (ret < 0) {