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/viz/display_compositor/compositor_overlay_candidate_validat
or_ozone.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include <utility> | 9 #include <utility> |
10 | 10 |
11 #include "base/bind.h" | 11 #include "base/bind.h" |
12 #include "base/memory/ptr_util.h" | 12 #include "base/memory/ptr_util.h" |
13 #include "base/strings/string_split.h" | 13 #include "base/strings/string_split.h" |
14 #include "cc/output/overlay_strategy_fullscreen.h" | 14 #include "cc/output/overlay_strategy_fullscreen.h" |
15 #include "cc/output/overlay_strategy_single_on_top.h" | 15 #include "cc/output/overlay_strategy_single_on_top.h" |
16 #include "cc/output/overlay_strategy_underlay.h" | 16 #include "cc/output/overlay_strategy_underlay.h" |
17 #include "cc/output/overlay_strategy_underlay_cast.h" | 17 #include "cc/output/overlay_strategy_underlay_cast.h" |
18 #include "ui/ozone/public/overlay_candidates_ozone.h" | 18 #include "ui/ozone/public/overlay_candidates_ozone.h" |
19 | 19 |
20 namespace display_compositor { | 20 namespace viz { |
21 namespace { | 21 namespace { |
22 // Templated function used to create an OverlayProcessor::Strategy | 22 // Templated function used to create an OverlayProcessor::Strategy |
23 // of type |S|. | 23 // of type |S|. |
24 template <typename S> | 24 template <typename S> |
25 std::unique_ptr<cc::OverlayProcessor::Strategy> MakeOverlayStrategy( | 25 std::unique_ptr<cc::OverlayProcessor::Strategy> MakeOverlayStrategy( |
26 CompositorOverlayCandidateValidatorOzone* capability_checker) { | 26 CompositorOverlayCandidateValidatorOzone* capability_checker) { |
27 return base::MakeUnique<S>(capability_checker); | 27 return base::MakeUnique<S>(capability_checker); |
28 } | 28 } |
29 | 29 |
30 } // namespace | 30 } // namespace |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
118 surfaces->at(i).overlay_handled = ozone_surface_list.at(i).overlay_handled; | 118 surfaces->at(i).overlay_handled = ozone_surface_list.at(i).overlay_handled; |
119 surfaces->at(i).display_rect = ozone_surface_list.at(i).display_rect; | 119 surfaces->at(i).display_rect = ozone_surface_list.at(i).display_rect; |
120 } | 120 } |
121 } | 121 } |
122 | 122 |
123 void CompositorOverlayCandidateValidatorOzone::SetSoftwareMirrorMode( | 123 void CompositorOverlayCandidateValidatorOzone::SetSoftwareMirrorMode( |
124 bool enabled) { | 124 bool enabled) { |
125 software_mirror_active_ = enabled; | 125 software_mirror_active_ = enabled; |
126 } | 126 } |
127 | 127 |
128 } // namespace display_compositor | 128 } // namespace viz |
OLD | NEW |