Index: cc/output/overlay_strategy_fullscreen.h |
diff --git a/cc/output/overlay_strategy_fullscreen.h b/cc/output/overlay_strategy_fullscreen.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..4100d253ba57ff84642d4163a5651bcd13794bbc |
--- /dev/null |
+++ b/cc/output/overlay_strategy_fullscreen.h |
@@ -0,0 +1,32 @@ |
+// Copyright 2016 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_FULLSCREEN_H_ |
+#define CC_OUTPUT_OVERLAY_STRATEGY_FULLSCREEN_H_ |
+ |
+#include "base/macros.h" |
+#include "cc/output/overlay_processor.h" |
+ |
+namespace cc { |
+ |
+class OverlayCandidateValidator; |
+// Overlay strategy to promote a single full screen quad to an overlay. |
+// The promoted quad should have all the property of the framebuffer and it |
+// should be possible to use it as such. |
+class CC_EXPORT OverlayStrategyFullscreen : public OverlayProcessor::Strategy { |
+ public: |
+ OverlayStrategyFullscreen(); |
+ ~OverlayStrategyFullscreen() override; |
+ |
+ bool Attempt(ResourceProvider* resource_provider, |
+ RenderPass* render_pass, |
+ OverlayCandidateList* candidate_list) override; |
+ |
+ private: |
+ DISALLOW_COPY_AND_ASSIGN(OverlayStrategyFullscreen); |
+}; |
+ |
+} // namespace cc |
+ |
+#endif // CC_OUTPUT_OVERLAY_STRATEGY_FULLSCREEN_H_ |