Index: cc/output/overlay_strategy_sandwich.h |
diff --git a/cc/output/overlay_strategy_sandwich.h b/cc/output/overlay_strategy_sandwich.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..387291011cf9d54bf6e28ea57e87a105541bb996 |
--- /dev/null |
+++ b/cc/output/overlay_strategy_sandwich.h |
@@ -0,0 +1,33 @@ |
+// 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 CC_OUTPUT_OVERLAY_STRATEGY_SANDWICH_H_ |
+#define CC_OUTPUT_OVERLAY_STRATEGY_SANDWICH_H_ |
+ |
+#include "cc/output/overlay_strategy_common.h" |
+ |
+namespace cc { |
+ |
+// The sandwich strategy looks for a video quad without regard to quads above |
+// it. The video is "overlaid" on top of the scene, and then the non-empty |
+// parts of the scene are "overlaid" on top of the video. This is only valid |
+// for overlay contents that are fully opaque. |
+class CC_EXPORT OverlayStrategySandwich : public OverlayStrategyCommon { |
+ public: |
+ explicit OverlayStrategySandwich( |
+ OverlayCandidateValidator* capability_checker); |
+ bool TryOverlay(const OverlayProcessor::RendererState& renderer_state, |
+ OverlayCandidateValidator* capability_checker, |
+ RenderPassList* render_passes_in_draw_order, |
+ OverlayCandidateList* candidate_list, |
+ const OverlayCandidate& candidate, |
+ QuadList::Iterator candidate_iterator) override; |
+ |
+ private: |
+ DISALLOW_COPY_AND_ASSIGN(OverlayStrategySandwich); |
+}; |
+ |
+} // namespace cc |
+ |
+#endif // CC_OUTPUT_OVERLAY_STRATEGY_SANDWICH_H_ |