| OLD | NEW |
| (Empty) | |
| 1 // Copyright 2015 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_COMMON_H_ |
| 6 #define CC_OUTPUT_OVERLAY_STRATEGY_COMMON_H_ |
| 7 |
| 8 #include "cc/base/cc_export.h" |
| 9 #include "cc/output/overlay_candidate.h" |
| 10 #include "cc/output/overlay_processor.h" |
| 11 |
| 12 namespace cc { |
| 13 class StreamVideoDrawQuad; |
| 14 class TextureDrawQuad; |
| 15 class OverlayCandidate; |
| 16 |
| 17 class CC_EXPORT OverlayStrategyCommon : public OverlayProcessor::Strategy { |
| 18 public: |
| 19 OverlayStrategyCommon(ResourceProvider* resource_provider); |
| 20 virtual ~OverlayStrategyCommon(); |
| 21 |
| 22 protected: |
| 23 bool GetCandidateQuadInfo(const DrawQuad& draw_quad, |
| 24 OverlayCandidate* quad_info); |
| 25 |
| 26 // Returns true if |draw_quad| will not block quads underneath from becoming |
| 27 // an overlay. |
| 28 bool IsInvisibleQuad(const DrawQuad* draw_quad); |
| 29 |
| 30 bool GetTextureQuadInfo(const TextureDrawQuad& quad, |
| 31 OverlayCandidate* quad_info); |
| 32 bool GetVideoQuadInfo(const StreamVideoDrawQuad& quad, |
| 33 OverlayCandidate* quad_info); |
| 34 |
| 35 ResourceProvider* resource_provider_; |
| 36 }; |
| 37 } |
| 38 |
| 39 #endif // CC_OUTPUT_OVERLAY_STRATEGY_COMMON_H_ |
| OLD | NEW |