OLD | NEW |
(Empty) | |
| 1 // Copyright 2017 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_UNDERLAY_CAST_H_ |
| 6 #define CC_OUTPUT_OVERLAY_STRATEGY_UNDERLAY_CAST_H_ |
| 7 |
| 8 #include "base/macros.h" |
| 9 #include "cc/output/overlay_strategy_underlay.h" |
| 10 |
| 11 namespace cc { |
| 12 |
| 13 class OverlayCandidateValidator; |
| 14 |
| 15 // Similar to underlay strategy plus Cast-specific handling of content bounds. |
| 16 class CC_EXPORT OverlayStrategyUnderlayCast : public OverlayStrategyUnderlay { |
| 17 public: |
| 18 explicit OverlayStrategyUnderlayCast( |
| 19 OverlayCandidateValidator* capability_checker); |
| 20 ~OverlayStrategyUnderlayCast() override; |
| 21 |
| 22 bool Attempt(ResourceProvider* resource_provider, |
| 23 RenderPass* render_pass, |
| 24 OverlayCandidateList* candidate_list, |
| 25 std::vector<gfx::Rect>* content_bounds) override; |
| 26 |
| 27 private: |
| 28 DISALLOW_COPY_AND_ASSIGN(OverlayStrategyUnderlayCast); |
| 29 }; |
| 30 |
| 31 } // namespace cc |
| 32 |
| 33 #endif // CC_OUTPUT_OVERLAY_STRATEGY_UNDERLAY_CAST_H_ |
OLD | NEW |