• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright (C) 2020 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 #include <stdio.h>
17 
18 #include "host-common/GraphicsAgentFactory.h"
19 
20 namespace android {
21 namespace emulation {
22 
23 // Creates a series of GfxStream Agents that can be used by GfxStream backend.
24 //
25 // Most of the agents are not defined, add your agents here if you need
26 // access to additional agents.
27 #ifndef GFXSTREAM_MESON_BUILD
28 class GfxStreamGraphicsAgentFactory : public GraphicsAgentFactory {
29 public:
30     const QAndroidVmOperations* android_get_QAndroidVmOperations()
31             const override;
32 
33     const QAndroidMultiDisplayAgent*
34     android_get_QAndroidMultiDisplayAgent() const override;
35 
36     const QAndroidEmulatorWindowAgent*
37     android_get_QAndroidEmulatorWindowAgent() const override;
38 };
39 #endif
40 
41 }  // namespace emulation
42 }  // namespace android
43