== How Gralloc buffers are created and refcounted (non Mozilla-specific) ==
The android::GraphicBuffer class is refcounted and the undering 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>.