Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2012 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_RENDERER_H_ | |
| 6 #define CC_OUTPUT_OVERLAY_RENDERER_H_ | |
| 7 | |
| 8 #include "base/basictypes.h" | |
| 9 #include "base/memory/scoped_ptr.h" | |
| 10 #include "cc/base/cc_export.h" | |
| 11 #include "cc/quads/render_pass.h" | |
| 12 | |
| 13 namespace cc { | |
| 14 | |
| 15 class CC_EXPORT OverlayRenderer { | |
|
rjkroege
2014/01/10 19:14:04
I think this class probably needs some docs?
| |
| 16 public: | |
| 17 class Strategy { | |
| 18 public: | |
| 19 virtual ~Strategy() {} | |
| 20 virtual bool Attempt(RenderPassList* render_passes_in_draw_order) = 0; | |
| 21 }; | |
| 22 virtual ~OverlayRenderer(); | |
| 23 OverlayRenderer(); | |
| 24 | |
| 25 void Initialize(); | |
| 26 void ProcessForOverlays(RenderPassList* render_passes_in_draw_order); | |
| 27 | |
| 28 private: | |
| 29 typedef ScopedPtrVector<Strategy> StrategyList; | |
| 30 StrategyList strategies_; | |
| 31 DISALLOW_COPY_AND_ASSIGN(OverlayRenderer); | |
| 32 }; | |
| 33 | |
| 34 } // namespace cc | |
| 35 | |
| 36 #endif // CC_OUTPUT_OVERLAY_RENDERER_H_ | |
| OLD | NEW |