OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_PROCESSOR_H_ | 5 #ifndef CC_OUTPUT_OVERLAY_PROCESSOR_H_ |
6 #define CC_OUTPUT_OVERLAY_PROCESSOR_H_ | 6 #define CC_OUTPUT_OVERLAY_PROCESSOR_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "cc/base/cc_export.h" | 10 #include "cc/base/cc_export.h" |
(...skipping 19 matching lines...) Expand all Loading... |
30 }; | 30 }; |
31 typedef ScopedPtrVector<Strategy> StrategyList; | 31 typedef ScopedPtrVector<Strategy> StrategyList; |
32 | 32 |
33 explicit OverlayProcessor(OutputSurface* surface); | 33 explicit OverlayProcessor(OutputSurface* surface); |
34 virtual ~OverlayProcessor(); | 34 virtual ~OverlayProcessor(); |
35 // Virtual to allow testing different strategies. | 35 // Virtual to allow testing different strategies. |
36 virtual void Initialize(); | 36 virtual void Initialize(); |
37 | 37 |
38 void ProcessForOverlays(ResourceProvider* resource_provider, | 38 void ProcessForOverlays(ResourceProvider* resource_provider, |
39 RenderPassList* render_passes, | 39 RenderPassList* render_passes, |
40 OverlayCandidateList* candidates, | 40 OverlayCandidateList* candidates); |
41 gfx::Rect* damage_rect); | |
42 | 41 |
43 protected: | 42 protected: |
44 StrategyList strategies_; | 43 StrategyList strategies_; |
45 OutputSurface* surface_; | 44 OutputSurface* surface_; |
46 | 45 |
47 private: | 46 private: |
48 DISALLOW_COPY_AND_ASSIGN(OverlayProcessor); | 47 DISALLOW_COPY_AND_ASSIGN(OverlayProcessor); |
49 }; | 48 }; |
50 | 49 |
51 } // namespace cc | 50 } // namespace cc |
52 | 51 |
53 #endif // CC_OUTPUT_OVERLAY_PROCESSOR_H_ | 52 #endif // CC_OUTPUT_OVERLAY_PROCESSOR_H_ |
OLD | NEW |