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