OLD | NEW |
1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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_WIN
_H_ | 5 #ifndef COMPONENTS_DISPLAY_COMPOSITOR_COMPOSITOR_OVERLAY_CANDIDATE_VALIDATOR_WIN
_H_ |
6 #define COMPONENTS_DISPLAY_COMPOSITOR_COMPOSITOR_OVERLAY_CANDIDATE_VALIDATOR_WIN
_H_ | 6 #define COMPONENTS_DISPLAY_COMPOSITOR_COMPOSITOR_OVERLAY_CANDIDATE_VALIDATOR_WIN
_H_ |
7 | 7 |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "components/display_compositor/compositor_overlay_candidate_validator.h
" | 9 #include "components/display_compositor/compositor_overlay_candidate_validator.h
" |
10 #include "components/display_compositor/display_compositor_export.h" | 10 #include "components/display_compositor/display_compositor_export.h" |
11 | 11 |
12 namespace display_compositor { | 12 namespace display_compositor { |
13 | 13 |
14 // This is a simple overlay candidate validator that promotes everything | 14 // This is a simple overlay candidate validator that promotes everything |
15 // possible to an overlay. | 15 // possible to an overlay. |
16 class DISPLAY_COMPOSITOR_EXPORT CompositorOverlayCandidateValidatorWin | 16 class DISPLAY_COMPOSITOR_EXPORT CompositorOverlayCandidateValidatorWin |
17 : public CompositorOverlayCandidateValidator { | 17 : public CompositorOverlayCandidateValidator { |
18 public: | 18 public: |
19 CompositorOverlayCandidateValidatorWin(); | 19 CompositorOverlayCandidateValidatorWin(); |
20 ~CompositorOverlayCandidateValidatorWin() override; | 20 ~CompositorOverlayCandidateValidatorWin() override; |
21 | 21 |
22 void GetStrategies(cc::OverlayProcessor::StrategyList* strategies) override; | 22 void GetStrategies(cc::OverlayProcessor::StrategyList* strategies) override; |
23 void CheckOverlaySupport(cc::OverlayCandidateList* surfaces) override; | 23 void CheckOverlaySupport(cc::OverlayCandidateList* surfaces) override; |
24 bool AllowCALayerOverlays() override; | 24 bool AllowCALayerOverlays() override; |
| 25 bool AllowDCLayerOverlays() override; |
25 | 26 |
26 void SetSoftwareMirrorMode(bool enabled) override; | 27 void SetSoftwareMirrorMode(bool enabled) override; |
27 | 28 |
28 private: | 29 private: |
29 DISALLOW_COPY_AND_ASSIGN(CompositorOverlayCandidateValidatorWin); | 30 DISALLOW_COPY_AND_ASSIGN(CompositorOverlayCandidateValidatorWin); |
30 }; | 31 }; |
31 | 32 |
32 } // namespace display_compositor | 33 } // namespace display_compositor |
33 | 34 |
34 #endif // COMPONENTS_DISPLAY_COMPOSITOR_COMPOSITOR_OVERLAY_CANDIDATE_VALIDATOR_
WIN_H_ | 35 #endif // COMPONENTS_DISPLAY_COMPOSITOR_COMPOSITOR_OVERLAY_CANDIDATE_VALIDATOR_
WIN_H_ |
OLD | NEW |