OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_MAC
_H_ | 5 #ifndef COMPONENTS_VIZ_DISPLAY_COMPOSITOR_COMPOSITOR_OVERLAY_CANDIDATE_VALIDATOR
_MAC_H_ |
6 #define COMPONENTS_DISPLAY_COMPOSITOR_COMPOSITOR_OVERLAY_CANDIDATE_VALIDATOR_MAC
_H_ | 6 #define COMPONENTS_VIZ_DISPLAY_COMPOSITOR_COMPOSITOR_OVERLAY_CANDIDATE_VALIDATOR
_MAC_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
11 #include "components/display_compositor/compositor_overlay_candidate_validator.h
" | 11 #include "components/viz/display_compositor/compositor_overlay_candidate_validat
or.h" |
12 #include "components/display_compositor/display_compositor_export.h" | 12 #include "components/viz/viz_export.h" |
13 | 13 |
14 namespace display_compositor { | 14 namespace viz { |
15 | 15 |
16 class DISPLAY_COMPOSITOR_EXPORT CompositorOverlayCandidateValidatorMac | 16 class VIZ_EXPORT CompositorOverlayCandidateValidatorMac |
17 : public CompositorOverlayCandidateValidator { | 17 : public CompositorOverlayCandidateValidator { |
18 public: | 18 public: |
19 explicit CompositorOverlayCandidateValidatorMac(bool ca_layer_disabled); | 19 explicit CompositorOverlayCandidateValidatorMac(bool ca_layer_disabled); |
20 ~CompositorOverlayCandidateValidatorMac() override; | 20 ~CompositorOverlayCandidateValidatorMac() override; |
21 | 21 |
22 // cc::OverlayCandidateValidator implementation. | 22 // cc::OverlayCandidateValidator implementation. |
23 void GetStrategies(cc::OverlayProcessor::StrategyList* strategies) override; | 23 void GetStrategies(cc::OverlayProcessor::StrategyList* strategies) override; |
24 bool AllowCALayerOverlays() override; | 24 bool AllowCALayerOverlays() override; |
25 bool AllowDCLayerOverlays() override; | 25 bool AllowDCLayerOverlays() override; |
26 void CheckOverlaySupport(cc::OverlayCandidateList* surfaces) override; | 26 void CheckOverlaySupport(cc::OverlayCandidateList* surfaces) override; |
27 | 27 |
28 // CompositorOverlayCandidateValidator implementation. | 28 // CompositorOverlayCandidateValidator implementation. |
29 void SetSoftwareMirrorMode(bool enabled) override; | 29 void SetSoftwareMirrorMode(bool enabled) override; |
30 | 30 |
31 private: | 31 private: |
32 bool software_mirror_active_; | 32 bool software_mirror_active_; |
33 const bool ca_layer_disabled_; | 33 const bool ca_layer_disabled_; |
34 | 34 |
35 DISALLOW_COPY_AND_ASSIGN(CompositorOverlayCandidateValidatorMac); | 35 DISALLOW_COPY_AND_ASSIGN(CompositorOverlayCandidateValidatorMac); |
36 }; | 36 }; |
37 | 37 |
38 } // namespace display_compositor | 38 } // namespace viz |
39 | 39 |
40 #endif // COMPONENTS_DISPLAY_COMPOSITOR_COMPOSITOR_OVERLAY_CANDIDATE_VALIDATOR_
MAC_H_ | 40 #endif // COMPONENTS_VIZ_DISPLAY_COMPOSITOR_COMPOSITOR_OVERLAY_CANDIDATE_VALIDA
TOR_MAC_H_ |
OLD | NEW |