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

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

Issue 1304053016: Mac Overlays: Allow multiple overlays with sandwich strategy (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@snapshot
Patch Set: For alexst 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_SANDWICH_H_ 5 #ifndef CC_OUTPUT_OVERLAY_STRATEGY_SANDWICH_H_
6 #define CC_OUTPUT_OVERLAY_STRATEGY_SANDWICH_H_ 6 #define CC_OUTPUT_OVERLAY_STRATEGY_SANDWICH_H_
7 7
8 #include "cc/output/overlay_strategy_common.h" 8 #include "cc/output/overlay_strategy_common.h"
9 9
10 namespace cc { 10 namespace cc {
11 11
12 // The sandwich strategy looks for a video quad without regard to quads above 12 // The sandwich strategy looks for a video quad without regard to quads above
13 // it. The video is "overlaid" on top of the scene, and then the non-empty 13 // it. The video is "overlaid" on top of the scene, and then the non-empty
14 // parts of the scene are "overlaid" on top of the video. This is only valid 14 // parts of the scene are "overlaid" on top of the video. This is only valid
15 // for overlay contents that are fully opaque. 15 // for overlay contents that are fully opaque.
16 class CC_EXPORT OverlayStrategySandwich : public OverlayStrategyCommonDelegate { 16 class CC_EXPORT OverlayStrategySandwich : public OverlayStrategyCommonDelegate {
17 public: 17 public:
18 OverlayStrategySandwich() {} 18 OverlayStrategySandwich() {}
19 ~OverlayStrategySandwich() override; 19 ~OverlayStrategySandwich() override;
20 20
21 bool TryOverlay(OverlayCandidateValidator* capability_checker, 21 OverlayResult TryOverlay(OverlayCandidateValidator* capability_checker,
22 RenderPassList* render_passes_in_draw_order, 22 RenderPassList* render_passes_in_draw_order,
23 OverlayCandidateList* candidate_list, 23 OverlayCandidateList* candidate_list,
24 const OverlayCandidate& candidate, 24 const OverlayCandidate& candidate,
25 QuadList::Iterator candidate_iterator, 25 QuadList::Iterator* candidate_iterator,
26 float device_scale_factor) override; 26 float device_scale_factor) override;
27 27
28 private: 28 private:
29 DISALLOW_COPY_AND_ASSIGN(OverlayStrategySandwich); 29 DISALLOW_COPY_AND_ASSIGN(OverlayStrategySandwich);
30 }; 30 };
31 31
32 } // namespace cc 32 } // namespace cc
33 33
34 #endif // CC_OUTPUT_OVERLAY_STRATEGY_SANDWICH_H_ 34 #endif // CC_OUTPUT_OVERLAY_STRATEGY_SANDWICH_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698