Chromium Code Reviews| 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..9d139d4f7808b172bcfab98ef6cad494186d8d5a |
| --- /dev/null |
| +++ b/cc/output/overlay_strategy_underlay_cast.h |
| @@ -0,0 +1,36 @@ |
| +// 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 <vector> |
| + |
| +#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) override; |
| + 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.
|
| + |
| + private: |
| + std::vector<gfx::Rect> content_bounds_; |
| + DISALLOW_COPY_AND_ASSIGN(OverlayStrategyUnderlayCast); |
| +}; |
| + |
| +} // namespace cc |
| + |
| +#endif // CC_OUTPUT_OVERLAY_STRATEGY_UNDERLAY_CAST_H_ |