• Home
  • Raw
  • Download

Lines Matching refs:shape_plan

236   hb_shape_plan_t *shape_plan;  in hb_shape_plan_create2()  local
240 if (!(shape_plan = hb_object_create<hb_shape_plan_t> ())) in hb_shape_plan_create2()
246 shape_plan->face_unsafe = face; in hb_shape_plan_create2()
248 if (unlikely (!shape_plan->key.init (true, in hb_shape_plan_create2()
258 if (unlikely (!shape_plan->ot.init0 (face, &shape_plan->key))) in hb_shape_plan_create2()
262 return shape_plan; in hb_shape_plan_create2()
267 shape_plan->key.free (); in hb_shape_plan_create2()
269 free (shape_plan); in hb_shape_plan_create2()
300 hb_shape_plan_reference (hb_shape_plan_t *shape_plan) in hb_shape_plan_reference() argument
302 return hb_object_reference (shape_plan); in hb_shape_plan_reference()
316 hb_shape_plan_destroy (hb_shape_plan_t *shape_plan) in hb_shape_plan_destroy() argument
318 if (!hb_object_destroy (shape_plan)) return; in hb_shape_plan_destroy()
321 shape_plan->ot.fini (); in hb_shape_plan_destroy()
323 shape_plan->key.free (); in hb_shape_plan_destroy()
324 free (shape_plan); in hb_shape_plan_destroy()
342 hb_shape_plan_set_user_data (hb_shape_plan_t *shape_plan, in hb_shape_plan_set_user_data() argument
348 return hb_object_set_user_data (shape_plan, key, data, destroy, replace); in hb_shape_plan_set_user_data()
364 hb_shape_plan_get_user_data (hb_shape_plan_t *shape_plan, in hb_shape_plan_get_user_data() argument
367 return hb_object_get_user_data (shape_plan, key); in hb_shape_plan_get_user_data()
381 hb_shape_plan_get_shaper (hb_shape_plan_t *shape_plan) in hb_shape_plan_get_shaper() argument
383 return shape_plan->key.shaper_name; in hb_shape_plan_get_shaper()
388 _hb_shape_plan_execute_internal (hb_shape_plan_t *shape_plan, in _hb_shape_plan_execute_internal() argument
394 DEBUG_MSG_FUNC (SHAPE_PLAN, shape_plan, in _hb_shape_plan_execute_internal()
397 shape_plan->key.shaper_func, in _hb_shape_plan_execute_internal()
398 shape_plan->key.shaper_name); in _hb_shape_plan_execute_internal()
407 if (unlikely (hb_object_is_inert (shape_plan))) in _hb_shape_plan_execute_internal()
410 assert (shape_plan->face_unsafe == font->face); in _hb_shape_plan_execute_internal()
411 assert (hb_segment_properties_equal (&shape_plan->key.props, &buffer->props)); in _hb_shape_plan_execute_internal()
416 _hb_##shaper##_shape (shape_plan, font, buffer, features, num_features); \ in _hb_shape_plan_execute_internal()
422 else if (shape_plan->key.shaper_func == _hb_##shaper##_shape) \ in _hb_shape_plan_execute_internal()
447 hb_shape_plan_execute (hb_shape_plan_t *shape_plan, in hb_shape_plan_execute() argument
453 bool ret = _hb_shape_plan_execute_internal (shape_plan, font, buffer, in hb_shape_plan_execute()
548 if (node->shape_plan->key.equal (&key)) in hb_shape_plan_create_cached2()
550 DEBUG_MSG_FUNC (SHAPE_PLAN, node->shape_plan, "fulfilled from cache"); in hb_shape_plan_create_cached2()
551 return hb_shape_plan_reference (node->shape_plan); in hb_shape_plan_create_cached2()
555 hb_shape_plan_t *shape_plan = hb_shape_plan_create2 (face, props, in hb_shape_plan_create_cached2() local
561 return shape_plan; in hb_shape_plan_create_cached2()
565 return shape_plan; in hb_shape_plan_create_cached2()
567 node->shape_plan = shape_plan; in hb_shape_plan_create_cached2()
572 hb_shape_plan_destroy (shape_plan); in hb_shape_plan_create_cached2()
576 DEBUG_MSG_FUNC (SHAPE_PLAN, shape_plan, "inserted into cache"); in hb_shape_plan_create_cached2()
578 return hb_shape_plan_reference (shape_plan); in hb_shape_plan_create_cached2()