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

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

Issue 1279703004: Ozone: HDC should only keep track of planes owned by it’s crtc controllers (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix comments Created 5 years, 4 months 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 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 133
134 bool UnsetCursor(); 134 bool UnsetCursor();
135 135
136 // Moves the hardware cursor to |location|. 136 // Moves the hardware cursor to |location|.
137 bool MoveCursor(const gfx::Point& location); 137 bool MoveCursor(const gfx::Point& location);
138 138
139 void AddCrtc(scoped_ptr<CrtcController> controller); 139 void AddCrtc(scoped_ptr<CrtcController> controller);
140 scoped_ptr<CrtcController> RemoveCrtc(const scoped_refptr<DrmDevice>& drm, 140 scoped_ptr<CrtcController> RemoveCrtc(const scoped_refptr<DrmDevice>& drm,
141 uint32_t crtc); 141 uint32_t crtc);
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 HasPlane(const scoped_refptr<DrmDevice>& drm,
144 uint32_t plane_id,
145 uint32_t crtc) const;
143 bool IsMirrored() const; 146 bool IsMirrored() const;
144 bool IsDisabled() const; 147 bool IsDisabled() const;
145 gfx::Size GetModeSize() const; 148 gfx::Size GetModeSize() const;
146 149
147 gfx::Point origin() const { return origin_; } 150 gfx::Point origin() const { return origin_; }
148 void set_origin(const gfx::Point& origin) { origin_ = origin; } 151 void set_origin(const gfx::Point& origin) { origin_ = origin; }
149 152
150 const drmModeModeInfo& get_mode() const { return mode_; }; 153 const drmModeModeInfo& get_mode() const { return mode_; };
151 154
152 uint64_t GetTimeOfLastFlip() const; 155 uint64_t GetTimeOfLastFlip() const;
(...skipping 19 matching lines...) Expand all
172 drmModeModeInfo mode_; 175 drmModeModeInfo mode_;
173 176
174 bool is_disabled_; 177 bool is_disabled_;
175 178
176 DISALLOW_COPY_AND_ASSIGN(HardwareDisplayController); 179 DISALLOW_COPY_AND_ASSIGN(HardwareDisplayController);
177 }; 180 };
178 181
179 } // namespace ui 182 } // namespace ui
180 183
181 #endif // UI_OZONE_PLATFORM_DRM_GPU_HARDWARE_DISPLAY_CONTROLLER_H_ 184 #endif // UI_OZONE_PLATFORM_DRM_GPU_HARDWARE_DISPLAY_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698