Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(50)

Side by Side Diff: components/display_compositor/compositor_overlay_candidate_validator_ozone.h

Issue 2736643004: Add DCLayerOverlayProcessor and supporting DCLayer structures. (Closed)
Patch Set: split CALayerOverlay into DCLayerOverlay Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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/callback.h" 10 #include "base/callback.h"
(...skipping 12 matching lines...) Expand all
23 : public CompositorOverlayCandidateValidator { 23 : public CompositorOverlayCandidateValidator {
24 public: 24 public:
25 CompositorOverlayCandidateValidatorOzone( 25 CompositorOverlayCandidateValidatorOzone(
26 std::unique_ptr<ui::OverlayCandidatesOzone> overlay_candidates, 26 std::unique_ptr<ui::OverlayCandidatesOzone> overlay_candidates,
27 std::string strategies_string); 27 std::string strategies_string);
28 ~CompositorOverlayCandidateValidatorOzone() override; 28 ~CompositorOverlayCandidateValidatorOzone() override;
29 29
30 // cc::OverlayCandidateValidator implementation. 30 // cc::OverlayCandidateValidator implementation.
31 void GetStrategies(cc::OverlayProcessor::StrategyList* strategies) override; 31 void GetStrategies(cc::OverlayProcessor::StrategyList* strategies) override;
32 bool AllowCALayerOverlays() override; 32 bool AllowCALayerOverlays() override;
33 bool AllowDCLayerOverlays() override;
33 void CheckOverlaySupport(cc::OverlayCandidateList* surfaces) override; 34 void CheckOverlaySupport(cc::OverlayCandidateList* surfaces) override;
34 35
35 // CompositorOverlayCandidateValidator implementation. 36 // CompositorOverlayCandidateValidator implementation.
36 void SetSoftwareMirrorMode(bool enabled) override; 37 void SetSoftwareMirrorMode(bool enabled) override;
37 38
38 private: 39 private:
39 std::unique_ptr<ui::OverlayCandidatesOzone> overlay_candidates_; 40 std::unique_ptr<ui::OverlayCandidatesOzone> overlay_candidates_;
40 // Callback declaration to allocate a new OverlayProcessor::Strategy. 41 // Callback declaration to allocate a new OverlayProcessor::Strategy.
41 using StrategyInstantiator = 42 using StrategyInstantiator =
42 base::Callback<std::unique_ptr<cc::OverlayProcessor::Strategy>( 43 base::Callback<std::unique_ptr<cc::OverlayProcessor::Strategy>(
43 CompositorOverlayCandidateValidatorOzone*)>; 44 CompositorOverlayCandidateValidatorOzone*)>;
44 // List callbacks used to instantiate OverlayProcessor::Strategy 45 // List callbacks used to instantiate OverlayProcessor::Strategy
45 // as defined by |strategies_string| paramter in the constructor. 46 // as defined by |strategies_string| paramter in the constructor.
46 std::vector<StrategyInstantiator> strategies_instantiators_; 47 std::vector<StrategyInstantiator> strategies_instantiators_;
47 bool software_mirror_active_; 48 bool software_mirror_active_;
48 49
49 DISALLOW_COPY_AND_ASSIGN(CompositorOverlayCandidateValidatorOzone); 50 DISALLOW_COPY_AND_ASSIGN(CompositorOverlayCandidateValidatorOzone);
50 }; 51 };
51 52
52 } // namespace display_compositor 53 } // namespace display_compositor
53 54
54 #endif // COMPONENTS_DISPLAY_COMPOSITOR_COMPOSITOR_OVERLAY_CANDIDATE_VALIDATOR_ OZONE_H_ 55 #endif // COMPONENTS_DISPLAY_COMPOSITOR_COMPOSITOR_OVERLAY_CANDIDATE_VALIDATOR_ OZONE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698