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

Unified Diff: ui/display/chromeos/x11/native_display_delegate_x11.h

Issue 312353002: Split disabling of unused displays from parking used ones (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 6 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/display/chromeos/x11/native_display_delegate_x11.h
diff --git a/ui/display/chromeos/x11/native_display_delegate_x11.h b/ui/display/chromeos/x11/native_display_delegate_x11.h
index a276495595c649a0fc3ea6351117b97f828206db..12bed59505851dea3107d85a1d4fe4434c072afd 100644
--- a/ui/display/chromeos/x11/native_display_delegate_x11.h
+++ b/ui/display/chromeos/x11/native_display_delegate_x11.h
@@ -108,10 +108,14 @@ class DISPLAY_EXPORT NativeDisplayDelegateX11 : public NativeDisplayDelegate {
RRCrtc* last_used_crtc,
int index);
- // Destroys unused CRTCs and parks used CRTCs in a way which allows a
- // framebuffer resize. This is faster than turning them off, resizing,
- // then turning them back on.
- void DestroyUnusedCrtcs(const gfx::Size& new_size);
+ // Destroys unused CRTCs.
+ void DestroyUnusedCrtcs();
+
+ // Parks used CRTCs in a way which allows a framebuffer resize. This is faster
+ // than turning them off, resizing, then turning them back on.
+ // |min_screen_size| represent the smallest size between the current
+ // framebuffer size and the requested framebuffer size.
+ void UpdateCrtcsForNewFramebuffer(const gfx::Size& min_screen_size);
bool ConfigureCrtc(RRCrtc crtc, RRMode mode, RROutput output, int x, int y);

Powered by Google App Engine
This is Rietveld 408576698