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

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

Issue 1931213002: display_compositor: Move CompositorOverlayCandidateValidator from content. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@DONE_2016.04.28_dc-overlay-candidate-validator
Patch Set: . Created 4 years, 7 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 CONTENT_BROWSER_COMPOSITOR_OVERLAY_CANDIDATE_VALIDATOR_OZONE_H_ 5 #ifndef COMPONENTS_DISPLAY_COMPOSITOR_COMPOSITOR_OVERLAY_CANDIDATE_VALIDATOR_OZO NE_H_
6 #define CONTENT_BROWSER_COMPOSITOR_OVERLAY_CANDIDATE_VALIDATOR_OZONE_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 "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 ui { 15 namespace ui {
15 class OverlayCandidatesOzone; 16 class OverlayCandidatesOzone;
16 } 17 }
17 18
18 namespace content { 19 namespace display_compositor {
19 20
20 class CONTENT_EXPORT BrowserCompositorOverlayCandidateValidatorOzone 21 class DISPLAY_COMPOSITOR_EXPORT CompositorOverlayCandidateValidatorOzone
21 : public BrowserCompositorOverlayCandidateValidator { 22 : public CompositorOverlayCandidateValidator {
22 public: 23 public:
23 explicit BrowserCompositorOverlayCandidateValidatorOzone( 24 explicit CompositorOverlayCandidateValidatorOzone(
24 std::unique_ptr<ui::OverlayCandidatesOzone> overlay_candidates); 25 std::unique_ptr<ui::OverlayCandidatesOzone> overlay_candidates);
25 ~BrowserCompositorOverlayCandidateValidatorOzone() override; 26 ~CompositorOverlayCandidateValidatorOzone() override;
26 27
27 // cc::OverlayCandidateValidator implementation. 28 // cc::OverlayCandidateValidator implementation.
28 void GetStrategies(cc::OverlayProcessor::StrategyList* strategies) override; 29 void GetStrategies(cc::OverlayProcessor::StrategyList* strategies) override;
29 bool AllowCALayerOverlays() override; 30 bool AllowCALayerOverlays() override;
30 void CheckOverlaySupport(cc::OverlayCandidateList* surfaces) override; 31 void CheckOverlaySupport(cc::OverlayCandidateList* surfaces) override;
31 32
32 // BrowserCompositorOverlayCandidateValidator implementation. 33 // CompositorOverlayCandidateValidator implementation.
33 void SetSoftwareMirrorMode(bool enabled) override; 34 void SetSoftwareMirrorMode(bool enabled) override;
34 35
35 private: 36 private:
36 std::unique_ptr<ui::OverlayCandidatesOzone> overlay_candidates_; 37 std::unique_ptr<ui::OverlayCandidatesOzone> overlay_candidates_;
37 bool software_mirror_active_; 38 bool software_mirror_active_;
38 39
39 DISALLOW_COPY_AND_ASSIGN(BrowserCompositorOverlayCandidateValidatorOzone); 40 DISALLOW_COPY_AND_ASSIGN(CompositorOverlayCandidateValidatorOzone);
40 }; 41 };
41 42
42 } // namespace content 43 } // namespace display_compositor
43 44
44 #endif // CONTENT_BROWSER_COMPOSITOR_OVERLAY_CANDIDATE_VALIDATOR_OZONE_H_ 45 #endif // COMPONENTS_DISPLAY_COMPOSITOR_COMPOSITOR_OVERLAY_CANDIDATE_VALIDATOR_ OZONE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698