Android-cuttlefish cvd tool
graphics_flags.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2023 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#pragma once
17
18#include <string>
19
21#include "cuttlefish/host/graphics_detector/graphics_detector.pb.h"
23#ifndef __APPLE__
26#endif
29
30namespace cuttlefish {
31
32gfxstream::proto::GraphicsAvailability
34
35Result<GpuMode> SelectGpuMode(
36 GpuMode requested_gpu_mode, VmmMode vmm, const GuestConfig& guest_config,
37 const std::string& gpu_context_types,
38 const gfxstream::proto::GraphicsAvailability& graphics_availability);
39
40#ifndef __APPLE__
41
52};
53
55 GpuMode gpu_mode, const std::string& gpu_vhost_user_mode, VmmMode vmm_mode,
56 const ::gfxstream::proto::GraphicsAvailability& graphics_availability,
57 const GuestConfig& guest_config, const std::string& guest_hwui_renderer,
58 const std::string& guest_renderer_preload,
59 const std::string& gpu_renderer_features);
60
61#endif
62
63} // namespace cuttlefish
Definition: alloc_driver.h:21
Result< GpuMode > SelectGpuMode(const GpuMode requested_gpu_mode, VmmMode vmm, const GuestConfig &guest_config, const std::string &gpu_context_types, const gfxstream::proto::GraphicsAvailability &graphics_availability)
Definition: graphics_flags.cc:871
GuestHwuiRenderer
Definition: guest_hwui_renderer.h:27
gfxstream::proto::GraphicsAvailability GetGraphicsAvailabilityWithSubprocessCheck()
Definition: graphics_flags.cc:816
VmmMode
Definition: vmm_mode.h:28
GuestRendererPreload
Definition: guest_renderer_preload.h:27
tl::expected< T, StackTraceError< E > > Result
Definition: result_type.h:30
Result< GraphicsSettings > GetGraphicsSettings(const GpuMode gpu_mode, const std::string &gpu_vhost_user_mode, const VmmMode vmm_mode, const ::gfxstream::proto::GraphicsAvailability &graphics_availability, const GuestConfig &guest_config, const std::string &guest_hwui_renderer, const std::string &guest_renderer_preload, const std::string &gpu_renderer_features)
Definition: graphics_flags.cc:952
GpuMode
Definition: gpu_mode.h:28
Definition: graphics_flags.h:42
bool enable_gpu_vhost_user
Definition: graphics_flags.h:43
std::string angle_feature_overrides_disabled
Definition: graphics_flags.h:47
std::string gfxstream_transport
Definition: graphics_flags.h:50
bool enable_gpu_external_blob
Definition: graphics_flags.h:44
std::string angle_feature_overrides_enabled
Definition: graphics_flags.h:46
bool enable_gpu_system_blob
Definition: graphics_flags.h:45
std::string gfxstream_features_string
Definition: graphics_flags.h:51
GuestRendererPreload guest_renderer_preload
Definition: graphics_flags.h:49
GuestHwuiRenderer hwui_renderer
Definition: graphics_flags.h:48
Definition: guest_config.h:36