OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 CHROMEOS_DISPLAY_REAL_OUTPUT_CONFIGURATOR_DELEGATE_H_ | 5 #ifndef CHROMEOS_DISPLAY_REAL_OUTPUT_CONFIGURATOR_DELEGATE_H_ |
6 #define CHROMEOS_DISPLAY_REAL_OUTPUT_CONFIGURATOR_DELEGATE_H_ | 6 #define CHROMEOS_DISPLAY_REAL_OUTPUT_CONFIGURATOR_DELEGATE_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 bool* interlaced) OVERRIDE; | 45 bool* interlaced) OVERRIDE; |
46 virtual void ConfigureCrtc(OutputConfigurator::CrtcConfig* config) OVERRIDE; | 46 virtual void ConfigureCrtc(OutputConfigurator::CrtcConfig* config) OVERRIDE; |
47 virtual void CreateFrameBuffer( | 47 virtual void CreateFrameBuffer( |
48 int width, | 48 int width, |
49 int height, | 49 int height, |
50 OutputConfigurator::CrtcConfig* config1, | 50 OutputConfigurator::CrtcConfig* config1, |
51 OutputConfigurator::CrtcConfig* config2) OVERRIDE; | 51 OutputConfigurator::CrtcConfig* config2) OVERRIDE; |
52 virtual void ConfigureCTM( | 52 virtual void ConfigureCTM( |
53 int touch_device_id, | 53 int touch_device_id, |
54 const OutputConfigurator::CoordinateTransformation& ctm) OVERRIDE; | 54 const OutputConfigurator::CoordinateTransformation& ctm) OVERRIDE; |
| 55 virtual void SendProjectingStateToPowerManager(bool projecting) OVERRIDE; |
55 | 56 |
56 private: | 57 private: |
57 // Destroys unused CRTCs and parks used CRTCs in a way which allows a | 58 // Destroys unused CRTCs and parks used CRTCs in a way which allows a |
58 // framebuffer resize. This is faster than turning them off, resizing, | 59 // framebuffer resize. This is faster than turning them off, resizing, |
59 // then turning them back on. | 60 // then turning them back on. |
60 void DestroyUnusedCrtcs(OutputConfigurator::CrtcConfig* config1, | 61 void DestroyUnusedCrtcs(OutputConfigurator::CrtcConfig* config1, |
61 OutputConfigurator::CrtcConfig* config2); | 62 OutputConfigurator::CrtcConfig* config2); |
62 | 63 |
63 // Returns whether |id| is configured to preserve aspect when scaling. | 64 // Returns whether |id| is configured to preserve aspect when scaling. |
64 bool IsOutputAspectPreservingScaling(RROutput id); | 65 bool IsOutputAspectPreservingScaling(RROutput id); |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
99 | 100 |
100 // Used to enable modes which rely on panel fitting. | 101 // Used to enable modes which rely on panel fitting. |
101 bool is_panel_fitting_enabled_; | 102 bool is_panel_fitting_enabled_; |
102 | 103 |
103 DISALLOW_COPY_AND_ASSIGN(RealOutputConfiguratorDelegate); | 104 DISALLOW_COPY_AND_ASSIGN(RealOutputConfiguratorDelegate); |
104 }; | 105 }; |
105 | 106 |
106 } // namespace chromeos | 107 } // namespace chromeos |
107 | 108 |
108 #endif // CHROMEOS_DISPLAY_REAL_OUTPUT_CONFIGURATOR_DELEGATE_H_ | 109 #endif // CHROMEOS_DISPLAY_REAL_OUTPUT_CONFIGURATOR_DELEGATE_H_ |
OLD | NEW |