OSDN Git Service

Move a shared pointer that's going to die anyway.
authorGeorge Burgess IV <gbiv@google.com>
Thu, 18 Jan 2018 19:30:46 +0000 (11:30 -0800)
committerGeorge Burgess IV <gbiv@google.com>
Thu, 18 Jan 2018 19:33:07 +0000 (11:33 -0800)
commitb714acb99f6f267ae39285a51dbad4e23dd13e03
tree07f86cef40e5748e48183c65940ce8a129f5a544
parent8ed2c7f2674b83da26a7a6a7847d2edf43c53d1e
Move a shared pointer that's going to die anyway.

This saves us two atomic operations that a copy would cost us (inc +
dec), and hopefully makes some internal tooling -- which yet doesn't
model atomics well -- happy.

Bug: None
Test: Builds
Change-Id: Ic55c3db6af55f45eceaf30c1ee479e9ae70aabb4
core/jni/android/graphics/ImageDecoder.cpp