Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(919)

Side by Side Diff: ui/ozone/platform/drm/gpu/hardware_display_controller.h

Issue 1438343002: Remove deprecated ScopedVector usage from ui/ozone and ui/events/ozone (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove HDCI stuff Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « ui/ozone/platform/drm/gpu/drm_window.cc ('k') | ui/ozone/platform/drm/gpu/hardware_display_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698