| OLD | NEW |
| 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> |
| 11 #include <set> |
| 11 #include <vector> | 12 #include <vector> |
| 12 | 13 |
| 13 #include "base/compiler_specific.h" | 14 #include "base/compiler_specific.h" |
| 14 #include "base/event_types.h" | 15 #include "base/event_types.h" |
| 15 #include "base/memory/scoped_ptr.h" | 16 #include "base/memory/scoped_ptr.h" |
| 16 #include "base/memory/scoped_vector.h" | 17 #include "base/memory/scoped_vector.h" |
| 17 #include "base/observer_list.h" | 18 #include "base/observer_list.h" |
| 18 #include "ui/display/display_export.h" | 19 #include "ui/display/display_export.h" |
| 19 #include "ui/display/types/native_display_delegate.h" | 20 #include "ui/display/types/native_display_delegate.h" |
| 20 #include "ui/gfx/geometry/point.h" | 21 #include "ui/gfx/geometry/point.h" |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 99 private: | 100 private: |
| 100 class HelperDelegateX11; | 101 class HelperDelegateX11; |
| 101 | 102 |
| 102 // Parses all the modes made available by |screen_|. | 103 // Parses all the modes made available by |screen_|. |
| 103 void InitModes(); | 104 void InitModes(); |
| 104 | 105 |
| 105 // Helper method for GetOutputs() that returns an OutputSnapshot struct based | 106 // Helper method for GetOutputs() that returns an OutputSnapshot struct based |
| 106 // on the passed-in information. | 107 // on the passed-in information. |
| 107 DisplaySnapshotX11* InitDisplaySnapshot(RROutput id, | 108 DisplaySnapshotX11* InitDisplaySnapshot(RROutput id, |
| 108 XRROutputInfo* info, | 109 XRROutputInfo* info, |
| 109 RRCrtc* last_used_crtc, | 110 std::set<RRCrtc>* last_used_crtcs, |
| 110 int index); | 111 int index); |
| 111 | 112 |
| 112 // Destroys unused CRTCs. | 113 // Destroys unused CRTCs. |
| 113 void DestroyUnusedCrtcs(); | 114 void DestroyUnusedCrtcs(); |
| 114 | 115 |
| 115 // Parks used CRTCs in a way which allows a framebuffer resize. This is faster | 116 // Parks used CRTCs in a way which allows a framebuffer resize. This is faster |
| 116 // than turning them off, resizing, then turning them back on. | 117 // than turning them off, resizing, then turning them back on. |
| 117 // |min_screen_size| represent the smallest size between the current | 118 // |min_screen_size| represent the smallest size between the current |
| 118 // framebuffer size and the requested framebuffer size. | 119 // framebuffer size and the requested framebuffer size. |
| 119 void UpdateCrtcsForNewFramebuffer(const gfx::Size& min_screen_size); | 120 void UpdateCrtcsForNewFramebuffer(const gfx::Size& min_screen_size); |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 155 | 156 |
| 156 // A background color used during boot time + multi displays. | 157 // A background color used during boot time + multi displays. |
| 157 uint32_t background_color_argb_; | 158 uint32_t background_color_argb_; |
| 158 | 159 |
| 159 DISALLOW_COPY_AND_ASSIGN(NativeDisplayDelegateX11); | 160 DISALLOW_COPY_AND_ASSIGN(NativeDisplayDelegateX11); |
| 160 }; | 161 }; |
| 161 | 162 |
| 162 } // namespace ui | 163 } // namespace ui |
| 163 | 164 |
| 164 #endif // UI_DISPLAY_CHROMEOS_X11_NATIVE_DISPLAY_DELEGATE_X11_H_ | 165 #endif // UI_DISPLAY_CHROMEOS_X11_NATIVE_DISPLAY_DELEGATE_X11_H_ |
| OLD | NEW |