Improve performance for sp<> on stack

Combine default constructor for sp<> immediately followed by assignment,
as the reference-counting is relatively slow.  Also return sp<> directly
rather than via local variable, for the same reason.

Change-Id: If55931f1e407994f6591ddde41b53db72fb4fc40
1 file changed
tree: c00827de791ec3f221faab8effbe822a619a7927
  1. camera/
  2. cmds/
  3. drm/
  4. include/
  5. media/
  6. services/