OLD | NEW |
(Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CC_OUTPUT_OVERLAY_STRATEGY_FULLSCREEN_H_ |
| 6 #define CC_OUTPUT_OVERLAY_STRATEGY_FULLSCREEN_H_ |
| 7 |
| 8 #include "base/macros.h" |
| 9 #include "cc/output/overlay_processor.h" |
| 10 |
| 11 namespace cc { |
| 12 |
| 13 class OverlayCandidateValidator; |
| 14 // Overlay strategy to promote a single full screen quad to an overlay. |
| 15 // The promoted quad should have all the property of the framebuffer and it |
| 16 // should be possible to use it as such. |
| 17 class CC_EXPORT OverlayStrategyFullscreen : public OverlayProcessor::Strategy { |
| 18 public: |
| 19 OverlayStrategyFullscreen(); |
| 20 ~OverlayStrategyFullscreen() override; |
| 21 |
| 22 bool Attempt(ResourceProvider* resource_provider, |
| 23 RenderPass* render_pass, |
| 24 OverlayCandidateList* candidate_list) override; |
| 25 |
| 26 private: |
| 27 DISALLOW_COPY_AND_ASSIGN(OverlayStrategyFullscreen); |
| 28 }; |
| 29 |
| 30 } // namespace cc |
| 31 |
| 32 #endif // CC_OUTPUT_OVERLAY_STRATEGY_FULLSCREEN_H_ |
OLD | NEW |