OSDN Git Service

libgui: Change detachNextBuffer to return sp<GB>
authorDan Stoza <stoza@google.com>
Mon, 27 Apr 2015 18:06:01 +0000 (11:06 -0700)
committerDan Stoza <stoza@google.com>
Mon, 27 Apr 2015 18:45:58 +0000 (11:45 -0700)
commitd9c4971da2f2c4f980a748006bd40469c3332a13
tree8b8b09aa864be49e6d3783e0c528babede21a808
parent63a0f428230208b9f3601eb7c99a08100c6f3a0b
libgui: Change detachNextBuffer to return sp<GB>

Changes Surface::detachNextBuffer to return an sp<GraphicBuffer>
instead of an ANativeWindowBuffer* to ensure that reference counting
works correctly.

Bug: 20092217
Change-Id: I3979ea6121aaf14845f0554477b778770413581e
(cherry picked from commit 8b2daa3ca29492b181fb67840640d771c4a2b3ac)
include/gui/Surface.h
libs/gui/Surface.cpp