• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2 * Copyright (C) 2016 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16 
17 #pragma once
18 
19 #include "render_api_types.h"
20 
21 #ifdef _MSC_VER
22 # ifdef BUILDING_EMUGL_COMMON_SHARED
23 #  define EMUGL_COMMON_API __declspec(dllexport)
24 # else
25 #  define EMUGL_COMMON_API __declspec(dllimport)
26 #endif
27 #else
28 # define EMUGL_COMMON_API
29 #endif
30 
31 namespace emugl {
32 
33 EMUGL_COMMON_API extern emugl_sync_create_timeline_t emugl_sync_create_timeline;
34 EMUGL_COMMON_API extern emugl_sync_create_fence_t emugl_sync_create_fence;
35 EMUGL_COMMON_API extern emugl_sync_timeline_inc_t emugl_sync_timeline_inc;
36 EMUGL_COMMON_API extern emugl_sync_destroy_timeline_t emugl_sync_destroy_timeline;
37 EMUGL_COMMON_API extern emugl_sync_register_trigger_wait_t emugl_sync_register_trigger_wait;
38 EMUGL_COMMON_API extern emugl_sync_device_exists_t emugl_sync_device_exists;
39 
40 EMUGL_COMMON_API void set_emugl_sync_create_timeline(emugl_sync_create_timeline_t);
41 EMUGL_COMMON_API void set_emugl_sync_create_fence(emugl_sync_create_fence_t);
42 EMUGL_COMMON_API void set_emugl_sync_timeline_inc(emugl_sync_timeline_inc_t);
43 EMUGL_COMMON_API void set_emugl_sync_destroy_timeline(emugl_sync_destroy_timeline_t);
44 EMUGL_COMMON_API void set_emugl_sync_register_trigger_wait(emugl_sync_register_trigger_wait_t trigger_fn);
45 EMUGL_COMMON_API void set_emugl_sync_device_exists(emugl_sync_device_exists_t);
46 
47 }  // namespace emugl
48