blob: c2ccf65d6e88570aadca9494e73f1c0cf22c00eb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
// Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CONTENT_BROWSER_COMPOSITOR_OVERLAY_CANDIDATE_VALIDATOR_MAC_H_
#define CONTENT_BROWSER_COMPOSITOR_OVERLAY_CANDIDATE_VALIDATOR_MAC_H_
#include "base/memory/scoped_ptr.h"
#include "content/browser/compositor/browser_compositor_overlay_candidate_validator.h"
#include "ui/gfx/native_widget_types.h"
namespace content {
class CONTENT_EXPORT BrowserCompositorOverlayCandidateValidatorMac
: public BrowserCompositorOverlayCandidateValidator {
public:
explicit BrowserCompositorOverlayCandidateValidatorMac(
gfx::AcceleratedWidget widget);
~BrowserCompositorOverlayCandidateValidatorMac() override;
// cc::OverlayCandidateValidator implementation.
void GetStrategies(cc::OverlayProcessor::StrategyList* strategies) override;
void CheckOverlaySupport(cc::OverlayCandidateList* surfaces) override;
// BrowserCompositorOverlayCandidateValidator implementation.
void SetSoftwareMirrorMode(bool enabled) override;
private:
gfx::AcceleratedWidget widget_;
bool software_mirror_active_;
bool ca_layers_disabled_;
DISALLOW_COPY_AND_ASSIGN(BrowserCompositorOverlayCandidateValidatorMac);
};
} // namespace content
#endif // CONTENT_BROWSER_COMPOSITOR_OVERLAY_CANDIDATE_VALIDATOR_MAC_H_
|