diff options
author | 2018-06-21 09:09:56 -0700 | |
---|---|---|
committer | 2018-06-21 16:52:47 +0000 | |
commit | c110e7941e4e051ad9004412de7b419da8bcf270 (patch) | |
tree | f3f0bfab677b0581d237db540b19bb2e97d40338 /src/compute/skc/skc_types.h | |
parent | 867ce8fc8eef76e26b1e56be66badffc3d5ec3ae (diff) |
OpenGL interop is simplified when the cl_context is not created by SKC.
Added GEN9 HotSort kernels so the hs_cl_gen9 lib and hs_bench_cl app can be built.
Bug: skia:
Change-Id: I5b21d33499a6ec3524f39a51443981802b722c8b
Reviewed-on: https://skia-review.googlesource.com/136608
Commit-Queue: Allan MacKinnon <allanmac@google.com>
Reviewed-by: Mike Reed <reed@google.com>
Reviewed-by: Mike Klein <mtklein@google.com>
Diffstat (limited to 'src/compute/skc/skc_types.h')
-rw-r--r-- | src/compute/skc/skc_types.h | 73 |
1 files changed, 73 insertions, 0 deletions
diff --git a/src/compute/skc/skc_types.h b/src/compute/skc/skc_types.h new file mode 100644 index 0000000000..0dbcf182bf --- /dev/null +++ b/src/compute/skc/skc_types.h @@ -0,0 +1,73 @@ +/* + * Copyright 2018 Google Inc. + * + * Use of this source code is governed by a BSD-style license that can + * be found in the LICENSE file. + * + */ + +#ifndef SKC_ONCE_SKC_TYPES +#define SKC_ONCE_SKC_TYPES + +// +// +// + +#include <stdint.h> +#include <stdbool.h> + +// +// +// + +typedef struct skc_context * skc_context_t; +typedef struct skc_path_builder * skc_path_builder_t; +typedef struct skc_raster_builder * skc_raster_builder_t; + +typedef struct skc_composition * skc_composition_t; +typedef struct skc_styling * skc_styling_t; + +typedef struct skc_surface * skc_surface_t; + +typedef uint32_t skc_path_t; +typedef uint32_t skc_raster_t; + +typedef uint32_t skc_layer_id; +typedef uint32_t skc_group_id; + +typedef uint32_t skc_styling_cmd_t; + +typedef uint64_t skc_weakref_t; +typedef skc_weakref_t skc_transform_weakref_t; +typedef skc_weakref_t skc_raster_clip_weakref_t; + +#if 0 +typedef struct skc_interop * skc_interop_t; +typedef uint32_t skc_interop_surface_t; +#endif + +// +// +// + +#define SKC_PATH_INVALID UINT32_MAX +#define SKC_RASTER_INVALID UINT32_MAX +#define SKC_WEAKREF_INVALID UINT64_MAX + +// +// TRANSFORM LAYOUT: { sx shx tx shy sy ty w0 w1 } +// + +// +// RASTER CLIP LAYOUT: { x0, y0, x1, y1 } +// + +// +// +// + +#endif + +// +// +// |