Lines Matching defs:Display
53 class Display;
56 typedef std::function<void(std::shared_ptr<Display>, Connection)>
58 typedef std::function<void(std::shared_ptr<Display>)> RefreshCallback;
59 typedef std::function<void(std::shared_ptr<Display>, nsecs_t)> VsyncCallback;
72 friend class HWC2::Display;
86 std::shared_ptr<Display>* outDisplay);
94 void callHotplug(std::shared_ptr<Display> display, Connection connected);
95 void callRefresh(std::shared_ptr<Display> display);
96 void callVsync(std::shared_ptr<Display> display, nsecs_t timestamp);
100 // This will create a Display if one is not found, but it will not be marked
101 // as connected. This Display may be null if the display has been torn down
103 std::shared_ptr<Display> getDisplayById(hwc2_display_t id);
115 // For use by Display
123 std::unordered_map<hwc2_display_t, std::weak_ptr<Display>> mDisplays;
126 std::vector<std::pair<std::shared_ptr<Display>, Connection>>
129 std::vector<std::shared_ptr<Display>> mPendingRefreshes;
131 std::vector<std::pair<std::shared_ptr<Display>, nsecs_t>> mPendingVsyncs;
134 // Convenience C++ class to access hwc2_device_t Display functions directly.
135 class Display : public std::enable_shared_from_this<Display>
138 Display(Device& device, hwc2_display_t id);
139 ~Display();
150 Builder(Display& display, hwc2_config_t id);
201 Config(Display& display, hwc2_config_t id);
203 Display& mDisplay;
268 // Other Display methods
305 Layer(const std::shared_ptr<Display>& display, hwc2_layer_t id);
337 std::weak_ptr<Display> mDisplay;