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 #include "components/display_compositor/compositor_overlay_candidate_validator_o
zone.h" | 5 #include "components/display_compositor/compositor_overlay_candidate_validator_o
zone.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include <utility> | 9 #include <utility> |
10 | 10 |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 void CompositorOverlayCandidateValidatorOzone::GetStrategies( | 83 void CompositorOverlayCandidateValidatorOzone::GetStrategies( |
84 cc::OverlayProcessor::StrategyList* strategies) { | 84 cc::OverlayProcessor::StrategyList* strategies) { |
85 for (auto& instantiator : strategies_instantiators_) | 85 for (auto& instantiator : strategies_instantiators_) |
86 strategies->push_back(instantiator.Run(this)); | 86 strategies->push_back(instantiator.Run(this)); |
87 } | 87 } |
88 | 88 |
89 bool CompositorOverlayCandidateValidatorOzone::AllowCALayerOverlays() { | 89 bool CompositorOverlayCandidateValidatorOzone::AllowCALayerOverlays() { |
90 return false; | 90 return false; |
91 } | 91 } |
92 | 92 |
| 93 bool CompositorOverlayCandidateValidatorOzone::AllowDCLayerOverlays() { |
| 94 return false; |
| 95 } |
| 96 |
93 void CompositorOverlayCandidateValidatorOzone::CheckOverlaySupport( | 97 void CompositorOverlayCandidateValidatorOzone::CheckOverlaySupport( |
94 cc::OverlayCandidateList* surfaces) { | 98 cc::OverlayCandidateList* surfaces) { |
95 // SW mirroring copies out of the framebuffer, so we can't remove any | 99 // SW mirroring copies out of the framebuffer, so we can't remove any |
96 // quads for overlaying, otherwise the output is incorrect. | 100 // quads for overlaying, otherwise the output is incorrect. |
97 if (software_mirror_active_) { | 101 if (software_mirror_active_) { |
98 for (size_t i = 0; i < surfaces->size(); i++) { | 102 for (size_t i = 0; i < surfaces->size(); i++) { |
99 surfaces->at(i).overlay_handled = false; | 103 surfaces->at(i).overlay_handled = false; |
100 } | 104 } |
101 return; | 105 return; |
102 } | 106 } |
(...skipping 24 matching lines...) Expand all Loading... |
127 surfaces->at(i).display_rect = ozone_surface_list.at(i).display_rect; | 131 surfaces->at(i).display_rect = ozone_surface_list.at(i).display_rect; |
128 } | 132 } |
129 } | 133 } |
130 | 134 |
131 void CompositorOverlayCandidateValidatorOzone::SetSoftwareMirrorMode( | 135 void CompositorOverlayCandidateValidatorOzone::SetSoftwareMirrorMode( |
132 bool enabled) { | 136 bool enabled) { |
133 software_mirror_active_ = enabled; | 137 software_mirror_active_ = enabled; |
134 } | 138 } |
135 | 139 |
136 } // namespace display_compositor | 140 } // namespace display_compositor |
OLD | NEW |