Platform/GFX/Gralloc: Difference between revisions

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 undering 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  
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>.
Confirmed users
753

edits