Confirmed users
753
edits
| Line 17: | Line 17: | ||
== How Gralloc buffers are created and refcounted (non Mozilla-specific) == | == How Gralloc buffers are created and refcounted (non Mozilla-specific) == | ||
The android::GraphicBuffer class is refcounted and the | The android::GraphicBuffer class is refcounted and the underlying buffer handle is refcounted, too. It is meant to be used with Android Strong Pointers (android::sp). That's why you'll see a lot of | ||
android::sp<android::GraphicBuffer>. | android::sp<android::GraphicBuffer>. | ||