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 COMPONENTS_DISPLAY_COMPOSITOR_COMPOSITOR_OVERLAY_CANDIDATE_VALIDATOR_OZO
NE_H_ | 5 #ifndef COMPONENTS_VIZ_DISPLAY_COMPOSITOR_COMPOSITOR_OVERLAY_CANDIDATE_VALIDATOR
_OZONE_H_ |
6 #define COMPONENTS_DISPLAY_COMPOSITOR_COMPOSITOR_OVERLAY_CANDIDATE_VALIDATOR_OZO
NE_H_ | 6 #define COMPONENTS_VIZ_DISPLAY_COMPOSITOR_COMPOSITOR_OVERLAY_CANDIDATE_VALIDATOR
_OZONE_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 | 9 |
10 #include "base/callback.h" | 10 #include "base/callback.h" |
11 #include "base/macros.h" | 11 #include "base/macros.h" |
12 #include "components/display_compositor/compositor_overlay_candidate_validator.h
" | 12 #include "components/viz/display_compositor/compositor_overlay_candidate_validat
or.h" |
13 #include "components/display_compositor/display_compositor_export.h" | 13 #include "components/viz/viz_export.h" |
14 #include "ui/gfx/native_widget_types.h" | 14 #include "ui/gfx/native_widget_types.h" |
15 | 15 |
16 namespace ui { | 16 namespace ui { |
17 class OverlayCandidatesOzone; | 17 class OverlayCandidatesOzone; |
18 } | 18 } |
19 | 19 |
20 namespace display_compositor { | 20 namespace viz { |
21 | 21 |
22 class DISPLAY_COMPOSITOR_EXPORT CompositorOverlayCandidateValidatorOzone | 22 class VIZ_EXPORT CompositorOverlayCandidateValidatorOzone |
23 : public CompositorOverlayCandidateValidator { | 23 : public CompositorOverlayCandidateValidator { |
24 public: | 24 public: |
25 CompositorOverlayCandidateValidatorOzone( | 25 CompositorOverlayCandidateValidatorOzone( |
26 std::unique_ptr<ui::OverlayCandidatesOzone> overlay_candidates, | 26 std::unique_ptr<ui::OverlayCandidatesOzone> overlay_candidates, |
27 std::string strategies_string); | 27 std::string strategies_string); |
28 ~CompositorOverlayCandidateValidatorOzone() override; | 28 ~CompositorOverlayCandidateValidatorOzone() override; |
29 | 29 |
30 // cc::OverlayCandidateValidator implementation. | 30 // cc::OverlayCandidateValidator implementation. |
31 void GetStrategies(cc::OverlayProcessor::StrategyList* strategies) override; | 31 void GetStrategies(cc::OverlayProcessor::StrategyList* strategies) override; |
32 bool AllowCALayerOverlays() override; | 32 bool AllowCALayerOverlays() override; |
(...skipping 10 matching lines...) Expand all Loading... |
43 base::Callback<std::unique_ptr<cc::OverlayProcessor::Strategy>( | 43 base::Callback<std::unique_ptr<cc::OverlayProcessor::Strategy>( |
44 CompositorOverlayCandidateValidatorOzone*)>; | 44 CompositorOverlayCandidateValidatorOzone*)>; |
45 // List callbacks used to instantiate OverlayProcessor::Strategy | 45 // List callbacks used to instantiate OverlayProcessor::Strategy |
46 // as defined by |strategies_string| paramter in the constructor. | 46 // as defined by |strategies_string| paramter in the constructor. |
47 std::vector<StrategyInstantiator> strategies_instantiators_; | 47 std::vector<StrategyInstantiator> strategies_instantiators_; |
48 bool software_mirror_active_; | 48 bool software_mirror_active_; |
49 | 49 |
50 DISALLOW_COPY_AND_ASSIGN(CompositorOverlayCandidateValidatorOzone); | 50 DISALLOW_COPY_AND_ASSIGN(CompositorOverlayCandidateValidatorOzone); |
51 }; | 51 }; |
52 | 52 |
53 } // namespace display_compositor | 53 } // namespace viz |
54 | 54 |
55 #endif // COMPONENTS_DISPLAY_COMPOSITOR_COMPOSITOR_OVERLAY_CANDIDATE_VALIDATOR_
OZONE_H_ | 55 #endif // COMPONENTS_VIZ_DISPLAY_COMPOSITOR_COMPOSITOR_OVERLAY_CANDIDATE_VALIDA
TOR_OZONE_H_ |
OLD | NEW |