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:16:15 +0000 (11:16 -0700)
commit745ac038b986d826a767ddc891a224b59165e9fb
tree2fb219e0bd8bca39a2fcfc99c661769cc770580c
parentbec3de4ac527f8df1b3fd1b3d0ee2feaa633646a
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
include/gui/Surface.h
libs/gui/Surface.cpp