| 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 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 142 bool HasCrtc(const scoped_refptr<DrmDevice>& drm, uint32_t crtc) const; | 142 bool HasCrtc(const scoped_refptr<DrmDevice>& drm, uint32_t crtc) const; |
| 143 bool IsMirrored() const; | 143 bool IsMirrored() const; |
| 144 bool IsDisabled() const; | 144 bool IsDisabled() const; |
| 145 gfx::Size GetModeSize() const; | 145 gfx::Size GetModeSize() const; |
| 146 | 146 |
| 147 gfx::Point origin() const { return origin_; } | 147 gfx::Point origin() const { return origin_; } |
| 148 void set_origin(const gfx::Point& origin) { origin_ = origin; } | 148 void set_origin(const gfx::Point& origin) { origin_ = origin; } |
| 149 | 149 |
| 150 uint64_t GetTimeOfLastFlip() const; | 150 uint64_t GetTimeOfLastFlip() const; |
| 151 | 151 |
| 152 const std::vector<CrtcController*>& crtc_controllers() const { | 152 const std::vector<scoped_ptr<CrtcController>>& crtc_controllers() const { |
| 153 return crtc_controllers_.get(); | 153 return crtc_controllers_; |
| 154 } | 154 } |
| 155 | 155 |
| 156 scoped_refptr<DrmDevice> GetAllocationDrmDevice() const; | 156 scoped_refptr<DrmDevice> GetAllocationDrmDevice() const; |
| 157 | 157 |
| 158 private: | 158 private: |
| 159 bool ActualSchedulePageFlip(const OverlayPlaneList& plane_list, | 159 bool ActualSchedulePageFlip(const OverlayPlaneList& plane_list, |
| 160 bool test_only, | 160 bool test_only, |
| 161 const PageFlipCallback& callback); | 161 const PageFlipCallback& callback); |
| 162 | 162 |
| 163 base::ScopedPtrHashMap<DrmDevice*, scoped_ptr<HardwareDisplayPlaneList>> | 163 base::ScopedPtrHashMap<DrmDevice*, scoped_ptr<HardwareDisplayPlaneList>> |
| 164 owned_hardware_planes_; | 164 owned_hardware_planes_; |
| 165 | 165 |
| 166 // Stores the CRTC configuration. This is used to identify monitors and | 166 // Stores the CRTC configuration. This is used to identify monitors and |
| 167 // configure them. | 167 // configure them. |
| 168 ScopedVector<CrtcController> crtc_controllers_; | 168 std::vector<scoped_ptr<CrtcController>> crtc_controllers_; |
| 169 | 169 |
| 170 // Location of the controller on the screen. | 170 // Location of the controller on the screen. |
| 171 gfx::Point origin_; | 171 gfx::Point origin_; |
| 172 | 172 |
| 173 bool is_disabled_; | 173 bool is_disabled_; |
| 174 | 174 |
| 175 DISALLOW_COPY_AND_ASSIGN(HardwareDisplayController); | 175 DISALLOW_COPY_AND_ASSIGN(HardwareDisplayController); |
| 176 }; | 176 }; |
| 177 | 177 |
| 178 } // namespace ui | 178 } // namespace ui |
| 179 | 179 |
| 180 #endif // UI_OZONE_PLATFORM_DRM_GPU_HARDWARE_DISPLAY_CONTROLLER_H_ | 180 #endif // UI_OZONE_PLATFORM_DRM_GPU_HARDWARE_DISPLAY_CONTROLLER_H_ |
| OLD | NEW |