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

Side by Side Diff: ui/display/chromeos/x11/native_display_delegate_x11.h

Issue 253513002: disable crtcs bigger than new screen size during mode switch (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 8 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_DISPLAY_CHROMEOS_X11_NATIVE_DISPLAY_DELEGATE_X11_H_ 5 #ifndef UI_DISPLAY_CHROMEOS_X11_NATIVE_DISPLAY_DELEGATE_X11_H_
6 #define UI_DISPLAY_CHROMEOS_X11_NATIVE_DISPLAY_DELEGATE_X11_H_ 6 #define UI_DISPLAY_CHROMEOS_X11_NATIVE_DISPLAY_DELEGATE_X11_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 // Helper method for GetOutputs() that returns an OutputSnapshot struct based 104 // Helper method for GetOutputs() that returns an OutputSnapshot struct based
105 // on the passed-in information. 105 // on the passed-in information.
106 DisplaySnapshotX11* InitDisplaySnapshot(RROutput id, 106 DisplaySnapshotX11* InitDisplaySnapshot(RROutput id,
107 XRROutputInfo* info, 107 XRROutputInfo* info,
108 RRCrtc* last_used_crtc, 108 RRCrtc* last_used_crtc,
109 int index); 109 int index);
110 110
111 // Destroys unused CRTCs and parks used CRTCs in a way which allows a 111 // Destroys unused CRTCs and parks used CRTCs in a way which allows a
112 // framebuffer resize. This is faster than turning them off, resizing, 112 // framebuffer resize. This is faster than turning them off, resizing,
113 // then turning them back on. 113 // then turning them back on.
114 void DestroyUnusedCrtcs(); 114 void DestroyUnusedCrtcs(const gfx::Size& new_size);
115 115
116 bool ConfigureCrtc(RRCrtc crtc, RRMode mode, RROutput output, int x, int y); 116 bool ConfigureCrtc(RRCrtc crtc, RRMode mode, RROutput output, int x, int y);
117 117
118 // Returns whether |id| is configured to preserve aspect when scaling. 118 // Returns whether |id| is configured to preserve aspect when scaling.
119 bool IsOutputAspectPreservingScaling(RROutput id); 119 bool IsOutputAspectPreservingScaling(RROutput id);
120 120
121 // Creates the gamma ramp for |new_profile|, or NULL if it doesn't exist. 121 // Creates the gamma ramp for |new_profile|, or NULL if it doesn't exist.
122 // The caller should take the ownership. 122 // The caller should take the ownership.
123 XRRCrtcGamma* CreateGammaRampForProfile( 123 XRRCrtcGamma* CreateGammaRampForProfile(
124 const DisplaySnapshotX11& x11_output, 124 const DisplaySnapshotX11& x11_output,
(...skipping 28 matching lines...) Expand all
153 153
154 // A background color used during boot time + multi displays. 154 // A background color used during boot time + multi displays.
155 uint32_t background_color_argb_; 155 uint32_t background_color_argb_;
156 156
157 DISALLOW_COPY_AND_ASSIGN(NativeDisplayDelegateX11); 157 DISALLOW_COPY_AND_ASSIGN(NativeDisplayDelegateX11);
158 }; 158 };
159 159
160 } // namespace ui 160 } // namespace ui
161 161
162 #endif // UI_DISPLAY_CHROMEOS_X11_NATIVE_DISPLAY_DELEGATE_X11_H_ 162 #endif // UI_DISPLAY_CHROMEOS_X11_NATIVE_DISPLAY_DELEGATE_X11_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698