On 11月25日, 上午5時40分, Deva R <r.deva...@gmail.com> wrote:
> >Neither "sleep" nor "while loop" is good solution.
> >Is there any suggestion for this?
>
> how about waiting on a semaphore after issuing Copybit and signaling it once
> 2D-engine completes?
>

Waiting for semaphore will result in CPU scheduling.

I am studying gralloc_lock and I consider that it is called before the
surfaceflinger is going to depict on the corresponding PMEM buffer.
If this is true, I can wait for 2D engine finishing command queue in
the begaining of gralloc_lock.

Regards,
Colin

-- 
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: http://groups.google.com/group/android-porting

Reply via email to