diff options
author | Mike Reed <reed@google.com> | 2017-04-17 17:05:48 -0400 |
---|---|---|
committer | Mike Reed <reed@google.com> | 2017-04-18 10:22:42 -0400 |
commit | 7c0ae0f58b9f258560088b670d3a4cb3ec5d832a (patch) | |
tree | dcbf7f79e0d6ad941c77cfc0e70299295678c76a /cmds/bootanimation/BootAnimation.cpp | |
parent | 8e3b1a63f9cd76a71ecbfc8c6a0c68b4cbecab90 (diff) |
bitmaps and pixelrefs no longer need lock/unlock
Test: covered by CtsGraphicsTestCases and hwui_unit_tests
Change-Id: I42a25961a2eb3755d2fd22a617aa21a24ec0994f
Diffstat (limited to 'cmds/bootanimation/BootAnimation.cpp')
-rw-r--r-- | cmds/bootanimation/BootAnimation.cpp | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/cmds/bootanimation/BootAnimation.cpp b/cmds/bootanimation/BootAnimation.cpp index 7394490fc8d4..4f772c379098 100644 --- a/cmds/bootanimation/BootAnimation.cpp +++ b/cmds/bootanimation/BootAnimation.cpp @@ -158,10 +158,6 @@ status_t BootAnimation::initTexture(Texture* texture, AssetManager& assets, asset->close(); delete asset; - // ensure we can call getPixels(). No need to call unlock, since the - // bitmap will go out of scope when we return from this method. - bitmap.lockPixels(); - const int w = bitmap.width(); const int h = bitmap.height(); const void* p = bitmap.getPixels(); @@ -216,10 +212,6 @@ status_t BootAnimation::initTexture(FileMap* map, int* width, int* height) // the packed resource can be released. delete map; - // ensure we can call getPixels(). No need to call unlock, since the - // bitmap will go out of scope when we return from this method. - bitmap.lockPixels(); - const int w = bitmap.width(); const int h = bitmap.height(); const void* p = bitmap.getPixels(); |