Confirmed users
51
edits
Vincentlin78 (talk | contribs) |
Vincentlin78 (talk | contribs) |
||
Line 49: | Line 49: | ||
Over to the compositor side: | Over to the compositor side: | ||
* The message is received and this comes in as a call to PLayerTransactionParent:: | * The message is received and this comes in as a call to PLayerTransactionParent::AllocPGrallocBufferParent, implemented in LayerTransactionParent.cpp. | ||
* This calls GrallocBufferActor::Create(...), which actually creates the GraphicBuffer* and a GrallocBufferActor* (The GrallocBufferActor contains a sp<GraphicBuffer> that references the newly-created GraphicBuffer*). | * This calls GrallocBufferActor::Create(...), which actually creates the GraphicBuffer* and a GrallocBufferActor* (The GrallocBufferActor contains a sp<GraphicBuffer> that references the newly-created GraphicBuffer*). | ||
* GrallocBufferActor::Create returns the GrallocBufferActor as a PGrallocBufferParent*, and the GraphicBuffer* as a MaybeMagicGrallocBufferHandle. | * GrallocBufferActor::Create returns the GrallocBufferActor as a PGrallocBufferParent*, and the GraphicBuffer* as a MaybeMagicGrallocBufferHandle. |