Roll src/third_party/WebKit d9c6159:8139f33 (svn 201974:201975)
[chromium-blink-merge.git] / cc / output / overlay_strategy_single_on_top.h
blob17c763d8896e6201c088952406011b0dce7b345e
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
3 // found in the LICENSE file.
5 #ifndef CC_OUTPUT_OVERLAY_STRATEGY_SINGLE_ON_TOP_H_
6 #define CC_OUTPUT_OVERLAY_STRATEGY_SINGLE_ON_TOP_H_
8 #include "base/basictypes.h"
9 #include "base/memory/scoped_ptr.h"
10 #include "cc/base/cc_export.h"
11 #include "cc/output/overlay_candidate.h"
12 #include "cc/output/overlay_processor.h"
13 #include "cc/output/overlay_strategy_common.h"
14 #include "cc/quads/render_pass.h"
16 namespace cc {
17 class StreamVideoDrawQuad;
18 class TextureDrawQuad;
20 class CC_EXPORT OverlayStrategySingleOnTop
21 : public OverlayStrategyCommonDelegate {
22 public:
23 OverlayStrategySingleOnTop() {}
24 ~OverlayStrategySingleOnTop() override;
26 OverlayResult TryOverlay(OverlayCandidateValidator* capability_checker,
27 RenderPassList* render_passes_in_draw_order,
28 OverlayCandidateList* candidate_list,
29 const OverlayCandidate& candidate,
30 QuadList::Iterator* candidate_iterator,
31 float device_scale_factor) override;
33 private:
34 DISALLOW_COPY_AND_ASSIGN(OverlayStrategySingleOnTop);
37 } // namespace cc
39 #endif // CC_OUTPUT_OVERLAY_STRATEGY_SINGLE_ON_TOP_H_