OLD | NEW |
| (Empty) |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef COMPONENTS_DISPLAY_COMPOSITOR_COMPOSITOR_OVERLAY_CANDIDATE_VALIDATOR_MAC
_H_ | |
6 #define COMPONENTS_DISPLAY_COMPOSITOR_COMPOSITOR_OVERLAY_CANDIDATE_VALIDATOR_MAC
_H_ | |
7 | |
8 #include <memory> | |
9 | |
10 #include "base/macros.h" | |
11 #include "components/display_compositor/compositor_overlay_candidate_validator.h
" | |
12 #include "components/display_compositor/display_compositor_export.h" | |
13 | |
14 namespace display_compositor { | |
15 | |
16 class DISPLAY_COMPOSITOR_EXPORT CompositorOverlayCandidateValidatorMac | |
17 : public CompositorOverlayCandidateValidator { | |
18 public: | |
19 explicit CompositorOverlayCandidateValidatorMac(bool ca_layer_disabled); | |
20 ~CompositorOverlayCandidateValidatorMac() override; | |
21 | |
22 // cc::OverlayCandidateValidator implementation. | |
23 void GetStrategies(cc::OverlayProcessor::StrategyList* strategies) override; | |
24 bool AllowCALayerOverlays() override; | |
25 bool AllowDCLayerOverlays() override; | |
26 void CheckOverlaySupport(cc::OverlayCandidateList* surfaces) override; | |
27 | |
28 // CompositorOverlayCandidateValidator implementation. | |
29 void SetSoftwareMirrorMode(bool enabled) override; | |
30 | |
31 private: | |
32 bool software_mirror_active_; | |
33 const bool ca_layer_disabled_; | |
34 | |
35 DISALLOW_COPY_AND_ASSIGN(CompositorOverlayCandidateValidatorMac); | |
36 }; | |
37 | |
38 } // namespace display_compositor | |
39 | |
40 #endif // COMPONENTS_DISPLAY_COMPOSITOR_COMPOSITOR_OVERLAY_CANDIDATE_VALIDATOR_
MAC_H_ | |
OLD | NEW |