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

Side by Side Diff: cc/output/overlay_strategy_single_on_top.h

Issue 1330953002: Mac Overlays: Allow multiple overlays with sandwich strategy. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2490
Patch Set: Created 5 years, 3 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 | « cc/output/overlay_strategy_sandwich.cc ('k') | cc/output/overlay_strategy_single_on_top.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 CC_OUTPUT_OVERLAY_STRATEGY_SINGLE_ON_TOP_H_ 5 #ifndef CC_OUTPUT_OVERLAY_STRATEGY_SINGLE_ON_TOP_H_
6 #define CC_OUTPUT_OVERLAY_STRATEGY_SINGLE_ON_TOP_H_ 6 #define CC_OUTPUT_OVERLAY_STRATEGY_SINGLE_ON_TOP_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "cc/base/cc_export.h" 10 #include "cc/base/cc_export.h"
11 #include "cc/output/overlay_candidate.h" 11 #include "cc/output/overlay_candidate.h"
12 #include "cc/output/overlay_processor.h" 12 #include "cc/output/overlay_processor.h"
13 #include "cc/output/overlay_strategy_common.h" 13 #include "cc/output/overlay_strategy_common.h"
14 #include "cc/quads/render_pass.h" 14 #include "cc/quads/render_pass.h"
15 15
16 namespace cc { 16 namespace cc {
17 class StreamVideoDrawQuad; 17 class StreamVideoDrawQuad;
18 class TextureDrawQuad; 18 class TextureDrawQuad;
19 19
20 class CC_EXPORT OverlayStrategySingleOnTop 20 class CC_EXPORT OverlayStrategySingleOnTop
21 : public OverlayStrategyCommonDelegate { 21 : public OverlayStrategyCommonDelegate {
22 public: 22 public:
23 OverlayStrategySingleOnTop() {} 23 OverlayStrategySingleOnTop() {}
24 ~OverlayStrategySingleOnTop() override; 24 ~OverlayStrategySingleOnTop() override;
25 25
26 bool TryOverlay(OverlayCandidateValidator* capability_checker, 26 OverlayResult TryOverlay(OverlayCandidateValidator* capability_checker,
27 RenderPassList* render_passes_in_draw_order, 27 RenderPassList* render_passes_in_draw_order,
28 OverlayCandidateList* candidate_list, 28 OverlayCandidateList* candidate_list,
29 const OverlayCandidate& candidate, 29 const OverlayCandidate& candidate,
30 QuadList::Iterator candidate_iterator, 30 QuadList::Iterator* candidate_iterator,
31 float device_scale_factor) override; 31 float device_scale_factor) override;
32 32
33 private: 33 private:
34 DISALLOW_COPY_AND_ASSIGN(OverlayStrategySingleOnTop); 34 DISALLOW_COPY_AND_ASSIGN(OverlayStrategySingleOnTop);
35 }; 35 };
36 36
37 } // namespace cc 37 } // namespace cc
38 38
39 #endif // CC_OUTPUT_OVERLAY_STRATEGY_SINGLE_ON_TOP_H_ 39 #endif // CC_OUTPUT_OVERLAY_STRATEGY_SINGLE_ON_TOP_H_
OLDNEW
« no previous file with comments | « cc/output/overlay_strategy_sandwich.cc ('k') | cc/output/overlay_strategy_single_on_top.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698