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

Unified Diff: ui/ozone/platform/drm/gpu/hardware_display_controller.h

Issue 1338843002: [Ozone-DRM] Use CRTC's mode when configuring it for mirror mode (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@fix-scanout3
Patch Set: Removed get_mode() from HDC per dbehr@'s comment Created 5 years, 3 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 side-by-side diff with in-line comments
Download patch
Index: ui/ozone/platform/drm/gpu/hardware_display_controller.h
diff --git a/ui/ozone/platform/drm/gpu/hardware_display_controller.h b/ui/ozone/platform/drm/gpu/hardware_display_controller.h
index 3772c35302fded3605564bbd3e5acc5bd312e819..830a357ce59b6be0d9d6c983fcb74b4ccf004fc1 100644
--- a/ui/ozone/platform/drm/gpu/hardware_display_controller.h
+++ b/ui/ozone/platform/drm/gpu/hardware_display_controller.h
@@ -98,6 +98,9 @@ class OZONE_EXPORT HardwareDisplayController {
// framebuffer for |primary| with |mode|.
bool Modeset(const OverlayPlane& primary, drmModeModeInfo mode);
+ // Performs a CRTC configuration re-using the modes from the CRTCs.
+ bool Enable(const OverlayPlane& primary);
+
// Disables the CRTC.
void Disable();
@@ -147,8 +150,6 @@ class OZONE_EXPORT HardwareDisplayController {
gfx::Point origin() const { return origin_; }
void set_origin(const gfx::Point& origin) { origin_ = origin; }
- const drmModeModeInfo& get_mode() const { return mode_; };
-
uint64_t GetTimeOfLastFlip() const;
const std::vector<CrtcController*>& crtc_controllers() const {
@@ -168,9 +169,6 @@ class OZONE_EXPORT HardwareDisplayController {
// Location of the controller on the screen.
gfx::Point origin_;
- // The mode used by the last modesetting operation.
- drmModeModeInfo mode_;
-
bool is_disabled_;
DISALLOW_COPY_AND_ASSIGN(HardwareDisplayController);
« no previous file with comments | « ui/ozone/platform/drm/gpu/drm_vsync_provider.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