diff options
author | John Reck <jreck@google.com> | 2015-05-07 10:49:55 -0700 |
---|---|---|
committer | John Reck <jreck@google.com> | 2015-05-07 11:06:46 -0700 |
commit | a039182d6157bc0487df4ad8e373685c9dd7d662 (patch) | |
tree | 5646c6fe082f32147659a939f0aa74e232a3caca /services | |
parent | b59642bf49e8703ebd88532f06628ef5a7d8b006 (diff) | |
download | frameworks_base-a039182d6157bc0487df4ad8e373685c9dd7d662.zip frameworks_base-a039182d6157bc0487df4ad8e373685c9dd7d662.tar.gz frameworks_base-a039182d6157bc0487df4ad8e373685c9dd7d662.tar.bz2 |
Delete a bunch of dead code
Rotation wasn't supported, so just nuke all the code
around it. Fixes some unused field warnings
Change-Id: Ic33d56ed3b42e3261bddc5007c5a029831254f83
Diffstat (limited to 'services')
-rw-r--r-- | services/core/java/com/android/server/AssetAtlasService.java | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/services/core/java/com/android/server/AssetAtlasService.java b/services/core/java/com/android/server/AssetAtlasService.java index 26f4232..ebc810f 100644 --- a/services/core/java/com/android/server/AssetAtlasService.java +++ b/services/core/java/com/android/server/AssetAtlasService.java @@ -119,7 +119,6 @@ public class AssetAtlasService extends IAssetAtlas.Stub { // long0: SkBitmap*, the native bitmap object // long1: x position // long2: y position - // long3: rotated, 1 if the bitmap must be rotated, 0 otherwise private long[] mAtlasMap; /** @@ -236,7 +235,7 @@ public class AssetAtlasService extends IAssetAtlas.Stub { /** * Renders a list of bitmaps into the atlas. The position of each bitmap * was decided by the packing algorithm and will be honored by this - * method. If need be this method will also rotate bitmaps. + * method. * * @param buffer The buffer to render the atlas entries into * @param atlas The atlas to pack the bitmaps into @@ -280,16 +279,11 @@ public class AssetAtlasService extends IAssetAtlas.Stub { canvas.save(); canvas.translate(entry.x, entry.y); - if (entry.rotated) { - canvas.translate(bitmap.getHeight(), 0.0f); - canvas.rotate(90.0f); - } canvas.drawBitmap(bitmap, 0.0f, 0.0f, null); canvas.restore(); atlasMap[mapIndex++] = bitmap.refSkPixelRef(); atlasMap[mapIndex++] = entry.x; atlasMap[mapIndex++] = entry.y; - atlasMap[mapIndex++] = entry.rotated ? 1 : 0; } } |