chromium/third_party/harfbuzz-ng/src/src/hb-cff-interp-cs-common.hh

/*
 * Copyright © 2018 Adobe Inc.
 *
 *  This is part of HarfBuzz, a text shaping library.
 *
 * Permission is hereby granted, without written agreement and without
 * license or royalty fees, to use, copy, modify, and distribute this
 * software and its documentation for any purpose, provided that the
 * above copyright notice and the following two paragraphs appear in
 * all copies of this software.
 *
 * IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR
 * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
 * ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN
 * IF THE COPYRIGHT HOLDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
 * DAMAGE.
 *
 * THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING,
 * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
 * FITNESS FOR A PARTICULAR PURPOSE.  THE SOFTWARE PROVIDED HEREUNDER IS
 * ON AN "AS IS" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO
 * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
 *
 * Adobe Author(s): Michiharu Ariza
 */
#ifndef HB_CFF_INTERP_CS_COMMON_HH
#define HB_CFF_INTERP_CS_COMMON_HH

#include "hb.hh"
#include "hb-cff-interp-common.hh"

namespace CFF {

usingnamespaceOT;

enum cs_type_t {};

struct call_context_t
{};

/* call stack */
const unsigned int kMaxCallLimit =;
struct call_stack_t : cff_stack_t<call_context_t, kMaxCallLimit> {};

template <typename SUBRS>
struct biased_subrs_t
{};

struct point_t
{};

template <typename ARG, typename SUBRS>
struct cs_interp_env_t : interp_env_t<ARG>
{};

template <typename ENV, typename PARAM>
struct path_procs_null_t
{};

template <typename ARG, typename OPSET, typename ENV, typename PARAM, typename PATH=path_procs_null_t<ENV, PARAM>>
struct cs_opset_t : opset_t<ARG>
{
  static void process_op (op_code_t op, ENV &env, PARAM& param)
  {}

  static void process_hstem (op_code_t op, ENV &env, PARAM& param)
  {}

  static void process_vstem (op_code_t op, ENV &env, PARAM& param)
  {}

  static void process_hintmask (op_code_t op, ENV &env, PARAM& param)
  {}

  static void process_post_flex (op_code_t op, ENV &env, PARAM& param)
  {}

  static void check_width (op_code_t op, ENV &env, PARAM& param)
  {}

  static void process_post_move (op_code_t op, ENV &env, PARAM& param)
  {}

  static void process_post_path (op_code_t op, ENV &env, PARAM& param)
  {}

  static void flush_args_and_op (op_code_t op, ENV &env, PARAM& param)
  {}

  static void flush_args (ENV &env, PARAM& param)
  {}

  static void flush_op (op_code_t op, ENV &env, PARAM& param)
  {}

  static void flush_hintmask (op_code_t op, ENV &env, PARAM& param)
  {}

  static bool is_number_op (op_code_t op)
  {}

  protected:
  typedef opset_t<ARG>  SUPER;
};

template <typename PATH, typename ENV, typename PARAM>
struct path_procs_t
{};

template <typename ENV, typename OPSET, typename PARAM>
struct cs_interpreter_t : interpreter_t<ENV>
{};

} /* namespace CFF */

#endif /* HB_CFF_INTERP_CS_COMMON_HH */