2 // Copyright (c) 2016 Intel Corporation
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
8 // http://www.apache.org/licenses/LICENSE-2.0
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.
17 #ifndef PUBLIC_GPUDEVICE_H_
18 #define PUBLIC_GPUDEVICE_H_
25 #include "displaymanager.h"
26 #include "logicaldisplaymanager.h"
27 #include "nativedisplay.h"
29 namespace hwcomposer {
42 NativeDisplay* GetDisplay(uint32_t display);
44 NativeDisplay* GetVirtualDisplay();
46 void GetConnectedPhysicalDisplays(std::vector<NativeDisplay*>& displays);
48 std::vector<NativeDisplay*> GetAllDisplays();
50 void RegisterHotPlugEventCallback(
51 std::shared_ptr<DisplayHotPlugEventCallback> callback);
54 std::unique_ptr<DisplayManager> display_manager_;
55 std::vector<std::unique_ptr<LogicalDisplayManager>> logical_display_manager_;
56 std::vector<std::unique_ptr<NativeDisplay>> mosaic_displays_;
57 std::vector<NativeDisplay*> total_displays_;
61 } // namespace hwcomposer
62 #endif // PUBLIC_GPUDEVICE_H_