| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef UI_OZONE_PLATFORM_DRM_GPU_HARDWARE_DISPLAY_CONTROLLER_H_ | 5 #ifndef UI_OZONE_PLATFORM_DRM_GPU_HARDWARE_DISPLAY_CONTROLLER_H_ |
| 6 #define UI_OZONE_PLATFORM_DRM_GPU_HARDWARE_DISPLAY_CONTROLLER_H_ | 6 #define UI_OZONE_PLATFORM_DRM_GPU_HARDWARE_DISPLAY_CONTROLLER_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 #include <xf86drmMode.h> | 10 #include <xf86drmMode.h> |
| (...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 140 | 140 |
| 141 uint64_t GetTimeOfLastFlip() const; | 141 uint64_t GetTimeOfLastFlip() const; |
| 142 | 142 |
| 143 const std::vector<CrtcController*>& crtc_controllers() const { | 143 const std::vector<CrtcController*>& crtc_controllers() const { |
| 144 return crtc_controllers_.get(); | 144 return crtc_controllers_.get(); |
| 145 } | 145 } |
| 146 | 146 |
| 147 scoped_refptr<DrmDevice> GetAllocationDrmDevice() const; | 147 scoped_refptr<DrmDevice> GetAllocationDrmDevice() const; |
| 148 | 148 |
| 149 private: | 149 private: |
| 150 base::ScopedPtrHashMap<DrmDevice*, HardwareDisplayPlaneList> | 150 base::ScopedPtrHashMap<DrmDevice*, scoped_ptr<HardwareDisplayPlaneList>> |
| 151 owned_hardware_planes_; | 151 owned_hardware_planes_; |
| 152 | 152 |
| 153 // Stores the CRTC configuration. This is used to identify monitors and | 153 // Stores the CRTC configuration. This is used to identify monitors and |
| 154 // configure them. | 154 // configure them. |
| 155 ScopedVector<CrtcController> crtc_controllers_; | 155 ScopedVector<CrtcController> crtc_controllers_; |
| 156 | 156 |
| 157 // Location of the controller on the screen. | 157 // Location of the controller on the screen. |
| 158 gfx::Point origin_; | 158 gfx::Point origin_; |
| 159 | 159 |
| 160 // The mode used by the last modesetting operation. | 160 // The mode used by the last modesetting operation. |
| 161 drmModeModeInfo mode_; | 161 drmModeModeInfo mode_; |
| 162 | 162 |
| 163 bool is_disabled_; | 163 bool is_disabled_; |
| 164 | 164 |
| 165 DISALLOW_COPY_AND_ASSIGN(HardwareDisplayController); | 165 DISALLOW_COPY_AND_ASSIGN(HardwareDisplayController); |
| 166 }; | 166 }; |
| 167 | 167 |
| 168 } // namespace ui | 168 } // namespace ui |
| 169 | 169 |
| 170 #endif // UI_OZONE_PLATFORM_DRM_GPU_HARDWARE_DISPLAY_CONTROLLER_H_ | 170 #endif // UI_OZONE_PLATFORM_DRM_GPU_HARDWARE_DISPLAY_CONTROLLER_H_ |
| OLD | NEW |