• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright (C) 2016 The Android Open Source Project
2 //
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
6 //
7 // http://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
14 #pragma once
15 
16 // Interface between android-emu non-base libraries and emugl
17 
18 #include "host-common/GoldfishDma.h"
19 #include "host-common/goldfish_sync.h"
20 #include "host-common/FeatureControl.h"
21 #include "host-common/logging.h"
22 
23 // Feature control
24 typedef bool (*emugl_feature_is_enabled_t)(android::featurecontrol::Feature feature);
25 
26 typedef void (*gfxstream_logger_internal_t)(char severity, const char* file, unsigned int line,
27               int64_t timestamp_us, const char* message);
28 
29 #ifdef CONFIG_AEMU
30 using emugl_logger_t = gfxstream_logger_t;
31 using emugl_logger_struct = gfxstream_logger_t;
32 #else
33 using emugl_logger_t = gfxstream_logger_internal_t;
34 using emugl_logger_struct = gfxstream_logger_internal_t;
35 #endif
36