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 CONTENT_BROWSER_COMPOSITOR_OVERLAY_CANDIDATE_VALIDATOR_MAC_H_ | 5 #ifndef COMPONENTS_DISPLAY_COMPOSITOR_COMPOSITOR_OVERLAY_CANDIDATE_VALIDATOR_MAC
_H_ |
6 #define CONTENT_BROWSER_COMPOSITOR_OVERLAY_CANDIDATE_VALIDATOR_MAC_H_ | 6 #define COMPONENTS_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 "content/browser/compositor/browser_compositor_overlay_candidate_valida
tor.h" | 11 #include "components/display_compositor/compositor_overlay_candidate_validator.h
" |
| 12 #include "components/display_compositor/display_compositor_export.h" |
12 #include "ui/gfx/native_widget_types.h" | 13 #include "ui/gfx/native_widget_types.h" |
13 | 14 |
14 namespace content { | 15 namespace display_compositor { |
15 | 16 |
16 class CONTENT_EXPORT BrowserCompositorOverlayCandidateValidatorMac | 17 class DISPLAY_COMPOSITOR_EXPORT CompositorOverlayCandidateValidatorMac |
17 : public BrowserCompositorOverlayCandidateValidator { | 18 : public CompositorOverlayCandidateValidator { |
18 public: | 19 public: |
19 explicit BrowserCompositorOverlayCandidateValidatorMac( | 20 explicit CompositorOverlayCandidateValidatorMac(bool ca_layer_disabled); |
20 bool ca_layer_disabled); | 21 ~CompositorOverlayCandidateValidatorMac() override; |
21 ~BrowserCompositorOverlayCandidateValidatorMac() override; | |
22 | 22 |
23 // cc::OverlayCandidateValidator implementation. | 23 // cc::OverlayCandidateValidator implementation. |
24 void GetStrategies(cc::OverlayProcessor::StrategyList* strategies) override; | 24 void GetStrategies(cc::OverlayProcessor::StrategyList* strategies) override; |
25 bool AllowCALayerOverlays() override; | 25 bool AllowCALayerOverlays() override; |
26 void CheckOverlaySupport(cc::OverlayCandidateList* surfaces) override; | 26 void CheckOverlaySupport(cc::OverlayCandidateList* surfaces) override; |
27 | 27 |
28 // BrowserCompositorOverlayCandidateValidator implementation. | 28 // CompositorOverlayCandidateValidator implementation. |
29 void SetSoftwareMirrorMode(bool enabled) override; | 29 void SetSoftwareMirrorMode(bool enabled) override; |
30 | 30 |
31 private: | 31 private: |
32 gfx::AcceleratedWidget widget_; | 32 gfx::AcceleratedWidget widget_; |
33 bool software_mirror_active_; | 33 bool software_mirror_active_; |
34 const bool ca_layer_disabled_; | 34 const bool ca_layer_disabled_; |
35 | 35 |
36 DISALLOW_COPY_AND_ASSIGN(BrowserCompositorOverlayCandidateValidatorMac); | 36 DISALLOW_COPY_AND_ASSIGN(CompositorOverlayCandidateValidatorMac); |
37 }; | 37 }; |
38 | 38 |
39 } // namespace content | 39 } // namespace display_compositor |
40 | 40 |
41 #endif // CONTENT_BROWSER_COMPOSITOR_OVERLAY_CANDIDATE_VALIDATOR_MAC_H_ | 41 #endif // COMPONENTS_DISPLAY_COMPOSITOR_COMPOSITOR_OVERLAY_CANDIDATE_VALIDATOR_
MAC_H_ |
OLD | NEW |