summaryrefslogtreecommitdiff
path: root/cmds/bootanimation/BootAnimation.cpp
diff options
context:
space:
mode:
author Rob Carr <racarr@google.com> 2017-10-12 22:08:03 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2017-10-12 22:08:03 +0000
commit53966760d7271fd975a73ffa2d2a4d54cfe3e377 (patch)
treeb713cac2bbd6caa1ee0896eed7b2fdece48b2fbd /cmds/bootanimation/BootAnimation.cpp
parent60d548786e5521d819c9eadeaa34fcffe36c45ff (diff)
parente13b58e15b561b1b85788800e0c3af48fa80463e (diff)
Merge "Use new SurfaceFlinger transaction API."
Diffstat (limited to 'cmds/bootanimation/BootAnimation.cpp')
-rw-r--r--cmds/bootanimation/BootAnimation.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/cmds/bootanimation/BootAnimation.cpp b/cmds/bootanimation/BootAnimation.cpp
index 6526123aba13..d1af71d8886e 100644
--- a/cmds/bootanimation/BootAnimation.cpp
+++ b/cmds/bootanimation/BootAnimation.cpp
@@ -260,9 +260,9 @@ status_t BootAnimation::readyToRun() {
sp<SurfaceControl> control = session()->createSurface(String8("BootAnimation"),
dinfo.w, dinfo.h, PIXEL_FORMAT_RGB_565);
- SurfaceComposerClient::openGlobalTransaction();
- control->setLayer(0x40000000);
- SurfaceComposerClient::closeGlobalTransaction();
+ SurfaceComposerClient::Transaction t;
+ t.setLayer(control, 0x40000000)
+ .apply();
sp<Surface> s = control->getSurface();