1 /* 2 * Copyright 2017 Google Inc. 3 * 4 * Use of this source code is governed by a BSD-style license that can 5 * be found in the LICENSE file. 6 * 7 */ 8 9 #pragma once 10 11 // 12 // 13 // 14 15 #include "skc.h" 16 #include "types.h" 17 18 // 19 // 20 // 21 22 struct skc_composition 23 { 24 struct skc_context * context; 25 struct skc_composition_impl * impl; 26 27 // 28 // FIXME -- this collection of pfn's isn't complete 29 // 30 skc_err (* place )(struct skc_composition_impl * const impl, 31 skc_raster_t const * rasters, 32 skc_layer_id const * layer_ids, 33 skc_float const * txs, 34 skc_float const * tys, 35 skc_uint count); 36 37 void (* unseal )(struct skc_composition_impl * const impl, skc_bool const reset); 38 void (* seal )(struct skc_composition_impl * const impl); 39 void (* bounds )(struct skc_composition_impl * const impl, skc_int bounds[4]); 40 void (* release)(struct skc_composition_impl * const impl); 41 42 skc_int ref_count; 43 }; 44 45 // 46 // 47 // 48