| 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_DELEGATING_RENDERER_H_ | |
| 6 #define CC_OUTPUT_DELEGATING_RENDERER_H_ | |
| 7 | |
| 8 #include <memory> | |
| 9 | |
| 10 #include "base/macros.h" | |
| 11 #include "cc/base/cc_export.h" | |
| 12 #include "cc/output/compositor_frame.h" | |
| 13 | |
| 14 namespace cc { | |
| 15 class OutputSurface; | |
| 16 class ResourceProvider; | |
| 17 | |
| 18 class CC_EXPORT DelegatingRenderer { | |
| 19 public: | |
| 20 DelegatingRenderer(OutputSurface* output_surface, | |
| 21 ResourceProvider* resource_provider); | |
| 22 ~DelegatingRenderer(); | |
| 23 | |
| 24 void DrawFrame(CompositorFrameMetadata metadata, | |
| 25 RenderPassList render_passes_in_draw_order); | |
| 26 | |
| 27 private: | |
| 28 OutputSurface* const output_surface_; | |
| 29 ResourceProvider* const resource_provider_; | |
| 30 | |
| 31 DISALLOW_COPY_AND_ASSIGN(DelegatingRenderer); | |
| 32 }; | |
| 33 | |
| 34 } // namespace cc | |
| 35 | |
| 36 #endif // CC_OUTPUT_DELEGATING_RENDERER_H_ | |
| OLD | NEW |