[shape-plan] Better debug messages
This commit is contained in:
parent
e956c65bf7
commit
dc9aba6fc5
|
@ -115,8 +115,9 @@ hb_shape_plan_create (hb_face_t *face,
|
||||||
unsigned int num_user_features,
|
unsigned int num_user_features,
|
||||||
const char * const *shaper_list)
|
const char * const *shaper_list)
|
||||||
{
|
{
|
||||||
DEBUG_MSG_FUNC (SHAPE_PLAN, face,
|
DEBUG_MSG_FUNC (SHAPE_PLAN, NULL,
|
||||||
"num_features=%d shaper_list=%p",
|
"face=%p num_features=%d shaper_list=%p",
|
||||||
|
face,
|
||||||
num_user_features,
|
num_user_features,
|
||||||
shaper_list);
|
shaper_list);
|
||||||
|
|
||||||
|
@ -404,8 +405,9 @@ hb_shape_plan_create_cached (hb_face_t *face,
|
||||||
unsigned int num_user_features,
|
unsigned int num_user_features,
|
||||||
const char * const *shaper_list)
|
const char * const *shaper_list)
|
||||||
{
|
{
|
||||||
DEBUG_MSG_FUNC (SHAPE_PLAN, face,
|
DEBUG_MSG_FUNC (SHAPE_PLAN, NULL,
|
||||||
"num_user_features=%d shaper_list=%p",
|
"face=%p num_features=%d shaper_list=%p",
|
||||||
|
face,
|
||||||
num_user_features,
|
num_user_features,
|
||||||
shaper_list);
|
shaper_list);
|
||||||
|
|
||||||
|
@ -442,7 +444,10 @@ retry:
|
||||||
hb_face_t::plan_node_t *cached_plan_nodes = (hb_face_t::plan_node_t *) hb_atomic_ptr_get (&face->shape_plans);
|
hb_face_t::plan_node_t *cached_plan_nodes = (hb_face_t::plan_node_t *) hb_atomic_ptr_get (&face->shape_plans);
|
||||||
for (hb_face_t::plan_node_t *node = cached_plan_nodes; node; node = node->next)
|
for (hb_face_t::plan_node_t *node = cached_plan_nodes; node; node = node->next)
|
||||||
if (hb_shape_plan_matches (node->shape_plan, &proposal))
|
if (hb_shape_plan_matches (node->shape_plan, &proposal))
|
||||||
|
{
|
||||||
|
DEBUG_MSG_FUNC (SHAPE_PLAN, node->shape_plan, "fulfilled from cache");
|
||||||
return hb_shape_plan_reference (node->shape_plan);
|
return hb_shape_plan_reference (node->shape_plan);
|
||||||
|
}
|
||||||
|
|
||||||
/* Not found. */
|
/* Not found. */
|
||||||
|
|
||||||
|
@ -465,6 +470,7 @@ retry:
|
||||||
free (node);
|
free (node);
|
||||||
goto retry;
|
goto retry;
|
||||||
}
|
}
|
||||||
|
DEBUG_MSG_FUNC (SHAPE_PLAN, shape_plan, "inserted into cache");
|
||||||
|
|
||||||
return hb_shape_plan_reference (shape_plan);
|
return hb_shape_plan_reference (shape_plan);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue