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

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

Issue 2164213002: cc: Single fullscreen overlay validatator flag. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Make reflector_impl_unittest.cc compile. Created 4 years, 5 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
« no previous file with comments | « no previous file | components/display_compositor/compositor_overlay_candidate_validator_ozone.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/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 explicit CompositorOverlayCandidateValidatorOzone( 24 CompositorOverlayCandidateValidatorOzone(
25 std::unique_ptr<ui::OverlayCandidatesOzone> overlay_candidates); 25 std::unique_ptr<ui::OverlayCandidatesOzone> overlay_candidates,
26 bool single_fullscreen);
26 ~CompositorOverlayCandidateValidatorOzone() override; 27 ~CompositorOverlayCandidateValidatorOzone() override;
27 28
28 // cc::OverlayCandidateValidator implementation. 29 // cc::OverlayCandidateValidator implementation.
29 void GetStrategies(cc::OverlayProcessor::StrategyList* strategies) override; 30 void GetStrategies(cc::OverlayProcessor::StrategyList* strategies) override;
30 bool AllowCALayerOverlays() override; 31 bool AllowCALayerOverlays() override;
31 void CheckOverlaySupport(cc::OverlayCandidateList* surfaces) override; 32 void CheckOverlaySupport(cc::OverlayCandidateList* surfaces) override;
32 33
33 // CompositorOverlayCandidateValidator implementation. 34 // CompositorOverlayCandidateValidator implementation.
34 void SetSoftwareMirrorMode(bool enabled) override; 35 void SetSoftwareMirrorMode(bool enabled) override;
35 36
36 private: 37 private:
37 std::unique_ptr<ui::OverlayCandidatesOzone> overlay_candidates_; 38 std::unique_ptr<ui::OverlayCandidatesOzone> overlay_candidates_;
39 bool single_fullscreen_;
38 bool software_mirror_active_; 40 bool software_mirror_active_;
39 41
40 DISALLOW_COPY_AND_ASSIGN(CompositorOverlayCandidateValidatorOzone); 42 DISALLOW_COPY_AND_ASSIGN(CompositorOverlayCandidateValidatorOzone);
41 }; 43 };
42 44
43 } // namespace display_compositor 45 } // namespace display_compositor
44 46
45 #endif // COMPONENTS_DISPLAY_COMPOSITOR_COMPOSITOR_OVERLAY_CANDIDATE_VALIDATOR_ OZONE_H_ 47 #endif // COMPONENTS_DISPLAY_COMPOSITOR_COMPOSITOR_OVERLAY_CANDIDATE_VALIDATOR_ OZONE_H_
OLDNEW
« no previous file with comments | « no previous file | components/display_compositor/compositor_overlay_candidate_validator_ozone.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698