Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CC_OUTPUT_OVERLAY_STRATEGY_COMMON_H_ | 5 #ifndef CC_OUTPUT_OVERLAY_STRATEGY_COMMON_H_ |
| 6 #define CC_OUTPUT_OVERLAY_STRATEGY_COMMON_H_ | 6 #define CC_OUTPUT_OVERLAY_STRATEGY_COMMON_H_ |
| 7 | 7 |
| 8 #include "cc/base/cc_export.h" | 8 #include "cc/base/cc_export.h" |
| 9 #include "cc/output/overlay_candidate.h" | 9 #include "cc/output/overlay_candidate.h" |
| 10 #include "cc/output/overlay_processor.h" | 10 #include "cc/output/overlay_processor.h" |
| 11 | 11 |
| 12 namespace cc { | 12 namespace cc { |
| 13 class IOSurfaceDrawQuad; | 13 class IOSurfaceDrawQuad; |
| 14 class OverlayCandidate; | 14 class OverlayCandidate; |
| 15 class OverlayCandidateValidator; | 15 class OverlayCandidateValidator; |
| 16 class StreamVideoDrawQuad; | 16 class StreamVideoDrawQuad; |
| 17 class TextureDrawQuad; | 17 class TextureDrawQuad; |
| 18 | 18 |
| 19 class CC_EXPORT OverlayStrategyCommonDelegate { | 19 class CC_EXPORT OverlayStrategyCommonDelegate { |
| 20 public: | 20 public: |
| 21 virtual ~OverlayStrategyCommonDelegate() {} | 21 virtual ~OverlayStrategyCommonDelegate() {} |
|
ccameron
2015/09/02 21:41:55
It might be easier to read to create an enum for t
Andre
2015/09/02 21:54:51
Do you still want this change if ListContainer::Er
ccameron
2015/09/02 22:22:33
I think there needs to be a clear "STOP_LOOKING_FO
Andre
2015/09/03 22:45:59
Done.
| |
| 22 virtual bool TryOverlay(OverlayCandidateValidator* capability_checker, | 22 virtual QuadList::Iterator TryOverlay( |
| 23 RenderPassList* render_passes_in_draw_order, | 23 OverlayCandidateValidator* capability_checker, |
| 24 OverlayCandidateList* candidate_list, | 24 RenderPassList* render_passes_in_draw_order, |
| 25 const OverlayCandidate& candidate, | 25 OverlayCandidateList* candidate_list, |
| 26 QuadList::Iterator iter, | 26 const OverlayCandidate& candidate, |
| 27 float device_scale_factor) = 0; | 27 QuadList::Iterator iter, |
| 28 float device_scale_factor) = 0; | |
| 28 }; | 29 }; |
| 29 | 30 |
| 30 class CC_EXPORT OverlayStrategyCommon : public OverlayProcessor::Strategy { | 31 class CC_EXPORT OverlayStrategyCommon : public OverlayProcessor::Strategy { |
| 31 public: | 32 public: |
| 32 explicit OverlayStrategyCommon(OverlayCandidateValidator* capability_checker, | 33 explicit OverlayStrategyCommon(OverlayCandidateValidator* capability_checker, |
| 33 OverlayStrategyCommonDelegate* delegate); | 34 OverlayStrategyCommonDelegate* delegate); |
| 34 ~OverlayStrategyCommon() override; | 35 ~OverlayStrategyCommon() override; |
| 35 | 36 |
| 36 bool Attempt(RenderPassList* render_passes_in_draw_order, | 37 bool Attempt(RenderPassList* render_passes_in_draw_order, |
| 37 OverlayCandidateList* candidate_list, | 38 OverlayCandidateList* candidate_list, |
| (...skipping 20 matching lines...) Expand all Loading... | |
| 58 | 59 |
| 59 private: | 60 private: |
| 60 OverlayCandidateValidator* capability_checker_; | 61 OverlayCandidateValidator* capability_checker_; |
| 61 scoped_ptr<OverlayStrategyCommonDelegate> delegate_; | 62 scoped_ptr<OverlayStrategyCommonDelegate> delegate_; |
| 62 | 63 |
| 63 DISALLOW_COPY_AND_ASSIGN(OverlayStrategyCommon); | 64 DISALLOW_COPY_AND_ASSIGN(OverlayStrategyCommon); |
| 64 }; | 65 }; |
| 65 } // namespace cc | 66 } // namespace cc |
| 66 | 67 |
| 67 #endif // CC_OUTPUT_OVERLAY_STRATEGY_COMMON_H_ | 68 #endif // CC_OUTPUT_OVERLAY_STRATEGY_COMMON_H_ |
| OLD | NEW |