Chromium Code Reviews| 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 <vector> | |
| 9 | |
| 10 #include "base/macros.h" | |
| 11 #include "cc/output/overlay_strategy_underlay.h" | |
| 12 | |
| 13 namespace cc { | |
| 14 | |
| 15 class OverlayCandidateValidator; | |
| 16 | |
| 17 // Similar to underlay strategy plus Cast-specific handling of content bounds. | |
| 18 class CC_EXPORT OverlayStrategyUnderlayCast : public OverlayStrategyUnderlay { | |
| 19 public: | |
| 20 explicit OverlayStrategyUnderlayCast( | |
| 21 OverlayCandidateValidator* capability_checker); | |
| 22 ~OverlayStrategyUnderlayCast() override; | |
| 23 | |
| 24 bool Attempt(ResourceProvider* resource_provider, | |
| 25 RenderPass* render_pass, | |
| 26 OverlayCandidateList* candidate_list) override; | |
| 27 void GetContentBounds(std::vector<gfx::Rect>* bounds) override; | |
|
danakj
2017/02/14 17:28:58
shall we add the bounds to the Attempt method inst
halliwell
2017/02/15 22:29:04
Done.
| |
| 28 | |
| 29 private: | |
| 30 std::vector<gfx::Rect> content_bounds_; | |
| 31 DISALLOW_COPY_AND_ASSIGN(OverlayStrategyUnderlayCast); | |
| 32 }; | |
| 33 | |
| 34 } // namespace cc | |
| 35 | |
| 36 #endif // CC_OUTPUT_OVERLAY_STRATEGY_UNDERLAY_CAST_H_ | |
| OLD | NEW |