Index: cc/output/overlay_strategy_underlay_cast.h |
diff --git a/cc/output/overlay_strategy_underlay_cast.h b/cc/output/overlay_strategy_underlay_cast.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..5266bb3d8097bec295ea76ed86db552aebf19570 |
--- /dev/null |
+++ b/cc/output/overlay_strategy_underlay_cast.h |
@@ -0,0 +1,33 @@ |
+// Copyright 2017 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_UNDERLAY_CAST_H_ |
+#define CC_OUTPUT_OVERLAY_STRATEGY_UNDERLAY_CAST_H_ |
+ |
+#include "base/macros.h" |
+#include "cc/output/overlay_strategy_underlay.h" |
+ |
+namespace cc { |
+ |
+class OverlayCandidateValidator; |
+ |
+// Similar to underlay strategy plus Cast-specific handling of content bounds. |
+class CC_EXPORT OverlayStrategyUnderlayCast : public OverlayStrategyUnderlay { |
+ public: |
+ explicit OverlayStrategyUnderlayCast( |
+ OverlayCandidateValidator* capability_checker); |
+ ~OverlayStrategyUnderlayCast() override; |
+ |
+ bool Attempt(ResourceProvider* resource_provider, |
+ RenderPass* render_pass, |
+ OverlayCandidateList* candidate_list, |
+ std::vector<gfx::Rect>* content_bounds) override; |
+ |
+ private: |
+ DISALLOW_COPY_AND_ASSIGN(OverlayStrategyUnderlayCast); |
+}; |
+ |
+} // namespace cc |
+ |
+#endif // CC_OUTPUT_OVERLAY_STRATEGY_UNDERLAY_CAST_H_ |