| 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_DISPLAY_COMPOSITOR_COMPOSITOR_OVERLAY_CANDIDATE_VALIDATOR_OZO
NE_H_ |
| 6 #define COMPONENTS_DISPLAY_COMPOSITOR_COMPOSITOR_OVERLAY_CANDIDATE_VALIDATOR_OZO
NE_H_ | 6 #define COMPONENTS_DISPLAY_COMPOSITOR_COMPOSITOR_OVERLAY_CANDIDATE_VALIDATOR_OZO
NE_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/display_compositor/compositor_overlay_candidate_validator.h
" |
| 12 #include "components/display_compositor/display_compositor_export.h" | 12 #include "components/display_compositor/display_compositor_export.h" |
| 13 #include "ui/gfx/native_widget_types.h" | 13 #include "ui/gfx/native_widget_types.h" |
| 14 | 14 |
| 15 namespace ui { | 15 namespace ui { |
| 16 class OverlayCandidatesOzone; | 16 class OverlayCandidatesOzone; |
| 17 } | 17 } |
| 18 | 18 |
| 19 namespace display_compositor { | 19 namespace display_compositor { |
| 20 | 20 |
| 21 class DISPLAY_COMPOSITOR_EXPORT CompositorOverlayCandidateValidatorOzone | 21 class DISPLAY_COMPOSITOR_EXPORT CompositorOverlayCandidateValidatorOzone |
| 22 : public CompositorOverlayCandidateValidator { | 22 : public CompositorOverlayCandidateValidator { |
| 23 public: | 23 public: |
| 24 CompositorOverlayCandidateValidatorOzone( | 24 CompositorOverlayCandidateValidatorOzone( |
| 25 std::unique_ptr<ui::OverlayCandidatesOzone> overlay_candidates, | 25 std::unique_ptr<ui::OverlayCandidatesOzone> overlay_candidates, |
| 26 bool single_fullscreen); | 26 bool single_fullscreen, |
| 27 bool cast_underlay); |
| 27 ~CompositorOverlayCandidateValidatorOzone() override; | 28 ~CompositorOverlayCandidateValidatorOzone() override; |
| 28 | 29 |
| 29 // cc::OverlayCandidateValidator implementation. | 30 // cc::OverlayCandidateValidator implementation. |
| 30 void GetStrategies(cc::OverlayProcessor::StrategyList* strategies) override; | 31 void GetStrategies(cc::OverlayProcessor::StrategyList* strategies) override; |
| 31 bool AllowCALayerOverlays() override; | 32 bool AllowCALayerOverlays() override; |
| 32 void CheckOverlaySupport(cc::OverlayCandidateList* surfaces) override; | 33 void CheckOverlaySupport(cc::OverlayCandidateList* surfaces) override; |
| 33 | 34 |
| 34 // CompositorOverlayCandidateValidator implementation. | 35 // CompositorOverlayCandidateValidator implementation. |
| 35 void SetSoftwareMirrorMode(bool enabled) override; | 36 void SetSoftwareMirrorMode(bool enabled) override; |
| 36 | 37 |
| 37 private: | 38 private: |
| 38 std::unique_ptr<ui::OverlayCandidatesOzone> overlay_candidates_; | 39 std::unique_ptr<ui::OverlayCandidatesOzone> overlay_candidates_; |
| 39 bool single_fullscreen_; | 40 bool single_fullscreen_; |
| 41 bool cast_underlay_; |
| 40 bool software_mirror_active_; | 42 bool software_mirror_active_; |
| 41 | 43 |
| 42 DISALLOW_COPY_AND_ASSIGN(CompositorOverlayCandidateValidatorOzone); | 44 DISALLOW_COPY_AND_ASSIGN(CompositorOverlayCandidateValidatorOzone); |
| 43 }; | 45 }; |
| 44 | 46 |
| 45 } // namespace display_compositor | 47 } // namespace display_compositor |
| 46 | 48 |
| 47 #endif // COMPONENTS_DISPLAY_COMPOSITOR_COMPOSITOR_OVERLAY_CANDIDATE_VALIDATOR_
OZONE_H_ | 49 #endif // COMPONENTS_DISPLAY_COMPOSITOR_COMPOSITOR_OVERLAY_CANDIDATE_VALIDATOR_
OZONE_H_ |
| OLD | NEW |