Merge "Add a priority constant in to the graphics HAL header"

This commit is contained in:
Mathias Agopian 2011-08-10 19:40:24 -07:00 committed by Android (Google) Code Review
commit 8968195b19
1 changed files with 14 additions and 0 deletions

View File

@ -19,6 +19,20 @@
__BEGIN_DECLS
/*
* If the HAL needs to create service threads to handle graphics related
* tasks, these threads need to run at HAL_PRIORITY_URGENT_DISPLAY priority
* if they can block the main rendering thread in any way.
*
* the priority of the current thread can be set with:
*
* #include <sys/resource.h>
* setpriority(PRIO_PROCESS, 0, HAL_PRIORITY_URGENT_DISPLAY);
*
*/
#define HAL_PRIORITY_URGENT_DISPLAY (-8)
/**
* pixel format definitions
*/