summaryrefslogtreecommitdiff
path: root/chromium/content/browser/compositor/overlay_candidate_validator_ozone.h
blob: 8fb690b5196c66233564662d5cdf6f74f3086827 (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
39
// Copyright 2014 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_OZONE_H_
#define CONTENT_BROWSER_COMPOSITOR_OVERLAY_CANDIDATE_VALIDATOR_OZONE_H_

#include "cc/output/overlay_candidate_validator.h"

#include "content/common/content_export.h"
#include "ui/gfx/native_widget_types.h"

namespace ui {
class OverlayCandidatesOzone;
}

namespace content {

class CONTENT_EXPORT OverlayCandidateValidatorOzone
    : public cc::OverlayCandidateValidator {
 public:
  OverlayCandidateValidatorOzone(
      gfx::AcceleratedWidget widget,
      ui::OverlayCandidatesOzone* overlay_candidates);
  virtual ~OverlayCandidateValidatorOzone();

  // cc::OverlayCandidateValidator implementation.
  virtual void CheckOverlaySupport(cc::OverlayCandidateList* surfaces) OVERRIDE;

 private:
  gfx::AcceleratedWidget widget_;
  ui::OverlayCandidatesOzone* overlay_candidates_;

  DISALLOW_COPY_AND_ASSIGN(OverlayCandidateValidatorOzone);
};

}  // namespace content

#endif  // CONTENT_BROWSER_COMPOSITOR_OVERLAY_CANDIDATE_VALIDATOR_OZONE_H_